Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: base/test/test_support_android.cc

Issue 10479018: Add base::RunLoop and update ui_test_utils to use it to reduce flakiness (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: phajdan feedback Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/run_loop.cc ('k') | chrome/browser/autocomplete/search_provider_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « base/run_loop.cc ('k') | chrome/browser/autocomplete/search_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698