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

Side by Side Diff: mojo/android/javatests/mojo_test_case.cc

Issue 1280463003: Revert of Straightens outs DEPS in mojo/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/android/javatests/mojo_test_case.h" 5 #include "mojo/android/javatests/mojo_test_case.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/test/test_support_android.h" 14 #include "base/test/test_support_android.h"
15 #include "jni/MojoTestCase_jni.h" 15 #include "jni/MojoTestCase_jni.h"
16 #include "mojo/message_pump/message_pump_mojo.h" 16 #include "mojo/common/message_pump_mojo.h"
17
17 #include "mojo/public/cpp/environment/environment.h" 18 #include "mojo/public/cpp/environment/environment.h"
18 19
19 namespace { 20 namespace {
20 21
21 struct TestEnvironment { 22 struct TestEnvironment {
22 TestEnvironment() : message_loop(mojo::common::MessagePumpMojo::Create()) {} 23 TestEnvironment() : message_loop(mojo::common::MessagePumpMojo::Create()) {}
23 24
24 base::ShadowingAtExitManager at_exit; 25 base::ShadowingAtExitManager at_exit;
25 base::MessageLoop message_loop; 26 base::MessageLoop message_loop;
26 }; 27 };
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 run_loop.RunUntilIdle(); 61 run_loop.RunUntilIdle();
61 } 62 }
62 } 63 }
63 64
64 bool RegisterMojoTestCase(JNIEnv* env) { 65 bool RegisterMojoTestCase(JNIEnv* env) {
65 return RegisterNativesImpl(env); 66 return RegisterNativesImpl(env);
66 } 67 }
67 68
68 } // namespace android 69 } // namespace android
69 } // namespace mojo 70 } // namespace mojo
OLDNEW
« no previous file with comments | « mandoline/services/core_services/core_services_application_delegate.cc ('k') | mojo/android/system/base_run_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698