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

Unified Diff: base/android/jni_generator/jni_generator_tests.py

Issue 1641513004: Update //base to chromium 9659b08ea5a34f889dc4166217f438095ddc10d2 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « base/android/jni_generator/jni_generator.py ('k') | base/android/jni_generator/sample_for_tests.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/jni_generator/jni_generator_tests.py
diff --git a/base/android/jni_generator/jni_generator_tests.py b/base/android/jni_generator/jni_generator_tests.py
index 60148470b31f0ec28d7e7bf7368b9b8b7e79e9b2..21534ef44585fbedc361e7b2fe3e3151c1534c0e 100755
--- a/base/android/jni_generator/jni_generator_tests.py
+++ b/base/android/jni_generator/jni_generator_tests.py
@@ -1085,29 +1085,6 @@ class Foo {
TestOptions())
self.assertRaises(SyntaxError, willRaise)
- def testImplicitImport(self):
- test_data = """
- package org.chromium.android_webview;
-
- %(IMPORT)s
-
- @CalledByNative
- private static void clientCertificatesCleared(Runnable callback) {
- if (callbaback == null) return;
- callback.run();
- }
- """
- def generate(import_clause):
- jni_generator.JNIFromJavaSource(
- test_data % {'IMPORT': import_clause},
- 'org/chromium/android_webview/AwContentStatics',
- TestOptions())
- # Ensure it raises without the import.
- self.assertRaises(SyntaxError, lambda: generate(''))
-
- # Ensure it's fine with the import.
- generate('import java.lang.Runnable;')
-
def testSingleJNIAdditionalImport(self):
test_data = """
package org.chromium.foo;
« no previous file with comments | « base/android/jni_generator/jni_generator.py ('k') | base/android/jni_generator/sample_for_tests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698