Don't preload rarely seen large images
[chromium-blink-merge.git] / components / proximity_auth / BUILD.gn
blob3f26253379665905df58a97a896b0dc8cff1d494
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.h",
37     "remote_status_update.cc",
38     "remote_status_update.h",
39     "screenlock_bridge.cc",
40     "screenlock_bridge.h",
41     "screenlock_state.h",
42     "secure_context.h",
43     "switches.cc",
44     "switches.h",
45     "throttled_bluetooth_connection_finder.cc",
46     "throttled_bluetooth_connection_finder.h",
47     "wire_message.cc",
48     "wire_message.h",
49   ]
51   deps = [
52     "logging",
53     "//base",
54     "//device/bluetooth",
55     "//net",
56   ]
59 source_set("unit_tests") {
60   testonly = true
61   sources = [
62     "bluetooth_connection_finder_unittest.cc",
63     "bluetooth_connection_unittest.cc",
64     "bluetooth_throttler_impl_unittest.cc",
65     "client_impl_unittest.cc",
66     "connection_unittest.cc",
67     "proximity_auth_system_unittest.cc",
68     "proximity_monitor_impl_unittest.cc",
69     "remote_status_update_unittest.cc",
70     "throttled_bluetooth_connection_finder_unittest.cc",
71     "wire_message_unittest.cc",
72   ]
74   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
76   deps = [
77     ":proximity_auth",
78     "ble:unit_tests",
79     "cryptauth:unit_tests",
80     "logging:unit_tests",
81     "//base/test:test_support",
82     "//device/bluetooth:mocks",
83     "//testing/gmock",
84     "//testing/gtest",
85   ]
88 # Note: This is a convenience target for ease of rapid iteration during
89 # development. It is not executed on any try or build bots.
90 test("proximity_auth_unittests") {
91   sources = [
92     "run_all_unittests.cc",
93   ]
94   deps = [
95     ":unit_tests",
96   ]