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

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

Issue 281353005: Mojo: nuke EnvironmentData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 | « content/test/content_test_launcher.cc ('k') | mojo/apps/js/test/js_to_cpp_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 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/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/test/test_support_android.h" 13 #include "base/test/test_support_android.h"
14 #include "jni/MojoTestCase_jni.h" 14 #include "jni/MojoTestCase_jni.h"
15 #include "mojo/public/cpp/environment/environment.h" 15 #include "mojo/public/cpp/environment/environment.h"
16 16
17 namespace { 17 namespace {
18 18
19 struct TestEnvironment { 19 struct TestEnvironment {
20 mojo::Environment environment;
qsr 2014/06/13 09:53:04 Any reason not to put a shadow at_exit manager her
darin (slow to review) 2014/06/13 23:43:15 Done.
21 base::MessageLoopForUI message_loop; 20 base::MessageLoopForUI message_loop;
22 }; 21 };
23 22
24 } // namespace 23 } // namespace
25 24
26 namespace mojo { 25 namespace mojo {
27 namespace android { 26 namespace android {
28 27
29 static void InitApplicationContext(JNIEnv* env, 28 static void InitApplicationContext(JNIEnv* env,
30 jobject jcaller, 29 jobject jcaller,
(...skipping 21 matching lines...) Expand all
52 base::RunLoop run_loop; 51 base::RunLoop run_loop;
53 run_loop.Run(); 52 run_loop.Run();
54 } 53 }
55 54
56 bool RegisterMojoTestCase(JNIEnv* env) { 55 bool RegisterMojoTestCase(JNIEnv* env) {
57 return RegisterNativesImpl(env); 56 return RegisterNativesImpl(env);
58 } 57 }
59 58
60 } // namespace android 59 } // namespace android
61 } // namespace mojo 60 } // namespace mojo
OLDNEW
« no previous file with comments | « content/test/content_test_launcher.cc ('k') | mojo/apps/js/test/js_to_cpp_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698