blob: 080f2e00b6614934304cd025830858b7ae45982e [file] [log] [blame]
brettw31f4de692015-03-04 17:24:451# 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.
4
Dirk Prankeccc0c362017-09-28 22:15:115import("//components/nacl/features.gni")
nicholss546e9c22016-09-06 23:28:396import("//remoting/build/config/remoting_build.gni")
yuweihe8f2d5182016-03-17 01:46:487
garykac3eddb5b2015-04-17 23:16:388group("remoting_all") {
9 testonly = true
10
11 deps = [
brettw083632b2016-08-25 20:24:4612 ":remoting_unittests",
sergeyu68b36d22015-09-18 03:17:1313 "//remoting/test:chromoting_test_driver",
brettwd349ea42016-05-12 19:45:5814 "//remoting/webapp:browser_test_resources",
15 "//remoting/webapp:unit_tests",
garykac3eddb5b2015-04-17 23:16:3816 ]
17
nicholsse6fb2622016-06-15 18:11:0618 if ((is_linux && !is_chromeos) || is_win || is_mac) {
garykacc9f08362015-04-25 04:53:4219 deps += [ "//remoting/webapp" ]
garykacaa86d5f2015-04-22 20:37:1020 }
21
garykac3eddb5b2015-04-17 23:16:3822 if (is_win) {
23 deps += [
zijiehe0359bb22016-04-01 16:46:3524 "//remoting:remoting_breakpad_tester",
nicholsse3320ae2016-09-16 20:12:5925 "//remoting/host/win:all",
garykac3eddb5b2015-04-17 23:16:3826 ]
zijiehe31adf402016-04-19 22:12:2727
28 if (is_chrome_branded) {
29 deps += [ "//remoting/host:remoting_host_installation" ]
30 }
garykac3eddb5b2015-04-17 23:16:3831 }
32
agrieve50ad1bb82016-01-15 20:39:1933 if (is_android) {
garykac3eddb5b2015-04-17 23:16:3834 deps += [
pkotwicz713dadb2015-12-09 01:51:1935 "//remoting/android:remoting_apk",
36 "//remoting/android:remoting_test_apk",
garykac3eddb5b2015-04-17 23:16:3837 ]
38 }
39
nicholss1ac03b1c2017-04-12 23:21:0940 if (is_ios) {
Yuwei Huangb89470b02018-02-17 00:14:4641 deps += [
42 "//remoting/ios:all",
43 "//remoting/ios:ios_remoting_unittests",
44 ]
nicholss1ac03b1c2017-04-12 23:21:0945 }
46
garykac3eddb5b2015-04-17 23:16:3847 if (enable_remoting_host) {
48 deps += [
49 "//remoting:remoting_perftests",
50 "//remoting/host",
garykac3eddb5b2015-04-17 23:16:3851 ]
sergeyu1212c7b2015-11-09 21:29:4552
lambroslambrou51e19b92016-04-13 21:30:4153 if (!is_chromeos && !is_android) {
sergeyu1212c7b2015-11-09 21:29:4554 deps += [
sergeyu4d9a0b02016-06-01 13:00:4055 "//remoting/host:remoting_native_messaging_manifests",
sergeyu1212c7b2015-11-09 21:29:4556 "//remoting/host:remoting_start_host",
57 "//remoting/host/it2me:remote_assistance_host",
58 ]
joedowf9f04232016-08-26 22:39:3559
60 if (is_win) {
61 deps += [ "//remoting/host/it2me:remote_assistance_host_uiaccess" ]
62 }
sergeyu1212c7b2015-11-09 21:29:4563 }
sergeyu4d9a0b02016-06-01 13:00:4064
nicholsse3320ae2016-09-16 20:12:5965 if (is_win || (!is_chromeos && !is_android && !is_ios)) {
sergeyu4d9a0b02016-06-01 13:00:4066 deps += [ "//remoting/host:remoting_native_messaging_host" ]
sergeyu4d9a0b02016-06-01 13:00:4067 }
68
69 if (is_linux && !is_chromeos) {
sergeyu8b76e0e2017-03-25 00:47:0370 deps += [
71 "//remoting/host/linux:remoting_dev_me2me_host",
72 "//remoting/host/linux:remoting_user_session",
73 ]
sergeyu4d9a0b02016-06-01 13:00:4074 }
garykac3eddb5b2015-04-17 23:16:3875 }
76
77 if (enable_me2me_host) {
dprankef93ee202015-11-05 02:04:1678 deps += [ "//remoting/host:remoting_me2me_host" ]
79 if (is_chrome_branded) {
80 deps += [ "//remoting/host:remoting_me2me_host_archive" ]
81 }
garykac3eddb5b2015-04-17 23:16:3882 }
83
mcgrathr0c27b8c2016-01-20 19:51:1184 if (enable_nacl) {
sergeyuf6cd4ae22015-08-20 22:59:5585 deps += [ "//remoting/tools/javascript_key_tester" ]
garykac3eddb5b2015-04-17 23:16:3886 }
87}
88
zijiehe0667b032016-02-21 07:46:5889if (is_win) {
zijiehe0667b032016-02-21 07:46:5890 executable("remoting_breakpad_tester") {
91 deps = [
92 "//base",
brucedawsonf9f7d6292016-04-27 19:11:0793 "//build/win:default_exe_manifest",
zijiehe0667b032016-02-21 07:46:5894 "//remoting/host",
95 ]
96
nicholsse3320ae2016-09-16 20:12:5997 libs = []
98
zijiehe0359bb22016-04-01 16:46:3599 configs += [ "//build/config/compiler:wexit_time_destructors" ]
100
zijiehe0667b032016-02-21 07:46:58101 sources = [
102 "tools/breakpad_tester_win.cc",
103 ]
nicholsse3320ae2016-09-16 20:12:59104
105 if (is_win) {
106 libs += [
107 "rpcrt4.lib",
108 "wtsapi32.lib",
109 ]
110 }
zijiehe0667b032016-02-21 07:46:58111 }
112}
113
brettw3871f522016-07-14 22:08:34114group("test_support") {
brettw31f4de692015-03-04 17:24:45115 testonly = true
116
brettw31f4de692015-03-04 17:24:45117 deps = [
118 "//base",
brettw31f4de692015-03-04 17:24:45119 "//net",
nicholssf620a47c2017-02-02 23:39:08120 "//remoting/base:test_support",
brettw31f4de692015-03-04 17:24:45121 "//remoting/client",
sergeyu5342d96f2017-01-23 20:18:52122 "//remoting/codec:decoder",
123 "//remoting/codec:encoder",
brettw31f4de692015-03-04 17:24:45124 "//remoting/protocol:test_support",
125 "//remoting/resources",
sergeyu15945fd2015-07-16 21:05:59126 "//remoting/signaling:test_support",
127 "//remoting/test:test_support",
brettw31f4de692015-03-04 17:24:45128 "//testing/gmock",
129 "//testing/gtest",
130 ]
131
brettw3865a712016-12-10 05:59:08132 if (!is_ios) {
brettw083632b2016-08-25 20:24:46133 deps += [ "//components/policy/core/browser:test_support" ]
tmoniuszko17efc232015-04-01 10:16:28134 }
135
brettw31f4de692015-03-04 17:24:45136 if (enable_remoting_host) {
137 deps += [ "//remoting/host:test_support" ]
138 }
139}
140
nicholsse6fb2622016-06-15 18:11:06141test("remoting_unittests") {
142 defines = []
143 libs = []
zijiehe0359bb22016-04-01 16:46:35144
nicholsse6fb2622016-06-15 18:11:06145 configs += [
nicholss546e9c22016-09-06 23:28:39146 "//remoting/build/config:version",
brettwfc2f1362015-04-17 19:00:02147
nicholsse6fb2622016-06-15 18:11:06148 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
149 "//build/config/compiler:no_size_t_to_int_warning",
150 ]
151
nicholsse6fb2622016-06-15 18:11:06152 deps = [
153 ":test_support",
154 "//base",
nicholss1b5df0c2016-10-25 16:04:49155 "//base/test:test_support",
nicholsse6fb2622016-06-15 18:11:06156 "//google_apis",
157 "//remoting/base:unit_tests",
158 "//remoting/client:unit_tests",
Scott Nicholsd2375a32017-08-23 22:47:14159 "//remoting/client/audio:unit_tests",
nicholss7666a2892017-05-24 15:48:02160 "//remoting/client/input:unit_tests",
yuweih631efbaf72017-05-16 02:20:03161 "//remoting/client/ui:unit_tests",
nicholsse6fb2622016-06-15 18:11:06162 "//remoting/protocol:unit_tests",
163 "//remoting/signaling:unit_tests",
164 "//remoting/test:unit_tests",
165 "//testing/gmock",
166 "//testing/gtest",
nicholsse6fb2622016-06-15 18:11:06167 ]
168
169 if (enable_remoting_host) {
170 deps += [
171 "//remoting/codec:unit_tests",
172 "//remoting/host:unit_tests",
173 "//ui/gfx",
174 ]
175 }
176
Patrik Höglundd98b020f2018-05-07 12:17:44177 deps += [ "//third_party/webrtc_overrides:init_webrtc" ]
nicholsse6fb2622016-06-15 18:11:06178
179 if (is_android) {
180 deps += [ "//net/android:net_java" ]
nicholssa6be869a2017-04-05 18:39:15181
182 libs += [ "android" ]
nicholsse6fb2622016-06-15 18:11:06183 }
184
185 if (is_win) {
186 defines += [ "_ALT_NO_EXCEPTIONS" ]
187
188 libs += [
joedow7cc2c862016-09-13 16:05:57189 "comctl32.lib",
nicholsse6fb2622016-06-15 18:11:06190 "rpcrt4.lib",
191 "wtsapi32.lib",
192 ]
193 }
James Hawkins477e8db2018-08-01 20:51:06194
195 if (!is_chromeos) {
196 deps += [
197 "//remoting/client/display:unit_tests",
198 ]
199 }
nicholsse6fb2622016-06-15 18:11:06200}
201
202if (enable_remoting_host) {
203 test("remoting_perftests") {
nicholsse3320ae2016-09-16 20:12:59204 defines = []
205 libs = []
206
nicholsse6fb2622016-06-15 18:11:06207 sources = [
208 "test/codec_perftest.cc",
209 "test/protocol_perftest.cc",
brettwfc2f1362015-04-17 19:00:02210 ]
brettw31f4de692015-03-04 17:24:45211
nicholss546e9c22016-09-06 23:28:39212 configs += [ "//remoting/build/config:version" ]
dprankef497c7962015-07-31 19:46:23213
brettw31f4de692015-03-04 17:24:45214 deps = [
215 ":test_support",
zijiehe0359bb22016-04-01 16:46:35216 "//base",
nicholsse6fb2622016-06-15 18:11:06217 "//base/test:run_all_unittests",
218 "//base/test:test_support",
219 "//net:test_support",
220 "//remoting/base",
brettw31f4de692015-03-04 17:24:45221 "//testing/gtest",
nicholsse6fb2622016-06-15 18:11:06222 "//third_party/webrtc/modules/desktop_capture",
kjellandere3cbd6d2017-02-28 06:49:46223 "//third_party/webrtc_overrides",
brettw31f4de692015-03-04 17:24:45224 ]
225
Patrik Höglundd98b020f2018-05-07 12:17:44226 deps += [ "//third_party/webrtc_overrides:init_webrtc" ]
nicholsse3320ae2016-09-16 20:12:59227
228 if (is_win) {
229 defines += [ "_ALT_NO_EXCEPTIONS" ]
230
231 libs += [
232 "rpcrt4.lib",
233 "wtsapi32.lib",
234 ]
235 }
brettw31f4de692015-03-04 17:24:45236 }
237}