Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / components / proximity_auth / BUILD.gn
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.
4
5 source_set("proximity_auth") {
6   sources = [
7     "base64url.cc",
8     "base64url.h",
9     "bluetooth_connection.cc",
10     "bluetooth_connection.h",
11     "bluetooth_connection_finder.cc",
12     "bluetooth_connection_finder.h",
13     "bluetooth_util.cc",
14     "bluetooth_util_chromeos.cc",
15     "bluetooth_util.h",
16     "client.cc",
17     "client.h",
18     "client_observer.h",
19     "connection.cc",
20     "connection.h",
21     "connection_finder.h",
22     "connection_observer.h",
23     "proximity_auth_system.cc",
24     "proximity_auth_system.h",
25     "remote_device.h",
26     "remote_status_update.cc",
27     "remote_status_update.h",
28     "secure_context.h",
29     "switches.cc",
30     "switches.h",
31     "wire_message.cc",
32     "wire_message.h",
33   ]
34
35   deps = [
36     "//base",
37     "//device/bluetooth",
38     "//net",
39   ]
40 }
41
42 source_set("unit_tests") {
43   testonly = true
44   sources = [
45     "base64url_unittest.cc",
46     "bluetooth_connection_unittest.cc",
47     "bluetooth_connection_finder_unittest.cc",
48     "client_unittest.cc",
49     "connection_unittest.cc",
50     "proximity_auth_system_unittest.cc",
51     "remote_status_update_unittest.cc",
52     "wire_message_unittest.cc",
53   ]
54
55   deps = [
56     ":proximity_auth",
57     "cryptauth:unit_tests",
58     "//base/test:test_support",
59     "//device/bluetooth:mocks",
60     "//testing/gmock",
61     "//testing/gtest",
62   ]
63 }
64
65 # Note: This is a convenience target for ease of rapid iteration during
66 # development. It is not executed on any try or build bots.
67 test("proximity_auth_unittests") {
68   sources = [ "run_all_unittests.cc" ]
69   deps = [ ":unit_tests" ]
70 }