summaryrefslogtreecommitdiff
path: root/chromium/components/cryptauth/ble/BUILD.gn
blob: 3b241a8b81106479ac20151eb63678197d58bd9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//testing/test.gni")

static_library("ble") {
  sources = [
    "bluetooth_low_energy_characteristics_finder.cc",
    "bluetooth_low_energy_characteristics_finder.h",
    "bluetooth_low_energy_weave_client_connection.cc",
    "bluetooth_low_energy_weave_client_connection.h",
    "bluetooth_low_energy_weave_defines.h",
    "bluetooth_low_energy_weave_packet_generator.cc",
    "bluetooth_low_energy_weave_packet_generator.h",
    "bluetooth_low_energy_weave_packet_receiver.cc",
    "bluetooth_low_energy_weave_packet_receiver.h",
    "fake_wire_message.cc",
    "fake_wire_message.h",
    "remote_attribute.h",
  ]

  deps = [
    "//base",

    # TODO (hansberry): This component has a circular dependency
    # with the root cryptauth target. It is whitelisted in that target for
    # includes.
    "//components/prefs",
    "//components/proximity_auth/logging",
    "//device/bluetooth",
    "//net",
  ]

  public_deps = [
    "//components/cryptauth/proto",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "bluetooth_low_energy_characteristics_finder_unittest.cc",
    "bluetooth_low_energy_weave_client_connection_unittest.cc",
    "bluetooth_low_energy_weave_packet_generator_unittest.cc",
    "bluetooth_low_energy_weave_packet_receiver_unittest.cc",
  ]

  configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]

  deps = [
    ":ble",
    "//base/test:test_support",
    "//components/cryptauth",
    "//components/cryptauth:test_support",
    "//components/prefs:test_support",
    "//components/proximity_auth/logging",
    "//device/bluetooth:mocks",
    "//testing/gmock",
    "//testing/gtest",
  ]

  public_deps = [
    "//components/cryptauth/proto",
  ]
}