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") { |