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

Side by Side Diff: mojo/system/android/javatests/core_test.cc

Issue 228723002: Java API for mojo system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding shared handle. Created 6 years, 8 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
OLDNEW
(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
13 static void InitApplicationContext(JNIEnv* env,
14 jobject jcaller,
15 jobject context) {
16 base::android::ScopedJavaLocalRef<jobject> scoped_context(
17 env, env->NewLocalRef(context));
18 base::android::InitApplicationContext(env, scoped_context);
19 }
20
21 bool RegisterCoreTest(JNIEnv* env) {
22 return RegisterNativesImpl(env);
23 }
24
25 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698