diff options
author | agrieve <agrieve@chromium.org> | 2015-07-14 15:18:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-14 22:20:16 +0000 |
commit | 2f114fc2087cd473ebf005497c1d4a082861b377 (patch) | |
tree | d0a5a64f4110ef64d339450d54a20e6f58bff8b8 /components | |
parent | f8ce580bd29815621147a388a9831bd9a9f8e4bb (diff) | |
download | chromium_src-2f114fc2087cd473ebf005497c1d4a082861b377.zip chromium_src-2f114fc2087cd473ebf005497c1d4a082861b377.tar.gz chromium_src-2f114fc2087cd473ebf005497c1d4a082861b377.tar.bz2 |
GN: Don't define //components/gcm_driver:unit_tests on Android
It doesn't compile.
BUG=507294
Review URL: https://codereview.chromium.org/1234763002
Cr-Commit-Position: refs/heads/master@{#338750}
Diffstat (limited to 'components')
-rw-r--r-- | components/gcm_driver/BUILD.gn | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/components/gcm_driver/BUILD.gn b/components/gcm_driver/BUILD.gn index e4ecdc8..58f9c1b 100644 --- a/components/gcm_driver/BUILD.gn +++ b/components/gcm_driver/BUILD.gn @@ -125,21 +125,23 @@ static_library("test_support") { } } -source_set("unit_tests") { - testonly = true - sources = [ - "gcm_account_mapper_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", - ] +if (!is_android) { + source_set("unit_tests") { + testonly = true + sources = [ + "gcm_account_mapper_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", - ] + deps = [ + ":gcm_driver", + ":test_support", + "//testing/gtest", + "//third_party/protobuf:protobuf_lite", + ] + } } |