Update V8 to version 4.7.15.
[chromium-blink-merge.git] / components / proximity_auth / BUILD.gn
blob5835787aca3088def377ac6cdc03d34765190f49
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 import("//testing/test.gni")
7 source_set("proximity_auth") {
8   sources = [
9     "authenticator.h",
10     "bluetooth_connection.cc",
11     "bluetooth_connection.h",
12     "bluetooth_connection_finder.cc",
13     "bluetooth_connection_finder.h",
14     "bluetooth_throttler.h",
15     "bluetooth_throttler_impl.cc",
16     "bluetooth_throttler_impl.h",
17     "bluetooth_util.cc",
18     "bluetooth_util.h",
19     "bluetooth_util_chromeos.cc",
20     "client.h",
21     "client_impl.cc",
22     "client_impl.h",
23     "client_observer.h",
24     "connection.cc",
25     "connection.h",
26     "connection_finder.h",
27     "connection_observer.h",
28     "controller.h",
29     "device_to_device_authenticator.cc",
30     "device_to_device_authenticator.h",
31     "device_to_device_initiator_operations.cc",
32     "device_to_device_initiator_operations.h",
33     "device_to_device_secure_context.cc",
34     "device_to_device_secure_context.h",
35     "metrics.cc",
36     "metrics.h",
37     "proximity_auth_client.h",
38     "proximity_auth_system.cc",
39     "proximity_auth_system.h",
40     "proximity_monitor.h",
41     "proximity_monitor_impl.cc",
42     "proximity_monitor_impl.h",
43     "proximity_monitor_observer.h",
44     "remote_device.cc",
45     "remote_device.h",
46     "remote_status_update.cc",
47     "remote_status_update.h",
48     "screenlock_bridge.cc",
49     "screenlock_bridge.h",
50     "screenlock_state.h",
51     "secure_context.h",
52     "switches.cc",
53     "switches.h",
54     "throttled_bluetooth_connection_finder.cc",
55     "throttled_bluetooth_connection_finder.h",
56     "unlock_manager.cc",
57     "unlock_manager.h",
58     "wire_message.cc",
59     "wire_message.h",
60   ]
62   deps = [
63     "cryptauth/proto",
64     "logging",
65     "//base",
66     "//device/bluetooth",
67     "//net",
68   ]
71 source_set("test_support") {
72   testonly = true
74   sources = [
75     "device_to_device_responder_operations.cc",
76     "device_to_device_responder_operations.h",
77     "mock_proximity_auth_client.cc",
78     "mock_proximity_auth_client.h",
79   ]
81   deps = [
82     "cryptauth:test_support",
83     "//base",
84     "//testing/gmock",
85   ]
88 source_set("unit_tests") {
89   testonly = true
90   sources = [
91     "bluetooth_connection_finder_unittest.cc",
92     "bluetooth_connection_unittest.cc",
93     "bluetooth_throttler_impl_unittest.cc",
94     "client_impl_unittest.cc",
95     "connection_unittest.cc",
96     "device_to_device_authenticator_unittest.cc",
97     "device_to_device_operations_unittest.cc",
98     "device_to_device_secure_context_unittest.cc",
99     "proximity_auth_system_unittest.cc",
100     "proximity_monitor_impl_unittest.cc",
101     "remote_status_update_unittest.cc",
102     "throttled_bluetooth_connection_finder_unittest.cc",
103     "unlock_manager_unittest.cc",
104     "wire_message_unittest.cc",
105   ]
107   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
109   deps = [
110     ":proximity_auth",
111     ":test_support",
112     "ble:unit_tests",
113     "cryptauth:test_support",
114     "cryptauth:unit_tests",
115     "logging:unit_tests",
116     "//base/test:test_support",
117     "//device/bluetooth:mocks",
118     "//testing/gmock",
119     "//testing/gtest",
120   ]
123 # Note: This is a convenience target for ease of rapid iteration during
124 # development. It is not executed on any try or build bots.
125 test("proximity_auth_unittests") {
126   sources = [
127     "run_all_unittests.cc",
128   ]
129   deps = [
130     ":unit_tests",
131   ]