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; |