OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "mojo/system/android/javatests/core_test.h" | |
6 | |
7 #include "base/android/jni_android.h" | |
8 #include "base/android/scoped_java_ref.h" | |
9 #include "jni/CoreTest_jni.h" | |
10 | |
11 namespace mojo { | |
12 namespace android { | |
13 | |
14 static void InitApplicationContext(JNIEnv* env, | |
15 jobject jcaller, | |
16 jobject context) { | |
17 base::android::ScopedJavaLocalRef<jobject> scoped_context( | |
18 env, env->NewLocalRef(context)); | |
bulach
2014/04/17 13:15:42
nit: I suppose just context, without NewLocalRef,
qsr
2014/04/17 13:50:24
Done.
| |
19 base::android::InitApplicationContext(env, scoped_context); | |
20 } | |
21 | |
22 bool RegisterCoreTest(JNIEnv* env) { | |
23 return RegisterNativesImpl(env); | |
24 } | |
25 | |
26 } // namespace android | |
27 } // namespace mojo | |
OLD | NEW |