OLD | NEW |
---|---|
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("../webrtc.gni") | 9 import("../webrtc.gni") |
10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
99 rtc_source_set("test_main") { | 99 rtc_source_set("test_main") { |
100 testonly = true | 100 testonly = true |
101 sources = [ | 101 sources = [ |
102 "test_main.cc", | 102 "test_main.cc", |
103 ] | 103 ] |
104 | 104 |
105 public_deps = [ | 105 public_deps = [ |
106 ":test_support", | 106 ":test_support", |
107 ] | 107 ] |
108 deps = [ | 108 deps = [ |
109 ":field_trial", | 109 ":field_trial", |
kjellander_webrtc
2017/04/26 13:45:20
I think we want to add ":isolated_output" here, si
mbonadei
2017/04/26 13:50:04
Ok, not I got it. Let me fix the issue on the gtes
| |
110 "../system_wrappers:metrics_default", | 110 "../system_wrappers:metrics_default", |
111 "//testing/gmock", | 111 "//testing/gmock", |
112 "//testing/gtest", | 112 "//testing/gtest", |
113 "//third_party/gflags", | 113 "//third_party/gflags", |
114 ] | 114 ] |
115 } | 115 } |
116 | 116 |
117 rtc_source_set("fileutils") { | 117 rtc_source_set("fileutils") { |
118 testonly = true | 118 testonly = true |
119 sources = [ | 119 sources = [ |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
165 | 165 |
166 if (is_ios) { | 166 if (is_ios) { |
167 deps += [ "//webrtc/sdk:rtc_sdk_common_objc" ] | 167 deps += [ "//webrtc/sdk:rtc_sdk_common_objc" ] |
168 } | 168 } |
169 | 169 |
170 if (rtc_use_memcheck) { | 170 if (rtc_use_memcheck) { |
171 data = valgrind_webrtc_dependencies | 171 data = valgrind_webrtc_dependencies |
172 } | 172 } |
173 } | 173 } |
174 | 174 |
175 rtc_source_set("isolated_output") { | |
176 # This target was part of :test_support but it depends on //third_party/gflags | |
177 # and this can be a problem because test_support is pulled in from a target | |
178 # that is used by Chromium and they are not using gflags. | |
179 # Please do not merge this target with :test_support. | |
180 testonly = true | |
181 sources = [ | |
182 "testsupport/isolated_output.cc", | |
183 "testsupport/isolated_output.h", | |
184 ] | |
185 deps = [ | |
186 ":fileutils", | |
187 "../base:rtc_base_approved", | |
188 "//third_party/gflags", | |
189 ] | |
190 } | |
191 | |
175 rtc_source_set("test_support") { | 192 rtc_source_set("test_support") { |
176 testonly = true | 193 testonly = true |
177 | 194 |
178 sources = [ | 195 sources = [ |
179 "gmock.h", | 196 "gmock.h", |
180 "gtest.h", | 197 "gtest.h", |
181 "testsupport/isolated_output.cc", | |
182 "testsupport/isolated_output.h", | |
183 "testsupport/packet_reader.cc", | 198 "testsupport/packet_reader.cc", |
184 "testsupport/packet_reader.h", | 199 "testsupport/packet_reader.h", |
185 "testsupport/perf_test.cc", | 200 "testsupport/perf_test.cc", |
186 "testsupport/perf_test.h", | 201 "testsupport/perf_test.h", |
187 "testsupport/trace_to_stderr.cc", | 202 "testsupport/trace_to_stderr.cc", |
188 "testsupport/trace_to_stderr.h", | 203 "testsupport/trace_to_stderr.h", |
189 "testsupport/unittest_utils.h", | 204 "testsupport/unittest_utils.h", |
190 ] | 205 ] |
191 | 206 |
207 # Do not add a dependency on //third_party/gflags here because it breaks | |
208 # Chromium. | |
192 deps = [ | 209 deps = [ |
210 "..:webrtc_common", | |
193 "../base:gtest_prod", | 211 "../base:gtest_prod", |
194 "../base:rtc_base_approved", | 212 "../base:rtc_base_approved", |
195 "../common_video", | 213 "../common_video", |
196 "../system_wrappers", | 214 "../system_wrappers", |
197 "//testing/gmock", | 215 "//testing/gmock", |
198 "//testing/gtest", | 216 "//testing/gtest", |
199 "//third_party/gflags", | |
200 ] | 217 ] |
201 | 218 |
202 public_deps = [ | 219 public_deps = [ |
203 ":fileutils", | 220 ":fileutils", |
204 ] | 221 ] |
205 | 222 |
206 if (!build_with_chromium && is_clang) { | 223 if (!build_with_chromium && is_clang) { |
207 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 224 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
208 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 225 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
209 } | 226 } |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
289 shard_timeout = 900 | 306 shard_timeout = 900 |
290 } | 307 } |
291 | 308 |
292 if (is_ios) { | 309 if (is_ios) { |
293 deps += [ ":test_support_unittests_bundle_data" ] | 310 deps += [ ":test_support_unittests_bundle_data" ] |
294 } | 311 } |
295 | 312 |
296 deps += [ | 313 deps += [ |
297 ":direct_transport", | 314 ":direct_transport", |
298 ":fileutils_unittests", | 315 ":fileutils_unittests", |
316 ":isolated_output", | |
299 ":test_common", | 317 ":test_common", |
300 ":test_main", | 318 ":test_main", |
301 ":video_test_common", | 319 ":video_test_common", |
302 ":video_test_support", | 320 ":video_test_support", |
303 "../modules/video_capture", | 321 "../modules/video_capture", |
304 "//testing/gmock", | 322 "//testing/gmock", |
305 "//testing/gtest", | 323 "//testing/gtest", |
306 "//third_party/gflags", | 324 "//third_party/gflags", |
307 ] | 325 ] |
308 } | 326 } |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
490 ] | 508 ] |
491 } | 509 } |
492 | 510 |
493 rtc_source_set("audio_codec_mocks") { | 511 rtc_source_set("audio_codec_mocks") { |
494 testonly = true | 512 testonly = true |
495 sources = [ | 513 sources = [ |
496 "mock_audio_decoder.h", | 514 "mock_audio_decoder.h", |
497 "mock_audio_decoder_factory.h", | 515 "mock_audio_decoder_factory.h", |
498 ] | 516 ] |
499 } | 517 } |
OLD | NEW |