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

Unified Diff: components/gcm_driver.gypi

Issue 1829023002: Add fake for InstanceIDWithSubtype.java, in order to re-use unit test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iid2jni
Patch Set: Re-fix FindBugs Created 4 years, 8 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 | « components/components_tests.gyp ('k') | components/gcm_driver/instance_id/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver.gypi
diff --git a/components/gcm_driver.gypi b/components/gcm_driver.gypi
index 1531dd1b65ad11d1e970fbde9e9c44cfc23cf6a0..92b1b2ab6902a8fc4880907e29b4874693033a9e 100644
--- a/components/gcm_driver.gypi
+++ b/components/gcm_driver.gypi
@@ -214,6 +214,15 @@
# Note: file list duplicated in GN build.
'gcm_driver/instance_id/fake_gcm_driver_for_instance_id.cc',
'gcm_driver/instance_id/fake_gcm_driver_for_instance_id.h',
+ 'gcm_driver/instance_id/scoped_use_fake_instance_id_android.cc',
+ 'gcm_driver/instance_id/scoped_use_fake_instance_id_android.h',
+ ],
+ 'conditions': [
+ ['OS == "android"', {
+ 'dependencies': [
+ 'instance_id_driver_test_support_jni_headers',
+ ],
+ }],
],
},
{
@@ -323,6 +332,18 @@
'includes': [ '../build/java.gypi' ],
},
{
+ # GN version: //components/gcm_driver/instance_id/android:instance_id_driver_test_support_java
+ 'target_name': 'instance_id_driver_test_support_java',
+ 'type': 'none',
+ 'dependencies': [
+ 'instance_id_driver_java',
+ ],
+ 'variables': {
+ 'java_in_dir': 'gcm_driver/instance_id/android/javatests',
+ },
+ 'includes': [ '../build/java.gypi' ],
+ },
+ {
# GN version: //components/gcm_driver/instance_id/android:jni_headers
'target_name': 'instance_id_driver_jni_headers',
'type': 'none',
@@ -334,6 +355,18 @@
},
'includes': [ '../build/jni_generator.gypi' ],
},
+ {
+ # GN version: //components/gcm_driver/instance_id/android:test_support_jni_headers
+ 'target_name': 'instance_id_driver_test_support_jni_headers',
+ 'type': 'none',
+ 'sources': [
+ 'gcm_driver/instance_id/android/javatests/src/org/chromium/components/gcm_driver/instance_id/FakeInstanceIDWithSubtype.java',
+ ],
+ 'variables': {
+ 'jni_gen_package': 'components/gcm_driver/instance_id',
+ },
+ 'includes': [ '../build/jni_generator.gypi' ],
+ },
],
},
],
« no previous file with comments | « components/components_tests.gyp ('k') | components/gcm_driver/instance_id/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698