1# Copyright 2015 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
5static_library("signaling") {
6  sources = [
7    "delegating_signal_strategy.cc",
8    "delegating_signal_strategy.h",
9    "ftl_client_uuid_device_id_provider.cc",
10    "ftl_client_uuid_device_id_provider.h",
11    "ftl_device_id_provider.h",
12    "ftl_host_device_id_provider.cc",
13    "ftl_host_device_id_provider.h",
14    "ftl_message_reception_channel.cc",
15    "ftl_message_reception_channel.h",
16    "ftl_messaging_client.cc",
17    "ftl_messaging_client.h",
18    "ftl_registration_manager.cc",
19    "ftl_registration_manager.h",
20    "ftl_services_context.cc",
21    "ftl_services_context.h",
22    "ftl_signal_strategy.cc",
23    "ftl_signal_strategy.h",
24    "iq_sender.cc",
25    "iq_sender.h",
26    "message_reception_channel.h",
27    "message_tracker.cc",
28    "message_tracker.h",
29    "messaging_client.h",
30    "registration_manager.h",
31    "remoting_log_to_server.cc",
32    "remoting_log_to_server.h",
33    "server_log_entry.cc",
34    "server_log_entry.h",
35    "signal_strategy.cc",
36    "signal_strategy.h",
37    "signaling_address.cc",
38    "signaling_address.h",
39    "signaling_id_util.cc",
40    "signaling_id_util.h",
41    "signaling_tracker.h",
42    "xmpp_log_to_server.cc",
43    "xmpp_log_to_server.h",
44  ]
45
46  configs += [
47    "//build/config/compiler:no_size_t_to_int_warning",
48    "//build/config/compiler:wexit_time_destructors",
49    "//remoting/build/config:version",
50  ]
51
52  public_deps = [
53    "//remoting/proto",
54    "//remoting/proto/remoting/v1:telemetry_messages",
55    "//third_party/libjingle_xmpp",
56    "//third_party/webrtc_overrides:webrtc_component",
57  ]
58
59  deps = [
60    "//base",
61    "//crypto",
62    "//google_apis",
63    "//jingle:webrtc_glue",
64    "//net",
65    "//remoting/base",
66    "//remoting/proto/ftl/v1:ftl_messages",
67  ]
68}
69
70static_library("test_support") {
71  testonly = true
72
73  sources = [
74    "fake_signal_strategy.cc",
75    "fake_signal_strategy.h",
76    "mock_signal_strategy.cc",
77    "mock_signal_strategy.h",
78    "mock_signaling_tracker.cc",
79    "mock_signaling_tracker.h",
80  ]
81
82  public_deps = [
83    ":signaling",
84    "//testing/gmock",
85  ]
86}
87
88source_set("unit_tests") {
89  testonly = true
90
91  sources = [
92    "ftl_message_reception_channel_unittest.cc",
93    "ftl_messaging_client_unittest.cc",
94    "ftl_registration_manager_unittest.cc",
95    "ftl_signal_strategy_unittest.cc",
96    "iq_sender_unittest.cc",
97    "message_tracker_unittest.cc",
98    "remoting_log_to_server_unittest.cc",
99    "server_log_entry_unittest.cc",
100    "server_log_entry_unittest.h",
101    "signaling_address_unittest.cc",
102    "signaling_id_util_unittest.cc",
103    "xmpp_log_to_server_unittest.cc",
104  ]
105
106  deps = [
107    ":test_support",
108    "//net:test_support",
109    "//testing/gmock",
110    "//testing/gtest",
111  ]
112}
113