| 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("//remoting/remoting_enable.gni") | 8 import("//remoting/remoting_enable.gni") |
| 9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 #"//remoting/host:remoting_me2me_host_archive", | 64 #"//remoting/host:remoting_me2me_host_archive", |
| 65 ] | 65 ] |
| 66 } | 66 } |
| 67 | 67 |
| 68 # TODO(GYP) Depends on crbug.com/471924 being fixed for PNaCl. | 68 # TODO(GYP) Depends on crbug.com/471924 being fixed for PNaCl. |
| 69 if (enable_nacl) { | 69 if (enable_nacl) { |
| 70 deps += [ "//remoting:remoting_key_tester" ] | 70 deps += [ "//remoting:remoting_key_tester" ] |
| 71 } | 71 } |
| 72 } | 72 } |
| 73 | 73 |
| 74 # GYP version: remoting/remoting_test.gypi:remoting_test_common | 74 # GYP version: remoting/remoting_test.gypi:remoting_test_support |
| 75 source_set("test_support") { | 75 source_set("test_support") { |
| 76 testonly = true | 76 testonly = true |
| 77 | 77 |
| 78 sources = [ | |
| 79 # Files from remoting_test_common not in separate test_support targets. | |
| 80 "signaling/fake_signal_strategy.cc", | |
| 81 "signaling/fake_signal_strategy.h", | |
| 82 "signaling/mock_signal_strategy.cc", | |
| 83 "signaling/mock_signal_strategy.h", | |
| 84 "test/access_token_fetcher.cc", | |
| 85 "test/access_token_fetcher.h", | |
| 86 "test/app_remoting_report_issue_request.cc", | |
| 87 "test/app_remoting_report_issue_request.h", | |
| 88 "test/app_remoting_service_urls.cc", | |
| 89 "test/app_remoting_service_urls.h", | |
| 90 "test/app_remoting_test_driver_environment.cc", | |
| 91 "test/app_remoting_test_driver_environment.h", | |
| 92 "test/app_remoting_test_driver_environment_app_details.cc", | |
| 93 "test/fake_access_token_fetcher.cc", | |
| 94 "test/fake_access_token_fetcher.h", | |
| 95 "test/fake_app_remoting_report_issue_request.cc", | |
| 96 "test/fake_app_remoting_report_issue_request.h", | |
| 97 "test/fake_network_dispatcher.cc", | |
| 98 "test/fake_network_dispatcher.h", | |
| 99 "test/fake_network_manager.cc", | |
| 100 "test/fake_network_manager.h", | |
| 101 "test/fake_port_allocator.cc", | |
| 102 "test/fake_port_allocator.h", | |
| 103 "test/fake_remote_host_info_fetcher.cc", | |
| 104 "test/fake_remote_host_info_fetcher.h", | |
| 105 "test/fake_socket_factory.cc", | |
| 106 "test/fake_socket_factory.h", | |
| 107 "test/leaky_bucket.cc", | |
| 108 "test/leaky_bucket.h", | |
| 109 "test/mock_access_token_fetcher.cc", | |
| 110 "test/mock_access_token_fetcher.h", | |
| 111 "test/refresh_token_store.cc", | |
| 112 "test/refresh_token_store.h", | |
| 113 "test/remote_application_details.h", | |
| 114 "test/remote_connection_observer.h", | |
| 115 "test/remote_host_info.cc", | |
| 116 "test/remote_host_info.h", | |
| 117 "test/remote_host_info_fetcher.cc", | |
| 118 "test/remote_host_info_fetcher.h", | |
| 119 "test/test_chromoting_client.cc", | |
| 120 "test/test_chromoting_client.h", | |
| 121 "test/test_video_renderer.cc", | |
| 122 "test/test_video_renderer.h", | |
| 123 ] | |
| 124 | |
| 125 deps = [ | 78 deps = [ |
| 126 "//base", | 79 "//base", |
| 127 "//net", | 80 "//net", |
| 128 "//remoting/base", | 81 "//remoting/base", |
| 129 "//remoting/client", | 82 "//remoting/client", |
| 130 "//remoting/codec", | 83 "//remoting/codec", |
| 131 "//remoting/protocol:test_support", | 84 "//remoting/protocol:test_support", |
| 132 "//remoting/resources", | 85 "//remoting/resources", |
| 86 "//remoting/signaling:test_support", |
| 87 "//remoting/test:test_support", |
| 133 "//testing/gmock", | 88 "//testing/gmock", |
| 134 "//testing/gtest", | 89 "//testing/gtest", |
| 135 ] | 90 ] |
| 136 | 91 |
| 137 if (enable_configuration_policy) { | 92 if (enable_configuration_policy) { |
| 138 deps += [ "//components/policy:test_support" ] | 93 deps += [ "//components/policy:test_support" ] |
| 139 } | 94 } |
| 140 | 95 |
| 141 if (enable_remoting_host) { | 96 if (enable_remoting_host) { |
| 142 deps += [ "//remoting/host:test_support" ] | 97 deps += [ "//remoting/host:test_support" ] |
| 143 } | 98 } |
| 144 } | 99 } |
| 145 | 100 |
| 146 # TODO(GYP) remoting_unittests on Mac. Needs to be tested. | 101 # TODO(GYP) remoting_unittests on Mac. Needs to be tested. |
| 147 if (!is_mac) { | 102 if (!is_mac) { |
| 148 test("remoting_unittests") { | 103 test("remoting_unittests") { |
| 149 # Sources not included in one of the more specific unit_tests deps. | |
| 150 sources = [ | |
| 151 "signaling/iq_sender_unittest.cc", | |
| 152 "signaling/log_to_server_unittest.cc", | |
| 153 "signaling/server_log_entry_unittest.cc", | |
| 154 "signaling/server_log_entry_unittest.h", | |
| 155 "test/access_token_fetcher_unittest.cc", | |
| 156 "test/app_remoting_report_issue_request_unittest.cc", | |
| 157 "test/app_remoting_test_driver_environment_unittest.cc", | |
| 158 "test/remote_host_info_fetcher_unittest.cc", | |
| 159 "test/test_chromoting_client_unittest.cc", | |
| 160 "test/test_video_renderer_unittest.cc", | |
| 161 ] | |
| 162 | |
| 163 configs += [ | 104 configs += [ |
| 164 ":version", | 105 ":version", |
| 165 | 106 |
| 166 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 107 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 167 "//build/config/compiler:no_size_t_to_int_warning", | 108 "//build/config/compiler:no_size_t_to_int_warning", |
| 168 ] | 109 ] |
| 169 | 110 |
| 170 deps = [ | 111 deps = [ |
| 171 ":test_support", | 112 ":test_support", |
| 172 "//base/allocator", | 113 "//base/allocator", |
| 173 "//google_apis", | 114 "//google_apis", |
| 174 "//remoting/base:unit_tests", | 115 "//remoting/base:unit_tests", |
| 175 "//remoting/client:unit_tests", | 116 "//remoting/client:unit_tests", |
| 176 "//remoting/protocol:test_support", | |
| 177 "//remoting/protocol:unit_tests", | 117 "//remoting/protocol:unit_tests", |
| 118 "//remoting/signaling:unit_tests", |
| 119 "//remoting/test:unit_tests", |
| 178 "//testing/gmock", | 120 "//testing/gmock", |
| 179 "//testing/gtest", | 121 "//testing/gtest", |
| 180 "//third_party/webrtc", | 122 "//third_party/webrtc", |
| 181 ] | 123 ] |
| 182 | 124 |
| 183 if (is_android) { | 125 if (is_android) { |
| 184 deps += [ "//testing/android/native_test:native_test_native_code" ] | 126 deps += [ "//testing/android/native_test:native_test_native_code" ] |
| 185 } | 127 } |
| 186 | 128 |
| 187 if (enable_remoting_host) { | 129 if (enable_remoting_host) { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 } | 214 } |
| 273 } | 215 } |
| 274 | 216 |
| 275 group("remoting_key_tester_pexe") { | 217 group("remoting_key_tester_pexe") { |
| 276 # TODO(GYP): crbug.com/471924 implement me when we have a pnacl toolchain. | 218 # TODO(GYP): crbug.com/471924 implement me when we have a pnacl toolchain. |
| 277 #sources = [ | 219 #sources = [ |
| 278 # "tools/javascript_key_tester/pnacl/remoting_key_tester.cc", | 220 # "tools/javascript_key_tester/pnacl/remoting_key_tester.cc", |
| 279 #] | 221 #] |
| 280 } | 222 } |
| 281 } | 223 } |
| OLD | NEW |