blob: 01b515891e32080e8c927d30895f8a5147331411 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/message_loop.h"
#include "base/message_pump_default.h"
namespace {
base::MessagePump* CreateMessagePumpForUIForTests() {
// A default MessagePump will do quite nicely in tests.
return new base::MessagePumpDefault();
}
} // namespace
namespace base {
void InitIOSTestMessageLoop() {
MessageLoop::InitMessagePumpForUIFactory(&CreateMessagePumpForUIForTests);
}
} // namespace base