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