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

Side by Side Diff: android/jni_generator/testEagerCalledByNativesOption.golden

Issue 2045303002: Update to Chromium //base at Chromium commit 3e81715e6d3a4324362635aea46ce1f1a163cca1. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/domokit/base@master
Patch Set: Created 4 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
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 // This file is autogenerated by 5 // This file is autogenerated by
6 // base/android/jni_generator/jni_generator.py 6 // base/android/jni_generator/jni_generator.py
7 // For 7 // For
8 // org/chromium/example/jni_generator/Test 8 // org/chromium/example/jni_generator/Test
9 9
10 #ifndef org_chromium_example_jni_generator_Test_JNI 10 #ifndef org_chromium_example_jni_generator_Test_JNI
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 g_Test_testStaticMethodWithParam, as_jint(iParam)); 53 g_Test_testStaticMethodWithParam, as_jint(iParam));
54 return ret; 54 return ret;
55 } 55 }
56 56
57 static jdouble testMethodWithNoParam(JNIEnv* env) { 57 static jdouble testMethodWithNoParam(JNIEnv* env) {
58 jdouble ret = env->CallStaticDoubleMethod(Test_clazz(env), 58 jdouble ret = env->CallStaticDoubleMethod(Test_clazz(env),
59 g_Test_testMethodWithNoParam); 59 g_Test_testMethodWithNoParam);
60 return ret; 60 return ret;
61 } 61 }
62 62
63 static base::android::ScopedJavaLocalRef<jstring> 63 static ScopedJavaLocalRef<jstring> testStaticMethodWithNoParam(JNIEnv* env) {
64 testStaticMethodWithNoParam(JNIEnv* env) {
65 jstring ret = 64 jstring ret =
66 static_cast<jstring>(env->CallStaticObjectMethod(Test_clazz(env), 65 static_cast<jstring>(env->CallStaticObjectMethod(Test_clazz(env),
67 g_Test_testStaticMethodWithNoParam)); 66 g_Test_testStaticMethodWithNoParam));
68 return base::android::ScopedJavaLocalRef<jstring>(env, ret); 67 return ScopedJavaLocalRef<jstring>(env, ret);
69 } 68 }
70 } // namespace 69 } // namespace
71 70
72 // Step 3: RegisterNatives. 71 // Step 3: RegisterNatives.
73 72
74 static const JNINativeMethod kMethodsTest[] = { 73 static const JNINativeMethod kMethodsTest[] = {
75 { "nativeMethod", 74 { "nativeMethod",
76 "(" 75 "("
77 "J" 76 "J"
78 "I" 77 "I"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 return true; 140 return true;
142 } 141 }
143 142
144 extern "C" JNIEXPORT bool JNICALL 143 extern "C" JNIEXPORT bool JNICALL
145 Java_org_chromium_example_jni_generator_Test_nativeInitNativeClass(JNIEnv* env, 144 Java_org_chromium_example_jni_generator_Test_nativeInitNativeClass(JNIEnv* env,
146 jclass clazz) { 145 jclass clazz) {
147 return RegisterNativesImpl(env, clazz); 146 return RegisterNativesImpl(env, clazz);
148 } 147 }
149 148
150 #endif // org_chromium_example_jni_generator_Test_JNI 149 #endif // org_chromium_example_jni_generator_Test_JNI
OLDNEW
« no previous file with comments | « android/jni_generator/testConstantsFromJavaP.golden ('k') | android/jni_generator/testFromJavaP.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698