| Index: base/test/test_support_ios.mm
|
| diff --git a/base/test/test_support_ios.mm b/base/test/test_support_ios.mm
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..01b515891e32080e8c927d30895f8a5147331411
|
| --- /dev/null
|
| +++ b/base/test/test_support_ios.mm
|
| @@ -0,0 +1,23 @@
|
| +// 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
|
|
|