Add testonly=true to components/pairing:unit_tests
[chromium-blink-merge.git] / components / pairing / BUILD.gn
blobd67e43436d0b245b6e21713c1829c4be38f8bf22
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("//third_party/protobuf/proto_library.gni")
7 source_set("pairing") {
8   sources = [
9     "pairing/bluetooth_controller_pairing_controller.cc",
10     "pairing/bluetooth_controller_pairing_controller.h",
11     "pairing/bluetooth_host_pairing_controller.cc",
12     "pairing/bluetooth_host_pairing_controller.h",
13     "pairing/bluetooth_pairing_constants.cc",
14     "pairing/bluetooth_pairing_constants.h",
15     "pairing/controller_pairing_controller.cc",
16     "pairing/controller_pairing_controller.h",
17     "pairing/fake_controller_pairing_controller.cc",
18     "pairing/fake_controller_pairing_controller.h",
19     "pairing/fake_host_pairing_controller.cc",
20     "pairing/fake_host_pairing_controller.h",
21     "pairing/host_pairing_controller.cc",
22     "pairing/host_pairing_controller.h",
23     "pairing/message_buffer.cc",
24     "pairing/message_buffer.h",
25     "pairing/proto_decoder.cc",
26     "pairing/proto_decoder.h",
27   ]
29   deps = [
30     "//base",
31     "//device/bluetooth",
32     "//net",
33   ]
36 source_set("unit_tests") {
37   testonly = true
38   sources = [
39     "message_buffer_unittest.cc",
40   ]
42   deps = [
43     ":pairing",
44     "//testing/gtest",
45   ]
48 proto_library("proto") {
49   sources = [
50     "pairing_api.proto",
51   ]