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

Unified Diff: build/android/gyp/java_cpp_enum_tests.py

Issue 1932183002: Add IntDefs to generated Java enums. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update deps. Created 4 years, 5 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 | « build/android/gyp/java_cpp_enum.py ('k') | components/bookmarks/common/android/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/java_cpp_enum_tests.py
diff --git a/build/android/gyp/java_cpp_enum_tests.py b/build/android/gyp/java_cpp_enum_tests.py
index 902bbfad532886f41c7575ac172b3229b0c8d80a..3444cfa254affb6369f18017e5b56d379cecc020 100755
--- a/build/android/gyp/java_cpp_enum_tests.py
+++ b/build/android/gyp/java_cpp_enum_tests.py
@@ -40,7 +40,17 @@ class TestPreprocess(unittest.TestCase):
package some.package;
+import android.support.annotation.IntDef;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
public class ClassName {
+ @IntDef({
+ E1, E2
+ })
+ @Retention(RetentionPolicy.SOURCE)
+ public @interface ClassNameEnum {}
public static final int E1 = 1;
public static final int E2 = 2 << 2;
}
« no previous file with comments | « build/android/gyp/java_cpp_enum.py ('k') | components/bookmarks/common/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698