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

Unified Diff: components/gcm_driver/instance_id/BUILD.gn

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/gcm_driver.gypi ('k') | components/gcm_driver/instance_id/android/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/instance_id/BUILD.gn
diff --git a/components/gcm_driver/instance_id/BUILD.gn b/components/gcm_driver/instance_id/BUILD.gn
index ec00c0b3766433915e27b9ba8baa1e640e79097c..7e893ffe6b41d31a8cd93ca48e62c88c6dbbd1f4 100644
--- a/components/gcm_driver/instance_id/BUILD.gn
+++ b/components/gcm_driver/instance_id/BUILD.gn
@@ -41,14 +41,22 @@ source_set("test_support") {
sources = [
"fake_gcm_driver_for_instance_id.cc",
"fake_gcm_driver_for_instance_id.h",
+ "scoped_use_fake_instance_id_android.cc",
+ "scoped_use_fake_instance_id_android.h",
]
- deps = [
+ public_deps = [
":instance_id",
+ ]
+ deps = [
"//base",
"//components/gcm_driver:test_support",
"//testing/gtest",
]
+
+ if (is_android) {
+ deps += [ "android:test_support_jni_headers" ]
+ }
}
source_set("unit_tests") {
« no previous file with comments | « components/gcm_driver.gypi ('k') | components/gcm_driver/instance_id/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698