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 source_set("proximity_auth") { | 7 source_set("proximity_auth") { |
8 sources = [ | 8 sources = [ |
9 "authenticator.h", | 9 "authenticator.h", |
10 "bluetooth_connection.cc", | 10 "bluetooth_connection.cc", |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 "switches.h", | 63 "switches.h", |
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 "cryptauth/proto", | |
74 "logging", | |
75 "//base", | 73 "//base", |
76 "//device/bluetooth", | 74 "//device/bluetooth", |
77 "//net", | 75 "//net", |
| 76 "cryptauth/proto", |
| 77 "logging", |
78 ] | 78 ] |
79 } | 79 } |
80 | 80 |
81 source_set("test_support") { | 81 source_set("test_support") { |
82 testonly = true | 82 testonly = true |
83 | 83 |
84 sources = [ | 84 sources = [ |
85 "device_to_device_responder_operations.cc", | 85 "device_to_device_responder_operations.cc", |
86 "device_to_device_responder_operations.h", | 86 "device_to_device_responder_operations.h", |
87 "fake_connection.cc", | 87 "fake_connection.cc", |
88 "fake_connection.h", | 88 "fake_connection.h", |
89 "fake_secure_context.cc", | 89 "fake_secure_context.cc", |
90 "fake_secure_context.h", | 90 "fake_secure_context.h", |
91 "mock_proximity_auth_client.cc", | 91 "mock_proximity_auth_client.cc", |
92 "mock_proximity_auth_client.h", | 92 "mock_proximity_auth_client.h", |
93 "proximity_auth_test_util.cc", | 93 "proximity_auth_test_util.cc", |
94 "proximity_auth_test_util.h", | 94 "proximity_auth_test_util.h", |
95 ] | 95 ] |
96 | 96 |
97 deps = [ | 97 deps = [ |
98 "cryptauth:test_support", | |
99 "//base", | 98 "//base", |
100 "//testing/gmock", | 99 "//testing/gmock", |
| 100 "cryptauth:test_support", |
101 ] | 101 ] |
102 } | 102 } |
103 | 103 |
104 source_set("unit_tests") { | 104 source_set("unit_tests") { |
105 testonly = true | 105 testonly = true |
106 sources = [ | 106 sources = [ |
107 "bluetooth_connection_finder_unittest.cc", | 107 "bluetooth_connection_finder_unittest.cc", |
108 "bluetooth_connection_unittest.cc", | 108 "bluetooth_connection_unittest.cc", |
109 "bluetooth_throttler_impl_unittest.cc", | 109 "bluetooth_throttler_impl_unittest.cc", |
110 "connection_unittest.cc", | 110 "connection_unittest.cc", |
(...skipping 10 matching lines...) Expand all Loading... |
121 "throttled_bluetooth_connection_finder_unittest.cc", | 121 "throttled_bluetooth_connection_finder_unittest.cc", |
122 "unlock_manager_unittest.cc", | 122 "unlock_manager_unittest.cc", |
123 "wire_message_unittest.cc", | 123 "wire_message_unittest.cc", |
124 ] | 124 ] |
125 | 125 |
126 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 126 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
127 | 127 |
128 deps = [ | 128 deps = [ |
129 ":proximity_auth", | 129 ":proximity_auth", |
130 ":test_support", | 130 ":test_support", |
| 131 "//base/test:test_support", |
| 132 "//device/bluetooth:mocks", |
| 133 "//testing/gmock", |
| 134 "//testing/gtest", |
131 "ble:unit_tests", | 135 "ble:unit_tests", |
132 "cryptauth:test_support", | 136 "cryptauth:test_support", |
133 "cryptauth:unit_tests", | 137 "cryptauth:unit_tests", |
134 "logging:unit_tests", | 138 "logging:unit_tests", |
135 "//base/test:test_support", | |
136 "//device/bluetooth:mocks", | |
137 "//testing/gmock", | |
138 "//testing/gtest", | |
139 ] | 139 ] |
140 } | 140 } |
141 | 141 |
142 # Note: This is a convenience target for ease of rapid iteration during | 142 # Note: This is a convenience target for ease of rapid iteration during |
143 # development. It is not executed on any try or build bots. | 143 # development. It is not executed on any try or build bots. |
144 test("proximity_auth_unittests") { | 144 test("proximity_auth_unittests") { |
145 sources = [ | 145 sources = [ |
146 "run_all_unittests.cc", | 146 "run_all_unittests.cc", |
147 ] | 147 ] |
148 deps = [ | 148 deps = [ |
149 ":unit_tests", | 149 ":unit_tests", |
150 ] | 150 ] |
151 } | 151 } |
OLD | NEW |