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

Side by Side Diff: base/android/jni_generator/testNativeExportsOptionalOption.golden

Issue 1959583003: jni_generator: remove obsolete/unused features. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo whitespace change to reduce diff to golden files Created 4 years, 7 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/SampleForTests 8 // org/chromium/example/jni_generator/SampleForTests
9 9
10 #ifndef org_chromium_example_jni_generator_SampleForTests_JNI 10 #ifndef org_chromium_example_jni_generator_SampleForTests_JNI
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 { "nativeMethod", 225 { "nativeMethod",
226 "(" 226 "("
227 "J" 227 "J"
228 "I" 228 "I"
229 ")" 229 ")"
230 "I", 230 "I",
231 reinterpret_cast<void*>(Java_org_chromium_example_jni_1generator_SampleForTe sts_nativeMethod) 231 reinterpret_cast<void*>(Java_org_chromium_example_jni_1generator_SampleForTe sts_nativeMethod)
232 }, 232 },
233 }; 233 };
234 234
235 static bool RegisterNativesImpl(JNIEnv* env, jclass clazz) { 235 static bool RegisterNativesImpl(JNIEnv* env) {
236 if (base::android::IsManualJniRegistrationDisabled()) return true; 236 if (base::android::IsManualJniRegistrationDisabled()) return true;
237 237
238 base::subtle::Release_Store(&g_SampleForTests_clazz,
239 static_cast<base::subtle::AtomicWord>(env->NewWeakGlobalRef(clazz));
240
241 const int kMethodsMyOtherInnerClassSize = 238 const int kMethodsMyOtherInnerClassSize =
242 arraysize(kMethodsMyOtherInnerClass); 239 arraysize(kMethodsMyOtherInnerClass);
243 240
244 if (env->RegisterNatives(MyOtherInnerClass_clazz(env), 241 if (env->RegisterNatives(MyOtherInnerClass_clazz(env),
245 kMethodsMyOtherInnerClass, 242 kMethodsMyOtherInnerClass,
246 kMethodsMyOtherInnerClassSize) < 0) { 243 kMethodsMyOtherInnerClassSize) < 0) {
247 jni_generator::HandleRegistrationError( 244 jni_generator::HandleRegistrationError(
248 env, MyOtherInnerClass_clazz(env), __FILE__); 245 env, MyOtherInnerClass_clazz(env), __FILE__);
249 return false; 246 return false;
250 } 247 }
(...skipping 14 matching lines...) Expand all
265 kMethodsSampleForTests, 262 kMethodsSampleForTests,
266 kMethodsSampleForTestsSize) < 0) { 263 kMethodsSampleForTestsSize) < 0) {
267 jni_generator::HandleRegistrationError( 264 jni_generator::HandleRegistrationError(
268 env, SampleForTests_clazz(env), __FILE__); 265 env, SampleForTests_clazz(env), __FILE__);
269 return false; 266 return false;
270 } 267 }
271 268
272 return true; 269 return true;
273 } 270 }
274 271
275 extern "C" JNIEXPORT bool JNICALL
276 Java_org_chromium_example_jni_1generator_SampleForTests_nativeInitNativeClass(JN IEnv*
277 env, jclass clazz) {
278 return RegisterNativesImpl(env, clazz);
279 }
280
281 #endif // org_chromium_example_jni_generator_SampleForTests_JNI 272 #endif // org_chromium_example_jni_generator_SampleForTests_JNI
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698