summaryrefslogtreecommitdiffstats
path: root/base/test/test_support_ios.mm
blob: 01b515891e32080e8c927d30895f8a5147331411 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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