Add GN isolate support for a bunch of unittests.
[chromium-blink-merge.git] / components / proximity_auth / BUILD.gn
blobd5defb301ebe6e2e356882c63130320cde4748ed
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     "bluetooth_connection.cc",
10     "bluetooth_connection.h",
11     "bluetooth_connection_finder.cc",
12     "bluetooth_connection_finder.h",
13     "bluetooth_throttler.h",
14     "bluetooth_throttler_impl.cc",
15     "bluetooth_throttler_impl.h",
16     "bluetooth_util.cc",
17     "bluetooth_util.h",
18     "bluetooth_util_chromeos.cc",
19     "client.h",
20     "client_impl.cc",
21     "client_impl.h",
22     "client_observer.h",
23     "connection.cc",
24     "connection.h",
25     "connection_finder.h",
26     "connection_observer.h",
27     "metrics.cc",
28     "metrics.h",
29     "proximity_auth_client.h",
30     "proximity_auth_system.cc",
31     "proximity_auth_system.h",
32     "proximity_monitor.h",
33     "proximity_monitor_impl.cc",
34     "proximity_monitor_impl.h",
35     "proximity_monitor_observer.h",
36     "remote_device.cc",
37     "remote_device.h",
38     "remote_status_update.cc",
39     "remote_status_update.h",
40     "screenlock_bridge.cc",
41     "screenlock_bridge.h",
42     "screenlock_state.h",
43     "secure_context.h",
44     "switches.cc",
45     "switches.h",
46     "throttled_bluetooth_connection_finder.cc",
47     "throttled_bluetooth_connection_finder.h",
48     "wire_message.cc",
49     "wire_message.h",
50   ]
52   deps = [
53     "logging",
54     "//base",
55     "//device/bluetooth",
56     "//net",
57   ]
60 source_set("unit_tests") {
61   testonly = true
62   sources = [
63     "bluetooth_connection_finder_unittest.cc",
64     "bluetooth_connection_unittest.cc",
65     "bluetooth_throttler_impl_unittest.cc",
66     "client_impl_unittest.cc",
67     "connection_unittest.cc",
68     "proximity_auth_system_unittest.cc",
69     "proximity_monitor_impl_unittest.cc",
70     "remote_status_update_unittest.cc",
71     "throttled_bluetooth_connection_finder_unittest.cc",
72     "wire_message_unittest.cc",
73   ]
75   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
77   deps = [
78     ":proximity_auth",
79     "ble:unit_tests",
80     "cryptauth:unit_tests",
81     "logging:unit_tests",
82     "//base/test:test_support",
83     "//device/bluetooth:mocks",
84     "//testing/gmock",
85     "//testing/gtest",
86   ]
89 # Note: This is a convenience target for ease of rapid iteration during
90 # development. It is not executed on any try or build bots.
91 test("proximity_auth_unittests") {
92   sources = [
93     "run_all_unittests.cc",
94   ]
95   deps = [
96     ":unit_tests",
97   ]