Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / mojo / android / javatests / core_test.cc
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/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(env, context);
18   base::android::InitApplicationContext(env, scoped_context);
19 }
20
21 bool RegisterCoreTest(JNIEnv* env) {
22   return RegisterNativesImpl(env);
23 }
24
25 }  // namespace android
26 }  // namespace mojo