| 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("../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", | |
| 20 ":field_trial", | 19 ":field_trial", |
| 21 ":rtp_test_utils", | 20 ":rtp_test_utils", |
| 22 ":test_common", | 21 ":test_common", |
| 23 ":test_renderer", | 22 ":test_renderer", |
| 24 ":test_support", | 23 ":test_support", |
| 25 ":test_support_main", | 24 ":test_support_main", |
| 26 ":test_support_unittests", | 25 ":test_support_unittests", |
| 27 ":video_test_common", | 26 ":video_test_common", |
| 28 ] | 27 ] |
| 29 } | 28 } |
| 30 | 29 |
| 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 | |
| 92 rtc_source_set("video_test_common") { | 30 rtc_source_set("video_test_common") { |
| 93 testonly = true | 31 testonly = true |
| 94 sources = [ | 32 sources = [ |
| 95 "fake_texture_frame.cc", | 33 "fake_texture_frame.cc", |
| 96 "fake_texture_frame.h", | 34 "fake_texture_frame.h", |
| 97 "frame_generator.cc", | 35 "frame_generator.cc", |
| 98 "frame_generator.h", | 36 "frame_generator.h", |
| 99 "frame_utils.cc", | 37 "frame_utils.cc", |
| 100 "frame_utils.h", | 38 "frame_utils.h", |
| 101 ] | 39 ] |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 sources = test_support_unittests_resources | 210 sources = test_support_unittests_resources |
| 273 outputs = [ | 211 outputs = [ |
| 274 "{{bundle_resources_dir}}/{{source_file_part}}", | 212 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 275 ] | 213 ] |
| 276 } | 214 } |
| 277 } | 215 } |
| 278 | 216 |
| 279 rtc_test("test_support_unittests") { | 217 rtc_test("test_support_unittests") { |
| 280 deps = [] | 218 deps = [] |
| 281 sources = [ | 219 sources = [ |
| 282 "channel_transport/udp_socket_manager_unittest.cc", | |
| 283 "channel_transport/udp_socket_wrapper_unittest.cc", | |
| 284 "channel_transport/udp_transport_unittest.cc", | |
| 285 "fake_network_pipe_unittest.cc", | 220 "fake_network_pipe_unittest.cc", |
| 286 "frame_generator_unittest.cc", | 221 "frame_generator_unittest.cc", |
| 287 "rtp_file_reader_unittest.cc", | 222 "rtp_file_reader_unittest.cc", |
| 288 "rtp_file_writer_unittest.cc", | 223 "rtp_file_writer_unittest.cc", |
| 289 "testsupport/always_passing_unittest.cc", | 224 "testsupport/always_passing_unittest.cc", |
| 290 "testsupport/fileutils_unittest.cc", | 225 "testsupport/fileutils_unittest.cc", |
| 291 "testsupport/frame_reader_unittest.cc", | 226 "testsupport/frame_reader_unittest.cc", |
| 292 "testsupport/frame_writer_unittest.cc", | 227 "testsupport/frame_writer_unittest.cc", |
| 293 "testsupport/metrics/video_metrics_unittest.cc", | 228 "testsupport/metrics/video_metrics_unittest.cc", |
| 294 "testsupport/packet_reader_unittest.cc", | 229 "testsupport/packet_reader_unittest.cc", |
| (...skipping 18 matching lines...) Expand all Loading... |
| 313 deps += [ "//testing/android/native_test:native_test_support" ] | 248 deps += [ "//testing/android/native_test:native_test_support" ] |
| 314 data = test_support_unittests_resources | 249 data = test_support_unittests_resources |
| 315 shard_timeout = 900 | 250 shard_timeout = 900 |
| 316 } | 251 } |
| 317 | 252 |
| 318 if (is_ios) { | 253 if (is_ios) { |
| 319 deps += [ ":test_support_unittests_bundle_data" ] | 254 deps += [ ":test_support_unittests_bundle_data" ] |
| 320 } | 255 } |
| 321 | 256 |
| 322 deps += [ | 257 deps += [ |
| 323 ":channel_transport", | |
| 324 ":test_common", | 258 ":test_common", |
| 325 ":test_support_main", | 259 ":test_support_main", |
| 326 "../modules/video_capture", | 260 "../modules/video_capture", |
| 327 "//testing/gmock", | 261 "//testing/gmock", |
| 328 "//testing/gtest", | 262 "//testing/gtest", |
| 329 ] | 263 ] |
| 330 } | 264 } |
| 331 | 265 |
| 332 rtc_source_set("test_common") { | 266 rtc_source_set("test_common") { |
| 333 testonly = true | 267 testonly = true |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 399 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 466 } | 400 } |
| 467 | 401 |
| 468 deps = [ | 402 deps = [ |
| 469 ":test_support", | 403 ":test_support", |
| 470 ":video_test_common", | 404 ":video_test_common", |
| 471 "../modules/media_file", | 405 "../modules/media_file", |
| 472 "//testing/gtest", | 406 "//testing/gtest", |
| 473 ] | 407 ] |
| 474 } | 408 } |
| OLD | NEW |