[go: nahoru, domu]

blob: 7c409a7f2739860e6dc914d95c8d0a0f14e6b545 [file] [log] [blame]
Avi Drissmand6cdf9b2022-09-15 19:52:531# Copyright 2015 The Chromium Authors
brettw31f4de692015-03-04 17:24:452# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
Yuta Hijikata79e6ff52020-11-19 05:12:405import("//build/config/chromeos/ui_mode.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
Nico Weber7da32d52020-01-13 23:31:4211 deps = [ ":remoting_unittests" ]
garykac3eddb5b2015-04-17 23:16:3812
13 if (is_win) {
14 deps += [
nicholsse3320ae2016-09-16 20:12:5915 "//remoting/host/win:all",
Dan McArdle851b5ac832021-08-05 22:43:1916 "//remoting/tools:remoting_breakpad_tester",
garykac3eddb5b2015-04-17 23:16:3817 ]
zijiehe31adf402016-04-19 22:12:2718
19 if (is_chrome_branded) {
20 deps += [ "//remoting/host:remoting_host_installation" ]
21 }
garykac3eddb5b2015-04-17 23:16:3822 }
23
agrieve50ad1bb82016-01-15 20:39:1924 if (is_android) {
garykac3eddb5b2015-04-17 23:16:3825 deps += [
pkotwicz713dadb2015-12-09 01:51:1926 "//remoting/android:remoting_apk",
27 "//remoting/android:remoting_test_apk",
garykac3eddb5b2015-04-17 23:16:3828 ]
29 }
30
nicholss1ac03b1c2017-04-12 23:21:0931 if (is_ios) {
Yuwei Huangb89470b02018-02-17 00:14:4632 deps += [
33 "//remoting/ios:all",
34 "//remoting/ios:ios_remoting_unittests",
35 ]
nicholss1ac03b1c2017-04-12 23:21:0936 }
37
garykac3eddb5b2015-04-17 23:16:3838 if (enable_remoting_host) {
39 deps += [
Dan McArdle851b5ac832021-08-05 22:43:1940 ":remoting_perftests",
garykac3eddb5b2015-04-17 23:16:3841 "//remoting/host",
garykac3eddb5b2015-04-17 23:16:3842 ]
sergeyu1212c7b2015-11-09 21:29:4543
Yuta Hijikata79e6ff52020-11-19 05:12:4044 if (!is_chromeos_ash && !is_android) {
sergeyu1212c7b2015-11-09 21:29:4545 deps += [
sergeyu4d9a0b02016-06-01 13:00:4046 "//remoting/host:remoting_native_messaging_manifests",
sergeyu1212c7b2015-11-09 21:29:4547 "//remoting/host:remoting_start_host",
sergeyu1212c7b2015-11-09 21:29:4548 ]
David Dorwina796ba52021-12-16 18:17:2849 if (!is_ios) {
50 deps += [ "//remoting/host:remoting_native_messaging_host" ]
51 }
joedowf9f04232016-08-26 22:39:3552
David Dorwina796ba52021-12-16 18:17:2853 # it2me.
54 deps += [ "//remoting/host/it2me:remote_assistance_host" ]
joedowf9f04232016-08-26 22:39:3555 if (is_win) {
56 deps += [ "//remoting/host/it2me:remote_assistance_host_uiaccess" ]
57 }
sergeyu1212c7b2015-11-09 21:29:4558 }
sergeyu4d9a0b02016-06-01 13:00:4059
David Dorwin03624dd2022-04-01 19:36:4860 if (is_linux) {
sergeyu8b76e0e2017-03-25 00:47:0361 deps += [
Joe Downing8ff5aa02023-05-17 14:05:2862 "//remoting/host/crash:remoting_crash_uploader",
sergeyu8b76e0e2017-03-25 00:47:0363 "//remoting/host/linux:remoting_dev_me2me_host",
64 "//remoting/host/linux:remoting_user_session",
65 ]
sergeyu4d9a0b02016-06-01 13:00:4066 }
garykac3eddb5b2015-04-17 23:16:3867 }
68
69 if (enable_me2me_host) {
dprankef93ee202015-11-05 02:04:1670 deps += [ "//remoting/host:remoting_me2me_host" ]
71 if (is_chrome_branded) {
72 deps += [ "//remoting/host:remoting_me2me_host_archive" ]
73 }
garykac3eddb5b2015-04-17 23:16:3874 }
garykac3eddb5b2015-04-17 23:16:3875}
76
brettw3871f522016-07-14 22:08:3477group("test_support") {
brettw31f4de692015-03-04 17:24:4578 testonly = true
79
brettw31f4de692015-03-04 17:24:4580 deps = [
81 "//base",
brettw31f4de692015-03-04 17:24:4582 "//net",
nicholssf620a47c2017-02-02 23:39:0883 "//remoting/base:test_support",
brettw31f4de692015-03-04 17:24:4584 "//remoting/client",
sergeyu5342d96f2017-01-23 20:18:5285 "//remoting/codec:decoder",
86 "//remoting/codec:encoder",
brettw31f4de692015-03-04 17:24:4587 "//remoting/protocol:test_support",
88 "//remoting/resources",
sergeyu15945fd2015-07-16 21:05:5989 "//remoting/signaling:test_support",
90 "//remoting/test:test_support",
brettw31f4de692015-03-04 17:24:4591 "//testing/gmock",
92 "//testing/gtest",
93 ]
94
brettw3865a712016-12-10 05:59:0895 if (!is_ios) {
brettw083632b2016-08-25 20:24:4696 deps += [ "//components/policy/core/browser:test_support" ]
tmoniuszko17efc232015-04-01 10:16:2897 }
98
brettw31f4de692015-03-04 17:24:4599 if (enable_remoting_host) {
100 deps += [ "//remoting/host:test_support" ]
101 }
102}
103
nicholsse6fb2622016-06-15 18:11:06104test("remoting_unittests") {
105 defines = []
106 libs = []
zijiehe0359bb22016-04-01 16:46:35107
Dan McArdle851b5ac832021-08-05 22:43:19108 configs += [ "//remoting/build/config:version" ]
nicholsse6fb2622016-06-15 18:11:06109
nicholsse6fb2622016-06-15 18:11:06110 deps = [
111 ":test_support",
112 "//base",
nicholss1b5df0c2016-10-25 16:04:49113 "//base/test:test_support",
nicholsse6fb2622016-06-15 18:11:06114 "//google_apis",
115 "//remoting/base:unit_tests",
116 "//remoting/client:unit_tests",
Scott Nicholsd2375a32017-08-23 22:47:14117 "//remoting/client/audio:unit_tests",
nicholss7666a282017-05-24 15:48:02118 "//remoting/client/input:unit_tests",
Yuwei Huanga23c5642019-09-25 01:41:21119 "//remoting/client/notification:unit_tests",
yuweih631efbaf72017-05-16 02:20:03120 "//remoting/client/ui:unit_tests",
nicholsse6fb2622016-06-15 18:11:06121 "//remoting/protocol:unit_tests",
122 "//remoting/signaling:unit_tests",
nicholsse6fb2622016-06-15 18:11:06123 "//testing/gmock",
124 "//testing/gtest",
nicholsse6fb2622016-06-15 18:11:06125 ]
126
127 if (enable_remoting_host) {
128 deps += [
129 "//remoting/codec:unit_tests",
130 "//remoting/host:unit_tests",
131 "//ui/gfx",
132 ]
133 }
134
Mirko Bonadeicbc90fd02019-11-14 22:26:17135 deps += [ "//third_party/webrtc_overrides:webrtc_component" ]
nicholsse6fb2622016-06-15 18:11:06136
137 if (is_android) {
138 deps += [ "//net/android:net_java" ]
nicholssa6be869a2017-04-05 18:39:15139
140 libs += [ "android" ]
nicholsse6fb2622016-06-15 18:11:06141 }
142
143 if (is_win) {
144 defines += [ "_ALT_NO_EXCEPTIONS" ]
145
146 libs += [
joedow7cc2c862016-09-13 16:05:57147 "comctl32.lib",
nicholsse6fb2622016-06-15 18:11:06148 "rpcrt4.lib",
149 "wtsapi32.lib",
150 ]
151 }
James Hawkins477e8db2018-08-01 20:51:06152
Yuta Hijikata79e6ff52020-11-19 05:12:40153 # TODO(crbug.com/1052397): Change to !is_chromeos once lacros-chrome is switched to target_os=chromeos.
Nico Weber791b51a8b2022-03-30 20:35:12154 if (!is_chromeos) {
David Jean418de6e2019-06-27 14:23:54155 deps += [ "//remoting/client/display:unit_tests" ]
James Hawkins477e8db2018-08-01 20:51:06156 }
nicholsse6fb2622016-06-15 18:11:06157}
158
159if (enable_remoting_host) {
160 test("remoting_perftests") {
nicholsse3320ae2016-09-16 20:12:59161 defines = []
162 libs = []
163
nicholsse6fb2622016-06-15 18:11:06164 sources = [
165 "test/codec_perftest.cc",
166 "test/protocol_perftest.cc",
brettwfc2f1362015-04-17 19:00:02167 ]
brettw31f4de692015-03-04 17:24:45168
nicholss546e9c22016-09-06 23:28:39169 configs += [ "//remoting/build/config:version" ]
dprankef497c7962015-07-31 19:46:23170
brettw31f4de692015-03-04 17:24:45171 deps = [
172 ":test_support",
zijiehe0359bb22016-04-01 16:46:35173 "//base",
nicholsse6fb2622016-06-15 18:11:06174 "//base/test:run_all_unittests",
175 "//base/test:test_support",
Sergey Ulanov7c6ba7f52022-01-25 18:18:46176 "//components/webrtc:thread_wrapper",
nicholsse6fb2622016-06-15 18:11:06177 "//net:test_support",
178 "//remoting/base",
Muyao Xu8eedb062021-02-17 16:24:51179 "//remoting/client:client",
180 "//remoting/client/audio:audio",
181 "//remoting/codec:encoder",
182 "//remoting/host:common",
183 "//remoting/host:test_support",
184 "//remoting/protocol:protocol",
185 "//remoting/signaling:test_support",
186 "//remoting/test:test_support",
brettw31f4de692015-03-04 17:24:45187 "//testing/gtest",
Mirko Bonadeicbc90fd02019-11-14 22:26:17188 "//third_party/webrtc_overrides:webrtc_component",
brettw31f4de692015-03-04 17:24:45189 ]
190
nicholsse3320ae2016-09-16 20:12:59191 if (is_win) {
192 defines += [ "_ALT_NO_EXCEPTIONS" ]
193
194 libs += [
195 "rpcrt4.lib",
196 "wtsapi32.lib",
197 ]
198 }
brettw31f4de692015-03-04 17:24:45199 }
200}