OLD | NEW |
---|---|
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 "gcm_driver_constants.cc", | 42 "gcm_driver_constants.cc", |
43 "gcm_driver_constants.h", | 43 "gcm_driver_constants.h", |
44 "gcm_driver_desktop.cc", | 44 "gcm_driver_desktop.cc", |
45 "gcm_driver_desktop.h", | 45 "gcm_driver_desktop.h", |
46 "gcm_internals_constants.cc", | 46 "gcm_internals_constants.cc", |
47 "gcm_internals_constants.h", | 47 "gcm_internals_constants.h", |
48 "gcm_internals_helper.cc", | 48 "gcm_internals_helper.cc", |
49 "gcm_internals_helper.h", | 49 "gcm_internals_helper.h", |
50 "gcm_profile_service.cc", | 50 "gcm_profile_service.cc", |
51 "gcm_profile_service.h", | 51 "gcm_profile_service.h", |
52 "gcm_stats_recorder_android.cc", | |
53 "gcm_stats_recorder_android.h", | |
52 "gcm_stats_recorder_impl.cc", | 54 "gcm_stats_recorder_impl.cc", |
53 "gcm_stats_recorder_impl.h", | 55 "gcm_stats_recorder_impl.h", |
54 "registration_info.cc", | 56 "registration_info.cc", |
55 "registration_info.h", | 57 "registration_info.h", |
56 "system_encryptor.cc", | 58 "system_encryptor.cc", |
57 "system_encryptor.h", | 59 "system_encryptor.h", |
58 ] | 60 ] |
59 | 61 |
60 deps = [ | 62 deps = [ |
61 "//base", | 63 "//base", |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
137 ] | 139 ] |
138 deps -= [ "//google_apis/gcm:test_support" ] | 140 deps -= [ "//google_apis/gcm:test_support" ] |
139 } | 141 } |
140 } | 142 } |
141 | 143 |
142 source_set("unit_tests") { | 144 source_set("unit_tests") { |
143 testonly = true | 145 testonly = true |
144 | 146 |
145 sources = [ | 147 sources = [ |
146 "gcm_account_tracker_unittest.cc", | 148 "gcm_account_tracker_unittest.cc", |
149 "gcm_delayed_task_controller_unittest.cc", | |
147 ] | 150 ] |
148 | 151 |
149 deps = [ | 152 deps = [ |
150 ":gcm_driver", | 153 ":gcm_driver", |
151 ":test_support", | 154 ":test_support", |
152 "//base", | 155 "//base", |
153 "//base:prefs_test_support", | 156 "//base:prefs_test_support", |
154 "//base/test:test_support", | 157 "//base/test:test_support", |
155 "//google_apis:test_support", | 158 "//google_apis:test_support", |
156 "//google_apis/gcm:test_support", | 159 "//google_apis/gcm:test_support", |
157 "//net:test_support", | 160 "//net:test_support", |
158 "//sync/protocol", | 161 "//sync/protocol", |
159 "//testing/gtest", | 162 "//testing/gtest", |
160 "//third_party/protobuf:protobuf_lite", | 163 "//third_party/protobuf:protobuf_lite", |
161 ] | 164 ] |
162 | 165 |
163 if (!is_android) { | 166 if (!is_android) { |
164 sources += [ | 167 sources += [ |
165 "gcm_account_mapper_unittest.cc", | 168 "gcm_account_mapper_unittest.cc", |
166 "gcm_channel_status_request_unittest.cc", | 169 "gcm_channel_status_request_unittest.cc", |
167 "gcm_client_impl_unittest.cc", | 170 "gcm_client_impl_unittest.cc", |
168 "gcm_delayed_task_controller_unittest.cc", | |
169 "gcm_driver_desktop_unittest.cc", | 171 "gcm_driver_desktop_unittest.cc", |
170 "gcm_stats_recorder_impl_unittest.cc", | 172 "gcm_stats_recorder_impl_unittest.cc", |
171 ] | 173 ] |
174 } else { | |
175 sources += [ "gcm_stats_recorder_android_unittest.cc" ] | |
Nicolas Zea
2015/12/16 22:24:31
nit: prefer not having a negative condition or add
Peter Beverloo
2015/12/17 17:08:24
This was done as part of https://codereview.chromi
| |
172 } | 176 } |
173 } | 177 } |
OLD | NEW |