| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <stdarg.h> | 5 #include <stdarg.h> |
| 6 #include <string.h> | 6 #include <string.h> |
| 7 | 7 |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
| 11 #include "base/message_loop.h" |
| 11 #include "base/message_pump_android.h" | 12 #include "base/message_pump_android.h" |
| 12 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 13 #include "base/synchronization/waitable_event.h" | 14 #include "base/synchronization/waitable_event.h" |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 | 17 |
| 17 // The test implementation of AndroidOS stores everything in the following | 18 // The test implementation of AndroidOS stores everything in the following |
| 18 // directory. | 19 // directory. |
| 19 const char* kAndroidTestTempDirectory = "/data/local/tmp"; | 20 const char* kAndroidTestTempDirectory = "/data/local/tmp"; |
| 20 | 21 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 void InitAndroidTestMessageLoop() { | 195 void InitAndroidTestMessageLoop() { |
| 195 MessageLoop::InitMessagePumpForUIFactory(&CreateMessagePumpForUIStub); | 196 MessageLoop::InitMessagePumpForUIFactory(&CreateMessagePumpForUIStub); |
| 196 } | 197 } |
| 197 | 198 |
| 198 void InitAndroidTest() { | 199 void InitAndroidTest() { |
| 199 InitAndroidTestLogging(); | 200 InitAndroidTestLogging(); |
| 200 InitAndroidTestPaths(); | 201 InitAndroidTestPaths(); |
| 201 InitAndroidTestMessageLoop(); | 202 InitAndroidTestMessageLoop(); |
| 202 } | 203 } |
| 203 } // namespace base | 204 } // namespace base |
| OLD | NEW |