Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: webrtc/test/BUILD.gn

Issue 2336123002: Revert of Moved webrtc/test/channel_transport/ into webrtc/voice_engine/test/ (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/test/channel_transport/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("../build/webrtc.gni") 9 import("../build/webrtc.gni")
10 import("//build/config/ui.gni") 10 import("//build/config/ui.gni")
11 if (is_android) { 11 if (is_android) {
12 import("//build/config/android/rules.gni") 12 import("//build/config/android/rules.gni")
13 } 13 }
14 14
15 rtc_source_set("test") { 15 rtc_source_set("test") {
16 testonly = true 16 testonly = true
17 17
18 deps = [ 18 deps = [
19 ":channel_transport",
19 ":field_trial", 20 ":field_trial",
20 ":rtp_test_utils", 21 ":rtp_test_utils",
21 ":test_common", 22 ":test_common",
22 ":test_renderer", 23 ":test_renderer",
23 ":test_support", 24 ":test_support",
24 ":test_support_main", 25 ":test_support_main",
25 ":test_support_unittests", 26 ":test_support_unittests",
26 ":video_test_common", 27 ":video_test_common",
27 ] 28 ]
28 } 29 }
29 30
31 config("channel_transport_warnings_config") {
32 if (is_win) {
33 cflags = [ "/wd4302" ] # cast truncation
34
35 if (is_clang) {
36 # GN orders flags on a target before flags from configs. The default
37 # config adds -Wall, and this flag have to be after -Wall -- so they need
38 # to come from a config and cannot be on the target directly.
39 cflags += [
40 "-Wno-parentheses-equality",
41 "-Wno-reorder",
42 "-Wno-tautological-constant-out-of-range-compare",
43
44 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6268
45 # for -Wno-thread-safety-analysis
46 "-Wno-thread-safety-analysis",
47 "-Wno-unused-private-field",
48 ]
49 }
50 }
51 }
52
53 rtc_source_set("channel_transport") {
54 testonly = true
55 sources = [
56 "channel_transport/channel_transport.cc",
57 "channel_transport/channel_transport.h",
58 "channel_transport/traffic_control_win.cc",
59 "channel_transport/traffic_control_win.h",
60 "channel_transport/udp_socket2_manager_win.cc",
61 "channel_transport/udp_socket2_manager_win.h",
62 "channel_transport/udp_socket2_win.cc",
63 "channel_transport/udp_socket2_win.h",
64 "channel_transport/udp_socket_manager_posix.cc",
65 "channel_transport/udp_socket_manager_posix.h",
66 "channel_transport/udp_socket_manager_wrapper.cc",
67 "channel_transport/udp_socket_manager_wrapper.h",
68 "channel_transport/udp_socket_posix.cc",
69 "channel_transport/udp_socket_posix.h",
70 "channel_transport/udp_socket_wrapper.cc",
71 "channel_transport/udp_socket_wrapper.h",
72 "channel_transport/udp_transport.h",
73 "channel_transport/udp_transport_impl.cc",
74 "channel_transport/udp_transport_impl.h",
75 ]
76
77 configs += [ ":channel_transport_warnings_config" ]
78
79 if (is_clang && !is_nacl) {
80 # Suppress warnings from the Chromium Clang plugin.
81 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
82 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
83 }
84
85 deps = [
86 "..:webrtc_common",
87 "../system_wrappers",
88 "//testing/gtest",
89 ]
90 }
91
30 rtc_source_set("video_test_common") { 92 rtc_source_set("video_test_common") {
31 testonly = true 93 testonly = true
32 sources = [ 94 sources = [
33 "fake_texture_frame.cc", 95 "fake_texture_frame.cc",
34 "fake_texture_frame.h", 96 "fake_texture_frame.h",
35 "frame_generator.cc", 97 "frame_generator.cc",
36 "frame_generator.h", 98 "frame_generator.h",
37 "frame_utils.cc", 99 "frame_utils.cc",
38 "frame_utils.h", 100 "frame_utils.h",
39 ] 101 ]
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 sources = test_support_unittests_resources 272 sources = test_support_unittests_resources
211 outputs = [ 273 outputs = [
212 "{{bundle_resources_dir}}/{{source_file_part}}", 274 "{{bundle_resources_dir}}/{{source_file_part}}",
213 ] 275 ]
214 } 276 }
215 } 277 }
216 278
217 rtc_test("test_support_unittests") { 279 rtc_test("test_support_unittests") {
218 deps = [] 280 deps = []
219 sources = [ 281 sources = [
282 "channel_transport/udp_socket_manager_unittest.cc",
283 "channel_transport/udp_socket_wrapper_unittest.cc",
284 "channel_transport/udp_transport_unittest.cc",
220 "fake_network_pipe_unittest.cc", 285 "fake_network_pipe_unittest.cc",
221 "frame_generator_unittest.cc", 286 "frame_generator_unittest.cc",
222 "rtp_file_reader_unittest.cc", 287 "rtp_file_reader_unittest.cc",
223 "rtp_file_writer_unittest.cc", 288 "rtp_file_writer_unittest.cc",
224 "testsupport/always_passing_unittest.cc", 289 "testsupport/always_passing_unittest.cc",
225 "testsupport/fileutils_unittest.cc", 290 "testsupport/fileutils_unittest.cc",
226 "testsupport/frame_reader_unittest.cc", 291 "testsupport/frame_reader_unittest.cc",
227 "testsupport/frame_writer_unittest.cc", 292 "testsupport/frame_writer_unittest.cc",
228 "testsupport/metrics/video_metrics_unittest.cc", 293 "testsupport/metrics/video_metrics_unittest.cc",
229 "testsupport/packet_reader_unittest.cc", 294 "testsupport/packet_reader_unittest.cc",
(...skipping 18 matching lines...) Expand all
248 deps += [ "//testing/android/native_test:native_test_support" ] 313 deps += [ "//testing/android/native_test:native_test_support" ]
249 data = test_support_unittests_resources 314 data = test_support_unittests_resources
250 shard_timeout = 900 315 shard_timeout = 900
251 } 316 }
252 317
253 if (is_ios) { 318 if (is_ios) {
254 deps += [ ":test_support_unittests_bundle_data" ] 319 deps += [ ":test_support_unittests_bundle_data" ]
255 } 320 }
256 321
257 deps += [ 322 deps += [
323 ":channel_transport",
258 ":test_common", 324 ":test_common",
259 ":test_support_main", 325 ":test_support_main",
260 "../modules/video_capture", 326 "../modules/video_capture",
261 "//testing/gmock", 327 "//testing/gmock",
262 "//testing/gtest", 328 "//testing/gtest",
263 ] 329 ]
264 } 330 }
265 331
266 rtc_source_set("test_common") { 332 rtc_source_set("test_common") {
267 testonly = true 333 testonly = true
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 465 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
400 } 466 }
401 467
402 deps = [ 468 deps = [
403 ":test_support", 469 ":test_support",
404 ":video_test_common", 470 ":video_test_common",
405 "../modules/media_file", 471 "../modules/media_file",
406 "//testing/gtest", 472 "//testing/gtest",
407 ] 473 ]
408 } 474 }
OLDNEW
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/test/channel_transport/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698