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
3 # found in the LICENSE file.
5 import("//build/config/features.gni")
6 import("//build/config/ui.gni")
7 import("//build/util/version.gni")
8 import("//remoting/remoting_version.gni")
9 import("//remoting/remoting_enable.gni")
10 import("//testing/test.gni")
12 # Various remoting targets need this version definition.
14 defines = [ "VERSION=$chrome_version_full" ]
17 group("remoting_all") {
21 #"//remoting:remoting_browser_test_resources",
22 "//remoting:remoting_unittests",
23 "//remoting/test:chromoting_test_driver",
25 #"//remoting:remoting_webapp_unittests",
26 #"//app_remoting_test.gyp:ar_sample_test_driver",
27 "//remoting/webapp:ar_sample_app",
30 # TODO(GYP): add is_mac
31 if ((is_linux && !is_chromeos) || is_win) {
32 deps += [ "//remoting/webapp" ]
37 #"//remoting:remoting_breakpad_tester",
38 #"//remoting:remoting_console",
39 #"//remoting:remoting_desktop",
40 #"//remoting:remoting_host_installation",
46 #"//remoting:remoting_apk",
47 #"//remoting:remoting_test_apk",
48 #"//remoting:remoting_unittests_apk",
52 if (enable_remoting_host) {
54 "//remoting:remoting_perftests",
56 "//remoting/host:remoting_start_host",
57 "//remoting/host/it2me:remote_assistance_host",
59 #"//remoting:remoting_it2me_native_messaging_host",
60 #"//remoting:remoting_native_messaging_manifests",
64 if (enable_me2me_host) {
66 "//remoting/host:remoting_me2me_host",
67 #"//remoting/host:remoting_me2me_host_archive",
72 deps += [ "//remoting/tools/javascript_key_tester" ]
76 # GYP version: remoting/remoting_test.gypi:remoting_test_support
77 source_set("test_support") {
86 "//remoting/protocol:test_support",
87 "//remoting/resources",
88 "//remoting/signaling:test_support",
89 "//remoting/test:test_support",
94 if (enable_configuration_policy) {
95 deps += [ "//components/policy:test_support" ]
98 if (enable_remoting_host) {
99 deps += [ "//remoting/host:test_support" ]
103 # TODO(GYP) remoting_unittests on Mac. Needs to be tested.
105 # TODO(GYP): Delete this after we've converted everything to GN.
106 # The _run targets exist only for compatibility w/ GYP.
107 group("remoting_unittests_run") {
110 ":remoting_unittests",
114 test("remoting_unittests") {
118 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
119 "//build/config/compiler:no_size_t_to_int_warning",
123 "//net/data/ssl/certificates/ok_cert.pem",
124 "//net/data/ssl/certificates/unittest.key.bin",
125 "//net/data/ssl/certificates/unittest.selfsigned.der",
132 "//remoting/base:unit_tests",
133 "//remoting/client:unit_tests",
134 "//remoting/protocol:unit_tests",
135 "//remoting/signaling:unit_tests",
136 "//remoting/test:unit_tests",
139 "//third_party/webrtc",
143 deps += [ "//testing/android/native_test:native_test_native_code" ]
146 if (enable_remoting_host) {
148 "//remoting/codec:unit_tests",
149 "//remoting/host:unit_tests",
156 "//third_party/libjingle:libjingle_webrtc",
157 "//third_party/libjingle:libpeerconnection",
162 if (enable_remoting_host) {
163 test("remoting_perftests") {
165 "codec/codec_test.cc",
166 "codec/codec_test.h",
167 "codec/video_encoder_vpx_perftest.cc",
168 "test/protocol_perftest.cc",
171 configs += [ ":version" ]
176 "//base/test:run_all_unittests",
177 "//base/test:test_support",
178 "//net:test_support",
181 "//third_party/webrtc/modules/desktop_capture",
182 "//third_party/libjingle",
186 deps += [ "//third_party/libjingle:libjingle_webrtc" ]
191 group("remoting_unittests") {