OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//remoting/remoting_version.gni") | 7 import("//remoting/remoting_version.gni") |
8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
9 | 9 |
10 enable_remoting_host = is_win || is_mac || is_chromeos || use_x11 | 10 enable_remoting_host = is_win || is_mac || is_chromeos || use_x11 |
11 | 11 |
12 # Various remoting targets need this version definition. | 12 # Various remoting targets need this version definition. |
13 config("version") { | 13 config("version") { |
14 defines = [ "VERSION=$version_full" ] | 14 defines = [ "VERSION=$version_full" ] |
15 } | 15 } |
16 | 16 |
17 # GYP version: remoting/remoting_test.gypi:remoting_test_common | 17 # GYP version: remoting/remoting_test.gypi:remoting_test_common |
18 source_set("test_support") { | 18 source_set("test_support") { |
19 testonly = true | 19 testonly = true |
20 | 20 |
21 sources = [ | 21 sources = [ |
22 # Files from remoting_test_common not in separate test_support targets. | 22 # Files from remoting_test_common not in separate test_support targets. |
23 "signaling/fake_signal_strategy.cc", | 23 "signaling/fake_signal_strategy.cc", |
24 "signaling/fake_signal_strategy.h", | 24 "signaling/fake_signal_strategy.h", |
25 "signaling/mock_signal_strategy.cc", | 25 "signaling/mock_signal_strategy.cc", |
26 "signaling/mock_signal_strategy.h", | 26 "signaling/mock_signal_strategy.h", |
27 "test/access_token_fetcher.cc", | 27 "test/access_token_fetcher.cc", |
| 28 "test/access_token_fetcher.h", |
28 "test/app_remoting_test_driver_environment.cc", | 29 "test/app_remoting_test_driver_environment.cc", |
| 30 "test/app_remoting_test_driver_environment.h", |
| 31 "test/chromoting_instance.cc", |
| 32 "test/chromoting_instance.h", |
29 "test/fake_access_token_fetcher.cc", | 33 "test/fake_access_token_fetcher.cc", |
| 34 "test/fake_access_token_fetcher.h", |
30 "test/fake_network_dispatcher.cc", | 35 "test/fake_network_dispatcher.cc", |
31 "test/fake_network_dispatcher.h", | 36 "test/fake_network_dispatcher.h", |
32 "test/fake_network_manager.cc", | 37 "test/fake_network_manager.cc", |
33 "test/fake_network_manager.h", | 38 "test/fake_network_manager.h", |
34 "test/fake_port_allocator.cc", | 39 "test/fake_port_allocator.cc", |
35 "test/fake_port_allocator.h", | 40 "test/fake_port_allocator.h", |
36 "test/fake_remote_host_info_fetcher.cc", | 41 "test/fake_remote_host_info_fetcher.cc", |
| 42 "test/fake_remote_host_info_fetcher.h", |
37 "test/fake_socket_factory.cc", | 43 "test/fake_socket_factory.cc", |
38 "test/fake_socket_factory.h", | 44 "test/fake_socket_factory.h", |
39 "test/leaky_bucket.cc", | 45 "test/leaky_bucket.cc", |
40 "test/leaky_bucket.h", | 46 "test/leaky_bucket.h", |
41 "test/mock_access_token_fetcher.cc", | 47 "test/mock_access_token_fetcher.cc", |
| 48 "test/mock_access_token_fetcher.h", |
42 "test/refresh_token_store.cc", | 49 "test/refresh_token_store.cc", |
| 50 "test/refresh_token_store.h", |
| 51 "test/remote_connection_observer.h", |
43 "test/remote_host_info.cc", | 52 "test/remote_host_info.cc", |
| 53 "test/remote_host_info.h", |
44 "test/remote_host_info_fetcher.cc", | 54 "test/remote_host_info_fetcher.cc", |
| 55 "test/remote_host_info_fetcher.h", |
| 56 "test/video_renderer.cc", |
| 57 "test/video_renderer.h", |
45 ] | 58 ] |
46 | 59 |
47 deps = [ | 60 deps = [ |
48 "//base", | 61 "//base", |
49 "//components/policy:test_support", | 62 "//components/policy:test_support", |
50 "//net", | 63 "//net", |
51 "//remoting/base", | 64 "//remoting/base", |
52 "//remoting/client", | 65 "//remoting/client", |
53 "//remoting/codec", | 66 "//remoting/codec", |
54 "//remoting/protocol:test_support", | 67 "//remoting/protocol:test_support", |
(...skipping 13 matching lines...) Expand all Loading... |
68 if (!is_win && !is_mac) { | 81 if (!is_win && !is_mac) { |
69 test("remoting_unittests") { | 82 test("remoting_unittests") { |
70 # Sources not included in one of the more specific unit_tests deps. | 83 # Sources not included in one of the more specific unit_tests deps. |
71 sources = [ | 84 sources = [ |
72 "signaling/iq_sender_unittest.cc", | 85 "signaling/iq_sender_unittest.cc", |
73 "signaling/log_to_server_unittest.cc", | 86 "signaling/log_to_server_unittest.cc", |
74 "signaling/server_log_entry_unittest.cc", | 87 "signaling/server_log_entry_unittest.cc", |
75 "signaling/server_log_entry_unittest.h", | 88 "signaling/server_log_entry_unittest.h", |
76 "test/access_token_fetcher_unittest.cc", | 89 "test/access_token_fetcher_unittest.cc", |
77 "test/app_remoting_test_driver_environment_unittest.cc", | 90 "test/app_remoting_test_driver_environment_unittest.cc", |
| 91 "test/chromoting_instance_unittest.cc", |
78 "test/remote_host_info_fetcher_unittest.cc", | 92 "test/remote_host_info_fetcher_unittest.cc", |
79 ] | 93 ] |
80 | 94 |
81 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 95 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
82 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 96 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
83 | 97 |
84 deps = [ | 98 deps = [ |
85 ":test_support", | 99 ":test_support", |
86 "//base/allocator", | 100 "//base/allocator", |
87 "//google_apis", | 101 "//google_apis", |
88 "//remoting/base:unit_tests", | 102 "//remoting/base:unit_tests", |
89 "//remoting/client:unit_tests", | 103 "//remoting/client:unit_tests", |
| 104 "//remoting/protocol:test_support", |
90 "//remoting/protocol:unit_tests", | 105 "//remoting/protocol:unit_tests", |
91 "//testing/gmock", | 106 "//testing/gmock", |
92 "//testing/gtest", | 107 "//testing/gtest", |
93 "//third_party/webrtc", | 108 "//third_party/webrtc", |
94 ] | 109 ] |
95 | 110 |
96 if (is_android) { | 111 if (is_android) { |
97 deps += [ "//testing/android:native_test_native_code" ] | 112 deps += [ "//testing/android:native_test_native_code" ] |
98 } else { | 113 } else { |
99 deps += [ "//remoting/client/plugin" ] | 114 deps += [ "//remoting/client/plugin" ] |
(...skipping 10 matching lines...) Expand all Loading... |
110 deps += [ | 125 deps += [ |
111 "//third_party/libjingle:libjingle_webrtc", | 126 "//third_party/libjingle:libjingle_webrtc", |
112 "//third_party/libjingle:libpeerconnection", | 127 "//third_party/libjingle:libpeerconnection", |
113 ] | 128 ] |
114 } | 129 } |
115 } | 130 } |
116 } else { | 131 } else { |
117 group("remoting_unittests") { | 132 group("remoting_unittests") { |
118 } | 133 } |
119 } | 134 } |
OLD | NEW |