Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / proximity_auth / ble / BUILD.gn
blobd8737eb3a936b43bde0e2bdcaf49d007c80971ea
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("ble") {
8   sources = [
9     "bluetooth_low_energy_characteristics_finder.cc",
10     "bluetooth_low_energy_characteristics_finder.h",
11     "bluetooth_low_energy_connection.cc",
12     "bluetooth_low_energy_connection.h",
13     "bluetooth_low_energy_connection_finder.cc",
14     "bluetooth_low_energy_connection_finder.h",
15     "bluetooth_low_energy_device_whitelist.cc",
16     "bluetooth_low_energy_device_whitelist.h",
17     "fake_wire_message.cc",
18     "fake_wire_message.h",
19     "pref_names.cc",
20     "pref_names.h",
21     "proximity_auth_ble_system.cc",
22     "proximity_auth_ble_system.h",
23     "remote_attribute.h",
24   ]
26   deps = [
27     "//base",
28     "//components/proximity_auth",
29     "//device/bluetooth",
30     "//net",
31   ]
33   public_deps = [
34     "//components/proximity_auth/cryptauth/proto",
35   ]
38 source_set("unit_tests") {
39   testonly = true
40   sources = [
41     "bluetooth_low_energy_characteristics_finder_unittest.cc",
42     "bluetooth_low_energy_connection_finder_unittest.cc",
43     "bluetooth_low_energy_connection_unittest.cc",
44     "bluetooth_low_energy_device_whitelist_unittest.cc",
45     "proximity_auth_ble_system_unittest.cc",
46   ]
48   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
50   deps = [
51     ":ble",
52     "//components/proximity_auth",
53     "//base/test:test_support",
54     "//device/bluetooth:mocks",
55     "//testing/gmock",
56     "//testing/gtest",
57   ]
59   public_deps = [
60     "//components/proximity_auth/cryptauth/proto",
61   ]