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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
6 import("//third_party/protobuf/proto_library.gni") | 6 import("//third_party/protobuf/proto_library.gni") |
7 | 7 |
8 component("gcm") { | 8 component("gcm") { |
9 sources = [ | 9 sources = [ |
10 "base/mcs_message.cc", | 10 "base/mcs_message.cc", |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 deps = [ | 52 deps = [ |
53 "//base", | 53 "//base", |
54 "//base/third_party/dynamic_annotations", | 54 "//base/third_party/dynamic_annotations", |
55 "//net", | 55 "//net", |
56 "//third_party/leveldatabase", | 56 "//third_party/leveldatabase", |
57 "//url", | 57 "//url", |
58 ] | 58 ] |
59 } | 59 } |
60 | 60 |
61 proto_library("proto") { | 61 proto_library("proto") { |
62 visibility = [ ":*" ] | 62 # This is part of the gcm component. |
| 63 visibility = [ ":gcm" ] |
63 sources = [ | 64 sources = [ |
64 "protocol/android_checkin.proto", | 65 "protocol/android_checkin.proto", |
65 "protocol/checkin.proto", | 66 "protocol/checkin.proto", |
66 "protocol/mcs.proto", | 67 "protocol/mcs.proto", |
67 ] | 68 ] |
68 | 69 |
69 cc_generator_options = "dllexport_decl=GCM_EXPORT:" | 70 cc_generator_options = "dllexport_decl=GCM_EXPORT:" |
70 cc_include = "google_apis/gcm/base/gcm_export.h" | 71 cc_include = "google_apis/gcm/base/gcm_export.h" |
71 defines = [ "GCM_IMPLEMENTATION" ] | 72 defines = [ "GCM_IMPLEMENTATION" ] |
72 } | 73 } |
73 | 74 |
74 static_library("test_support") { | 75 source_set("test_support") { |
75 testonly = true | 76 testonly = true |
76 sources = [ | 77 sources = [ |
77 "base/fake_encryptor.cc", | 78 "base/fake_encryptor.cc", |
78 "base/fake_encryptor.h", | 79 "base/fake_encryptor.h", |
79 "engine/fake_connection_factory.cc", | 80 "engine/fake_connection_factory.cc", |
80 "engine/fake_connection_factory.h", | 81 "engine/fake_connection_factory.h", |
81 "engine/fake_connection_handler.cc", | 82 "engine/fake_connection_handler.cc", |
82 "engine/fake_connection_handler.h", | 83 "engine/fake_connection_handler.h", |
83 "monitoring/fake_gcm_stats_recorder.cc", | 84 "monitoring/fake_gcm_stats_recorder.cc", |
84 "monitoring/fake_gcm_stats_recorder.h", | 85 "monitoring/fake_gcm_stats_recorder.h", |
(...skipping 11 matching lines...) Expand all Loading... |
96 | 97 |
97 # A standalone MCS (mobile connection server) client. | 98 # A standalone MCS (mobile connection server) client. |
98 executable("mcs_probe") { | 99 executable("mcs_probe") { |
99 testonly = true | 100 testonly = true |
100 sources = [ | 101 sources = [ |
101 "tools/mcs_probe.cc", | 102 "tools/mcs_probe.cc", |
102 ] | 103 ] |
103 | 104 |
104 deps = [ | 105 deps = [ |
105 ":gcm", | 106 ":gcm", |
106 ":proto", | |
107 ":test_support", | 107 ":test_support", |
108 "//base", | 108 "//base", |
109 "//net", | 109 "//net", |
110 "//net:test_support", | 110 "//net:test_support", |
| 111 "//third_party/protobuf:protobuf_lite", |
111 ] | 112 ] |
112 } | 113 } |
113 | 114 |
114 test("gcm_unit_tests") { | 115 test("gcm_unit_tests") { |
115 sources = [ | 116 sources = [ |
116 "base/mcs_message_unittest.cc", | 117 "base/mcs_message_unittest.cc", |
117 "base/mcs_util_unittest.cc", | 118 "base/mcs_util_unittest.cc", |
118 "base/socket_stream_unittest.cc", | 119 "base/socket_stream_unittest.cc", |
119 "engine/account_mapping_unittest.cc", | 120 "engine/account_mapping_unittest.cc", |
120 "engine/checkin_request_unittest.cc", | 121 "engine/checkin_request_unittest.cc", |
121 "engine/connection_factory_impl_unittest.cc", | 122 "engine/connection_factory_impl_unittest.cc", |
122 "engine/connection_handler_impl_unittest.cc", | 123 "engine/connection_handler_impl_unittest.cc", |
123 "engine/gcm_store_impl_unittest.cc", | 124 "engine/gcm_store_impl_unittest.cc", |
124 "engine/gservices_settings_unittest.cc", | 125 "engine/gservices_settings_unittest.cc", |
125 "engine/heartbeat_manager_unittest.cc", | 126 "engine/heartbeat_manager_unittest.cc", |
126 "engine/mcs_client_unittest.cc", | 127 "engine/mcs_client_unittest.cc", |
127 "engine/registration_request_unittest.cc", | 128 "engine/registration_request_unittest.cc", |
128 "engine/unregistration_request_unittest.cc", | 129 "engine/unregistration_request_unittest.cc", |
129 ] | 130 ] |
130 | 131 |
131 deps = [ | 132 deps = [ |
132 ":proto", | 133 ":gcm", |
133 ":test_support", | 134 ":test_support", |
134 "//base", | 135 "//base", |
135 "//base/test:run_all_unittests", | 136 "//base/test:run_all_unittests", |
136 "//net", | 137 "//net", |
137 "//net:test_support", | 138 "//net:test_support", |
138 "//testing/gtest", | 139 "//testing/gtest", |
| 140 "//third_party/protobuf:protobuf_lite", |
139 ] | 141 ] |
140 } | 142 } |
OLD | NEW |