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

Side by Side Diff: components/gcm_driver/BUILD.gn

Issue 1418543006: Make component_unittests run the same tests on GYP and GN on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « components/data_use_measurement/content/BUILD.gn ('k') | components/metrics/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # GYP version: components/gcm_driver.gypi:gcm_driver 5 # GYP version: components/gcm_driver.gypi:gcm_driver
6 static_library("gcm_driver") { 6 static_library("gcm_driver") {
7 sources = [ 7 sources = [
8 "android/component_jni_registrar.cc", 8 "android/component_jni_registrar.cc",
9 "android/component_jni_registrar.h", 9 "android/component_jni_registrar.h",
10 "default_gcm_app_handler.cc", 10 "default_gcm_app_handler.cc",
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 sources -= [ 118 sources -= [
119 "fake_gcm_client.cc", 119 "fake_gcm_client.cc",
120 "fake_gcm_client.h", 120 "fake_gcm_client.h",
121 "fake_gcm_client_factory.cc", 121 "fake_gcm_client_factory.cc",
122 "fake_gcm_client_factory.h", 122 "fake_gcm_client_factory.h",
123 ] 123 ]
124 deps -= [ "//google_apis/gcm:test_support" ] 124 deps -= [ "//google_apis/gcm:test_support" ]
125 } 125 }
126 } 126 }
127 127
128 if (!is_android) { 128 source_set("unit_tests") {
129 source_set("unit_tests") { 129 testonly = true
130 testonly = true 130
131 sources = [ 131 sources = [
132 "gcm_account_tracker_unittest.cc",
133 ]
134
135 deps = [
136 ":gcm_driver",
137 ":test_support",
138 "//testing/gtest",
139 "//third_party/protobuf:protobuf_lite",
140 ]
141
142 if (!is_android) {
143 sources += [
132 "gcm_account_mapper_unittest.cc", 144 "gcm_account_mapper_unittest.cc",
133 "gcm_account_tracker_unittest.cc",
134 "gcm_channel_status_request_unittest.cc", 145 "gcm_channel_status_request_unittest.cc",
135 "gcm_client_impl_unittest.cc", 146 "gcm_client_impl_unittest.cc",
136 "gcm_delayed_task_controller_unittest.cc", 147 "gcm_delayed_task_controller_unittest.cc",
137 "gcm_driver_desktop_unittest.cc", 148 "gcm_driver_desktop_unittest.cc",
138 "gcm_stats_recorder_impl_unittest.cc", 149 "gcm_stats_recorder_impl_unittest.cc",
139 ] 150 ]
140
141 deps = [
142 ":gcm_driver",
143 ":test_support",
144 "//testing/gtest",
145 "//third_party/protobuf:protobuf_lite",
146 ]
147 } 151 }
148 } 152 }
OLDNEW
« no previous file with comments | « components/data_use_measurement/content/BUILD.gn ('k') | components/metrics/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698