OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//remoting/remoting_srcs.gni") | 5 static_library("protocol") { |
| 6 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 7 [ rebase_path("../remoting_srcs.gypi") ], |
| 8 "scope", |
| 9 [ "../remoting_srcs.gypi" ]) |
6 | 10 |
7 source_set("protocol") { | 11 sources = |
8 sources = rebase_path(remoting_srcs_gypi_values.remoting_protocol_sources, | 12 rebase_path(gypi_values.remoting_protocol_sources, ".", "//remoting") |
9 ".", | |
10 "//remoting") | |
11 | 13 |
12 configs += [ | 14 configs += [ |
13 "//build/config/compiler:no_size_t_to_int_warning", | 15 "//build/config/compiler:no_size_t_to_int_warning", |
14 "//build/config/compiler:wexit_time_destructors", | 16 "//build/config/compiler:wexit_time_destructors", |
15 ] | 17 ] |
16 | 18 |
17 public_deps = [ | 19 public_deps = [ |
18 "//remoting/proto", | |
19 "//third_party/libjingle", | 20 "//third_party/libjingle", |
20 ] | 21 ] |
21 deps = [ | 22 deps = [ |
22 "//base", | 23 "//base", |
23 "//crypto", | 24 "//crypto", |
24 "//jingle:jingle_glue", | 25 "//jingle:jingle_glue", |
25 "//jingle:notifier", | 26 "//jingle:notifier", |
26 "//net", | 27 "//net", |
27 "//remoting/base", | 28 "//remoting/base", |
28 "//remoting/codec", | |
29 ] | 29 ] |
30 } | 30 } |
31 | |
32 source_set("test_support") { | |
33 testonly = true | |
34 | |
35 sources = [ | |
36 "fake_authenticator.cc", | |
37 "fake_authenticator.h", | |
38 "fake_datagram_socket.cc", | |
39 "fake_datagram_socket.h", | |
40 "fake_session.cc", | |
41 "fake_session.h", | |
42 "fake_stream_socket.cc", | |
43 "fake_stream_socket.h", | |
44 "protocol_mock_objects.cc", | |
45 "protocol_mock_objects.h", | |
46 ] | |
47 | |
48 public_deps = [ | |
49 ":protocol", | |
50 "//testing/gmock", | |
51 ] | |
52 } | |
53 | |
54 source_set("unit_tests") { | |
55 testonly = true | |
56 | |
57 sources = [ | |
58 "authenticator_test_base.cc", | |
59 "authenticator_test_base.h", | |
60 "channel_multiplexer_unittest.cc", | |
61 "chromium_socket_factory_unittest.cc", | |
62 "client_video_dispatcher_unittest.cc", | |
63 "clipboard_echo_filter_unittest.cc", | |
64 "clipboard_filter_unittest.cc", | |
65 "connection_tester.cc", | |
66 "connection_tester.h", | |
67 "connection_to_client_unittest.cc", | |
68 "content_description_unittest.cc", | |
69 "input_event_tracker_unittest.cc", | |
70 "input_filter_unittest.cc", | |
71 "jingle_messages_unittest.cc", | |
72 "jingle_session_unittest.cc", | |
73 "message_decoder_unittest.cc", | |
74 "message_reader_unittest.cc", | |
75 "monitored_video_stub_unittest.cc", | |
76 "mouse_input_filter_unittest.cc", | |
77 "negotiating_authenticator_unittest.cc", | |
78 "network_settings_unittest.cc", | |
79 "pairing_registry_unittest.cc", | |
80 "ppapi_module_stub.cc", | |
81 "ssl_hmac_channel_authenticator_unittest.cc", | |
82 "third_party_authenticator_unittest.cc", | |
83 "v2_authenticator_unittest.cc", | |
84 ] | |
85 | |
86 deps = [ | |
87 ":test_support", | |
88 "//testing/gmock", | |
89 "//testing/gtest", | |
90 ] | |
91 } | |
OLD | NEW |