Make component_unittests run the same tests on GYP and GN on Android
BUG=510485
R=skyostil
TBR=sdefresne
Review URL: https://codereview.chromium.org/1418543006
Cr-Commit-Position: refs/heads/master@{#356911}
diff --git a/components/gcm_driver/BUILD.gn b/components/gcm_driver/BUILD.gn
index 111d97a..b009eac 100644
--- a/components/gcm_driver/BUILD.gn
+++ b/components/gcm_driver/BUILD.gn
@@ -125,24 +125,28 @@
}
}
-if (!is_android) {
- source_set("unit_tests") {
- testonly = true
- sources = [
+source_set("unit_tests") {
+ testonly = true
+
+ sources = [
+ "gcm_account_tracker_unittest.cc",
+ ]
+
+ deps = [
+ ":gcm_driver",
+ ":test_support",
+ "//testing/gtest",
+ "//third_party/protobuf:protobuf_lite",
+ ]
+
+ if (!is_android) {
+ sources += [
"gcm_account_mapper_unittest.cc",
- "gcm_account_tracker_unittest.cc",
"gcm_channel_status_request_unittest.cc",
"gcm_client_impl_unittest.cc",
"gcm_delayed_task_controller_unittest.cc",
"gcm_driver_desktop_unittest.cc",
"gcm_stats_recorder_impl_unittest.cc",
]
-
- deps = [
- ":gcm_driver",
- ":test_support",
- "//testing/gtest",
- "//third_party/protobuf:protobuf_lite",
- ]
}
}