OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 | 9 |
10 'targets': [ | 10 'targets': [ |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 'engine/registration_request.cc', | 68 'engine/registration_request.cc', |
69 'engine/registration_request.h', | 69 'engine/registration_request.h', |
70 'engine/unregistration_request.cc', | 70 'engine/unregistration_request.cc', |
71 'engine/unregistration_request.h', | 71 'engine/unregistration_request.h', |
72 'gcm_activity.cc', | 72 'gcm_activity.cc', |
73 'gcm_activity.h', | 73 'gcm_activity.h', |
74 'gcm_client.cc', | 74 'gcm_client.cc', |
75 'gcm_client.h', | 75 'gcm_client.h', |
76 'gcm_client_impl.cc', | 76 'gcm_client_impl.cc', |
77 'gcm_client_impl.h', | 77 'gcm_client_impl.h', |
78 'monitoring/gcm_stats_recorder.cc', | |
79 'monitoring/gcm_stats_recorder.h', | 78 'monitoring/gcm_stats_recorder.h', |
| 79 'monitoring/gcm_stats_recorder_impl.cc', |
| 80 'monitoring/gcm_stats_recorder_impl.h', |
80 'protocol/android_checkin.proto', | 81 'protocol/android_checkin.proto', |
81 'protocol/checkin.proto', | 82 'protocol/checkin.proto', |
82 'protocol/mcs.proto', | 83 'protocol/mcs.proto', |
83 ], | 84 ], |
84 'includes': [ | 85 'includes': [ |
85 '../../build/protoc.gypi' | 86 '../../build/protoc.gypi' |
86 ], | 87 ], |
87 }, | 88 }, |
88 | 89 |
| 90 # The test support library that is needed to test gcm. |
| 91 { |
| 92 'target_name': 'gcm_test_support', |
| 93 'type': 'static_library', |
| 94 'include_dirs': [ |
| 95 '..', |
| 96 ], |
| 97 'export_dependent_settings': [ |
| 98 '../../third_party/protobuf/protobuf.gyp:protobuf_lite' |
| 99 ], |
| 100 'dependencies': [ |
| 101 '../../base/base.gyp:base', |
| 102 '../../testing/gtest.gyp:gtest', |
| 103 '../../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 104 'gcm', |
| 105 ], |
| 106 'sources': [ |
| 107 'base/fake_encryptor.cc', |
| 108 'base/fake_encryptor.h', |
| 109 'engine/fake_connection_factory.cc', |
| 110 'engine/fake_connection_factory.h', |
| 111 'engine/fake_connection_handler.cc', |
| 112 'engine/fake_connection_handler.h', |
| 113 'monitoring/fake_gcm_stats_recorder.cc', |
| 114 'monitoring/fake_gcm_stats_recorder.h', |
| 115 ], |
| 116 }, |
| 117 |
89 # A standalone MCS (mobile connection server) client. | 118 # A standalone MCS (mobile connection server) client. |
90 { | 119 { |
91 'target_name': 'mcs_probe', | 120 'target_name': 'mcs_probe', |
92 'type': 'executable', | 121 'type': 'executable', |
93 'variables': { 'enable_wexit_time_destructors': 1, }, | 122 'variables': { 'enable_wexit_time_destructors': 1, }, |
94 'include_dirs': [ | 123 'include_dirs': [ |
95 '../..', | 124 '../..', |
96 ], | 125 ], |
97 'dependencies': [ | 126 'dependencies': [ |
98 '../../base/base.gyp:base', | 127 '../../base/base.gyp:base', |
99 '../../net/net.gyp:net', | 128 '../../net/net.gyp:net', |
100 '../../net/net.gyp:net_test_support', | 129 '../../net/net.gyp:net_test_support', |
101 '../../third_party/protobuf/protobuf.gyp:protobuf_lite', | 130 '../../third_party/protobuf/protobuf.gyp:protobuf_lite', |
102 'gcm' | 131 'gcm', |
| 132 'gcm_test_support' |
103 ], | 133 ], |
104 'sources': [ | 134 'sources': [ |
105 'base/fake_encryptor.cc', | |
106 'base/fake_encryptor.h', | |
107 'tools/mcs_probe.cc', | 135 'tools/mcs_probe.cc', |
108 ], | 136 ], |
109 }, | 137 }, |
110 | 138 |
111 # The main GCM unit tests. | 139 # The main GCM unit tests. |
112 { | 140 { |
113 'target_name': 'gcm_unit_tests', | 141 'target_name': 'gcm_unit_tests', |
114 'type': '<(gtest_target_type)', | 142 'type': '<(gtest_target_type)', |
115 'variables': { 'enable_wexit_time_destructors': 1, }, | 143 'variables': { 'enable_wexit_time_destructors': 1, }, |
116 'include_dirs': [ | 144 'include_dirs': [ |
117 '../..', | 145 '../..', |
118 ], | 146 ], |
119 'export_dependent_settings': [ | 147 'export_dependent_settings': [ |
120 '../../third_party/protobuf/protobuf.gyp:protobuf_lite' | 148 '../../third_party/protobuf/protobuf.gyp:protobuf_lite' |
121 ], | 149 ], |
122 'dependencies': [ | 150 'dependencies': [ |
123 '../../base/base.gyp:run_all_unittests', | 151 '../../base/base.gyp:run_all_unittests', |
124 '../../base/base.gyp:base', | 152 '../../base/base.gyp:base', |
125 '../../net/net.gyp:net', | 153 '../../net/net.gyp:net', |
126 '../../net/net.gyp:net_test_support', | 154 '../../net/net.gyp:net_test_support', |
127 '../../testing/gtest.gyp:gtest', | 155 '../../testing/gtest.gyp:gtest', |
128 '../../third_party/protobuf/protobuf.gyp:protobuf_lite', | 156 '../../third_party/protobuf/protobuf.gyp:protobuf_lite', |
129 'mcs_probe', | 157 'mcs_probe', |
130 'gcm' | 158 'gcm', |
| 159 'gcm_test_support' |
131 ], | 160 ], |
132 'sources': [ | 161 'sources': [ |
133 'base/fake_encryptor.cc', | |
134 'base/fake_encryptor.h', | |
135 'base/mcs_message_unittest.cc', | 162 'base/mcs_message_unittest.cc', |
136 'base/mcs_util_unittest.cc', | 163 'base/mcs_util_unittest.cc', |
137 'base/socket_stream_unittest.cc', | 164 'base/socket_stream_unittest.cc', |
138 'engine/checkin_request_unittest.cc', | 165 'engine/checkin_request_unittest.cc', |
139 'engine/connection_factory_impl_unittest.cc', | 166 'engine/connection_factory_impl_unittest.cc', |
140 'engine/connection_handler_impl_unittest.cc', | 167 'engine/connection_handler_impl_unittest.cc', |
141 'engine/fake_connection_factory.cc', | |
142 'engine/fake_connection_factory.h', | |
143 'engine/fake_connection_handler.cc', | |
144 'engine/fake_connection_handler.h', | |
145 'engine/gcm_store_impl_unittest.cc', | 168 'engine/gcm_store_impl_unittest.cc', |
146 'engine/gservices_settings_unittest.cc', | 169 'engine/gservices_settings_unittest.cc', |
147 'engine/heartbeat_manager_unittest.cc', | 170 'engine/heartbeat_manager_unittest.cc', |
148 'engine/mcs_client_unittest.cc', | 171 'engine/mcs_client_unittest.cc', |
149 'engine/registration_request_unittest.cc', | 172 'engine/registration_request_unittest.cc', |
150 'engine/unregistration_request_unittest.cc', | 173 'engine/unregistration_request_unittest.cc', |
151 'gcm_client_impl_unittest.cc', | 174 'gcm_client_impl_unittest.cc', |
152 'monitoring/gcm_stats_recorder_unittest.cc' | 175 'monitoring/gcm_stats_recorder_impl_unittest.cc' |
153 ] | 176 ] |
154 }, | 177 }, |
155 ], | 178 ], |
156 } | 179 } |
OLD | NEW |