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 | 6 |
7 static_library("proximity_auth") { | 7 static_library("proximity_auth") { |
8 sources = [ | 8 sources = [ |
9 "authenticator.h", | 9 "authenticator.h", |
10 "bluetooth_connection.cc", | 10 "bluetooth_connection.cc", |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 "throttled_bluetooth_connection_finder.cc", | 64 "throttled_bluetooth_connection_finder.cc", |
65 "throttled_bluetooth_connection_finder.h", | 65 "throttled_bluetooth_connection_finder.h", |
66 "unlock_manager.cc", | 66 "unlock_manager.cc", |
67 "unlock_manager.h", | 67 "unlock_manager.h", |
68 "wire_message.cc", | 68 "wire_message.cc", |
69 "wire_message.h", | 69 "wire_message.h", |
70 ] | 70 ] |
71 | 71 |
72 deps = [ | 72 deps = [ |
73 "//base", | 73 "//base", |
| 74 "//components/cryptauth", |
74 "//components/prefs", | 75 "//components/prefs", |
75 "//components/proximity_auth/ble", | 76 "//components/proximity_auth/ble", |
76 "//components/proximity_auth/cryptauth", | |
77 "//components/proximity_auth/logging", | 77 "//components/proximity_auth/logging", |
78 "//components/signin/core/account_id:account_id", | 78 "//components/signin/core/account_id:account_id", |
79 "//device/bluetooth", | 79 "//device/bluetooth", |
80 "//net", | 80 "//net", |
81 ] | 81 ] |
82 | 82 |
83 # TODO(https://crbug.com/562683): This whitelists a circular include | 83 # TODO(https://crbug.com/562683): This whitelists a circular include |
84 # dependency between this target and the following targets which should not | 84 # dependency between this target and the following targets which should not |
85 # exist. | 85 # exist. |
86 allow_circular_includes_from = [ | 86 allow_circular_includes_from = [ "//components/proximity_auth/ble" ] |
87 "//components/proximity_auth/ble", | |
88 "//components/proximity_auth/cryptauth", | |
89 ] | |
90 | 87 |
91 if (is_chromeos) { | 88 if (is_chromeos) { |
92 deps += [ "//chromeos" ] | 89 deps += [ "//chromeos" ] |
93 } | 90 } |
94 } | 91 } |
95 | 92 |
96 static_library("test_support") { | 93 static_library("test_support") { |
97 testonly = true | 94 testonly = true |
98 | 95 |
99 sources = [ | 96 sources = [ |
100 "device_to_device_responder_operations.cc", | 97 "device_to_device_responder_operations.cc", |
101 "device_to_device_responder_operations.h", | 98 "device_to_device_responder_operations.h", |
102 "fake_connection.cc", | 99 "fake_connection.cc", |
103 "fake_connection.h", | 100 "fake_connection.h", |
104 "fake_secure_context.cc", | 101 "fake_secure_context.cc", |
105 "fake_secure_context.h", | 102 "fake_secure_context.h", |
106 "mock_proximity_auth_client.cc", | 103 "mock_proximity_auth_client.cc", |
107 "mock_proximity_auth_client.h", | 104 "mock_proximity_auth_client.h", |
108 "proximity_auth_test_util.cc", | 105 "proximity_auth_test_util.cc", |
109 "proximity_auth_test_util.h", | 106 "proximity_auth_test_util.h", |
110 ] | 107 ] |
111 | 108 |
112 public_deps = [ | 109 public_deps = [ |
113 ":proximity_auth", | 110 ":proximity_auth", |
114 ] | 111 ] |
115 | 112 |
116 deps = [ | 113 deps = [ |
117 "//base", | 114 "//base", |
118 "//components/proximity_auth/cryptauth:test_support", | 115 "//components/cryptauth:test_support", |
119 "//components/proximity_auth/logging", | 116 "//components/proximity_auth/logging", |
120 "//testing/gmock", | 117 "//testing/gmock", |
121 ] | 118 ] |
122 } | 119 } |
123 | 120 |
124 source_set("unit_tests") { | 121 source_set("unit_tests") { |
125 testonly = true | 122 testonly = true |
126 sources = [ | 123 sources = [ |
127 "bluetooth_connection_finder_unittest.cc", | 124 "bluetooth_connection_finder_unittest.cc", |
128 "bluetooth_connection_unittest.cc", | 125 "bluetooth_connection_unittest.cc", |
(...skipping 14 matching lines...) Expand all Loading... |
143 "wire_message_unittest.cc", | 140 "wire_message_unittest.cc", |
144 ] | 141 ] |
145 | 142 |
146 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 143 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
147 | 144 |
148 deps = [ | 145 deps = [ |
149 ":proximity_auth", | 146 ":proximity_auth", |
150 ":test_support", | 147 ":test_support", |
151 "//base", | 148 "//base", |
152 "//base/test:test_support", | 149 "//base/test:test_support", |
| 150 "//components/cryptauth:test_support", |
| 151 "//components/cryptauth:unit_tests", |
153 "//components/prefs:test_support", | 152 "//components/prefs:test_support", |
154 "//components/proximity_auth/ble:unit_tests", | 153 "//components/proximity_auth/ble:unit_tests", |
155 "//components/proximity_auth/cryptauth:test_support", | |
156 "//components/proximity_auth/cryptauth:unit_tests", | |
157 "//components/proximity_auth/logging", | 154 "//components/proximity_auth/logging", |
158 "//components/proximity_auth/logging:unit_tests", | 155 "//components/proximity_auth/logging:unit_tests", |
159 "//device/bluetooth:mocks", | 156 "//device/bluetooth:mocks", |
160 "//testing/gmock", | 157 "//testing/gmock", |
161 "//testing/gtest", | 158 "//testing/gtest", |
162 ] | 159 ] |
163 | 160 |
164 if (is_chromeos) { | 161 if (is_chromeos) { |
165 deps += [ "//chromeos" ] | 162 deps += [ "//chromeos" ] |
166 } | 163 } |
167 } | 164 } |
168 | 165 |
169 # Note: This is a convenience target for ease of rapid iteration during | 166 # Note: This is a convenience target for ease of rapid iteration during |
170 # development. It is not executed on any try or build bots. | 167 # development. It is not executed on any try or build bots. |
171 if (!is_chromeos) { | 168 if (!is_chromeos) { |
172 test("proximity_auth_unittests") { | 169 test("proximity_auth_unittests") { |
173 sources = [ | 170 sources = [ |
174 "run_all_unittests.cc", | 171 "run_all_unittests.cc", |
175 ] | 172 ] |
176 deps = [ | 173 deps = [ |
177 ":unit_tests", | 174 ":unit_tests", |
178 "//base", | 175 "//base", |
179 "//base/test:test_support", | 176 "//base/test:test_support", |
180 ] | 177 ] |
181 } | 178 } |
182 } | 179 } |
OLD | NEW |