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

Unified Diff: base/android/jni_generator/testJarJarRemapping.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 side-by-side diff with in-line comments
Download patch
Index: base/android/jni_generator/testJarJarRemapping.golden
diff --git a/base/android/jni_generator/testJarJarRemapping.golden b/base/android/jni_generator/testJarJarRemapping.golden
deleted file mode 100644
index fe1395272ceaa0aef3c8e718689551585b6dd38d..0000000000000000000000000000000000000000
--- a/base/android/jni_generator/testJarJarRemapping.golden
+++ /dev/null
@@ -1,116 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// This file is autogenerated by
-// base/android/jni_generator/jni_generator.py
-// For
-// org/chromium/example/jni_generator/Example
-
-#ifndef org_chromium_example_jni_generator_Example_JNI
-#define org_chromium_example_jni_generator_Example_JNI
-
-#include <jni.h>
-
-#include "base/android/jni_generator/jni_generator_helper.h"
-
-#include "base/android/jni_int_wrapper.h"
-
-// Step 1: forward declarations.
-namespace {
-const char kExampleClassPath[] = "com/test/jni_generator/Example";
-// Leaking this jclass as we cannot use LazyInstance from some threads.
-jclass g_Example_clazz = NULL;
-#define Example_clazz(env) g_Example_clazz
-
-} // namespace
-
-// Step 2: method stubs.
-
-static void Test(JNIEnv* env, const JavaParamRef<jclass>& jcaller,
- const JavaParamRef<jobject>& t);
-
-static void Java_com_test_jni_1generator_Example_nativeTest(JNIEnv* env, jclass
- jcaller,
- jobject t) {
- return Test(env, JavaParamRef<jclass>(env, jcaller),
- JavaParamRef<jobject>(env, t));
-}
-
-static void Test2(JNIEnv* env, const JavaParamRef<jclass>& jcaller,
- const JavaParamRef<jobject>& t);
-
-static void Java_com_test_jni_1generator_Example_nativeTest2(JNIEnv* env, jclass
- jcaller,
- jobject t) {
- return Test2(env, JavaParamRef<jclass>(env, jcaller),
- JavaParamRef<jobject>(env, t));
-}
-
-static void Test3(JNIEnv* env, const JavaParamRef<jclass>& jcaller,
- const JavaParamRef<jobject>& t);
-
-static void Java_com_test_jni_1generator_Example_nativeTest3(JNIEnv* env, jclass
- jcaller,
- jobject t) {
- return Test3(env, JavaParamRef<jclass>(env, jcaller),
- JavaParamRef<jobject>(env, t));
-}
-
-static void Test4(JNIEnv* env, const JavaParamRef<jclass>& jcaller,
- const JavaParamRef<jobject>& t);
-
-static void Java_com_test_jni_1generator_Example_nativeTest4(JNIEnv* env, jclass
- jcaller,
- jobject t) {
- return Test4(env, JavaParamRef<jclass>(env, jcaller),
- JavaParamRef<jobject>(env, t));
-}
-
-// Step 3: RegisterNatives.
-
-static const JNINativeMethod kMethodsExample[] = {
- { "nativeTest",
-"("
-"Lorg/test2/Test;"
-")"
-"V", reinterpret_cast<void*>(Java_com_test_jni_1generator_Example_nativeTest) },
- { "nativeTest2",
-"("
-"Lorg/chromium/example3/PrefixFoo;"
-")"
-"V", reinterpret_cast<void*>(Java_com_test_jni_1generator_Example_nativeTest2)
- },
- { "nativeTest3",
-"("
-"Lorg/test3/Test;"
-")"
-"V", reinterpret_cast<void*>(Java_com_test_jni_1generator_Example_nativeTest3)
- },
- { "nativeTest4",
-"("
-"Lorg/test3/TestBar$Inner;"
-")"
-"V", reinterpret_cast<void*>(Java_com_test_jni_1generator_Example_nativeTest4)
- },
-};
-
-static bool RegisterNativesImpl(JNIEnv* env) {
-
- g_Example_clazz = reinterpret_cast<jclass>(env->NewGlobalRef(
- base::android::GetClass(env, kExampleClassPath).obj()));
-
- const int kMethodsExampleSize = arraysize(kMethodsExample);
-
- if (env->RegisterNatives(Example_clazz(env),
- kMethodsExample,
- kMethodsExampleSize) < 0) {
- jni_generator::HandleRegistrationError(
- env, Example_clazz(env), __FILE__);
- return false;
- }
-
- return true;
-}
-
-#endif // org_chromium_example_jni_generator_Example_JNI

Powered by Google App Engine
This is Rietveld 408576698