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
3 # found in the LICENSE file.
5 # GYP version: components/gcm_driver.gypi:gcm_driver
6 static_library("gcm_driver") {
8 "android/component_jni_registrar.cc",
9 "android/component_jni_registrar.h",
10 "default_gcm_app_handler.cc",
11 "default_gcm_app_handler.h",
12 "gcm_account_mapper.cc",
13 "gcm_account_mapper.h",
14 "gcm_account_tracker.cc",
15 "gcm_account_tracker.h",
20 "gcm_backoff_policy.cc",
21 "gcm_backoff_policy.h",
22 "gcm_channel_status_request.cc",
23 "gcm_channel_status_request.h",
24 "gcm_channel_status_syncer.cc",
25 "gcm_channel_status_syncer.h",
28 "gcm_client_factory.cc",
29 "gcm_client_factory.h",
32 "gcm_connection_observer.cc",
33 "gcm_connection_observer.h",
34 "gcm_delayed_task_controller.cc",
35 "gcm_delayed_task_controller.h",
38 "gcm_driver_android.cc",
39 "gcm_driver_android.h",
40 "gcm_driver_desktop.cc",
41 "gcm_driver_desktop.h",
42 "gcm_stats_recorder_impl.cc",
43 "gcm_stats_recorder_impl.h",
44 "registration_info.cc",
45 "registration_info.h",
46 "system_encryptor.cc",
53 "//components/gcm_driver/common",
54 "//components/os_crypt",
61 deps += [ "//components/timers" ]
66 "gcm_account_mapper.cc",
67 "gcm_account_mapper.h",
68 "gcm_channel_status_request.cc",
69 "gcm_channel_status_request.h",
70 "gcm_channel_status_syncer.cc",
71 "gcm_channel_status_syncer.h",
72 "gcm_client_factory.cc",
73 "gcm_client_factory.h",
76 "gcm_driver_desktop.cc",
77 "gcm_driver_desktop.h",
78 "gcm_stats_recorder_impl.cc",
79 "gcm_stats_recorder_impl.h",
81 deps -= [ "//google_apis/gcm" ]
82 deps += [ "android:jni_headers" ]
86 # GYP version: components/gcm_driver.gypi:gcm_driver_test_support
87 static_library("test_support") {
90 "fake_gcm_app_handler.cc",
91 "fake_gcm_app_handler.h",
94 "fake_gcm_client_factory.cc",
95 "fake_gcm_client_factory.h",
103 "//google_apis/gcm:test_support",
109 "fake_gcm_client.cc",
111 "fake_gcm_client_factory.cc",
112 "fake_gcm_client_factory.h",
114 deps -= [ "//google_apis/gcm:test_support" ]
119 source_set("unit_tests") {
122 "gcm_account_mapper_unittest.cc",
123 "gcm_account_tracker_unittest.cc",
124 "gcm_channel_status_request_unittest.cc",
125 "gcm_client_impl_unittest.cc",
126 "gcm_delayed_task_controller_unittest.cc",
127 "gcm_driver_desktop_unittest.cc",
128 "gcm_stats_recorder_impl_unittest.cc",
135 "//third_party/protobuf:protobuf_lite",