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 |
11 sources = | 7 source_set("protocol") { |
12 rebase_path(gypi_values.remoting_protocol_sources, ".", "//remoting") | 8 sources = rebase_path(remoting_srcs_gypi_values.remoting_protocol_sources, |
| 9 ".", |
| 10 "//remoting") |
13 | 11 |
14 configs += [ | 12 configs += [ |
15 "//build/config/compiler:no_size_t_to_int_warning", | 13 "//build/config/compiler:no_size_t_to_int_warning", |
16 "//build/config/compiler:wexit_time_destructors", | 14 "//build/config/compiler:wexit_time_destructors", |
17 ] | 15 ] |
18 | 16 |
19 public_deps = [ | 17 public_deps = [ |
| 18 "//remoting/proto", |
20 "//third_party/libjingle", | 19 "//third_party/libjingle", |
21 ] | 20 ] |
22 deps = [ | 21 deps = [ |
23 "//base", | 22 "//base", |
24 "//crypto", | 23 "//crypto", |
25 "//jingle:jingle_glue", | 24 "//jingle:jingle_glue", |
26 "//jingle:notifier", | 25 "//jingle:notifier", |
27 "//net", | 26 "//net", |
28 "//remoting/base", | 27 "//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 "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 |