Chromium Code Reviews| 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") |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 103 "//third_party/gflags", | 103 "//third_party/gflags", |
| 104 ] | 104 ] |
| 105 } | 105 } |
| 106 | 106 |
| 107 rtc_source_set("test_support") { | 107 rtc_source_set("test_support") { |
| 108 testonly = true | 108 testonly = true |
| 109 | 109 |
| 110 sources = [ | 110 sources = [ |
| 111 "gmock.h", | 111 "gmock.h", |
| 112 "gtest.h", | 112 "gtest.h", |
| 113 "testsupport/fileutils.cc", | |
| 114 "testsupport/fileutils.h", | |
| 115 "testsupport/frame_reader.cc", | 113 "testsupport/frame_reader.cc", |
| 116 "testsupport/frame_reader.h", | 114 "testsupport/frame_reader.h", |
| 117 "testsupport/frame_writer.cc", | 115 "testsupport/frame_writer.cc", |
| 118 "testsupport/frame_writer.h", | 116 "testsupport/frame_writer.h", |
| 119 "testsupport/iosfileutils.mm", | 117 "testsupport/iosfileutils.mm", |
| 120 "testsupport/metrics/video_metrics.cc", | 118 "testsupport/metrics/video_metrics.cc", |
| 121 "testsupport/metrics/video_metrics.h", | 119 "testsupport/metrics/video_metrics.h", |
| 122 "testsupport/mock/mock_frame_reader.h", | 120 "testsupport/mock/mock_frame_reader.h", |
| 123 "testsupport/mock/mock_frame_writer.h", | 121 "testsupport/mock/mock_frame_writer.h", |
| 124 "testsupport/packet_reader.cc", | 122 "testsupport/packet_reader.cc", |
| 125 "testsupport/packet_reader.h", | 123 "testsupport/packet_reader.h", |
| 126 "testsupport/perf_test.cc", | 124 "testsupport/perf_test.cc", |
| 127 "testsupport/perf_test.h", | 125 "testsupport/perf_test.h", |
| 128 "testsupport/trace_to_stderr.cc", | 126 "testsupport/trace_to_stderr.cc", |
| 129 "testsupport/trace_to_stderr.h", | 127 "testsupport/trace_to_stderr.h", |
| 130 ] | 128 ] |
| 131 | 129 |
| 132 deps = [ | 130 deps = [ |
| 131 ":fileutils", | |
| 133 ":video_test_common", | 132 ":video_test_common", |
| 134 "../base:gtest_prod", | 133 "../base:gtest_prod", |
| 135 "../base:rtc_base_approved", | 134 "../base:rtc_base_approved", |
| 136 "../common_video", | 135 "../common_video", |
| 137 "../system_wrappers", | 136 "../system_wrappers", |
| 138 "//testing/gmock", | 137 "//testing/gmock", |
| 139 "//testing/gtest", | 138 "//testing/gtest", |
| 140 ] | 139 ] |
| 141 | 140 |
| 142 if (!build_with_chromium && is_clang) { | 141 if (!build_with_chromium && is_clang) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 197 } | 196 } |
| 198 | 197 |
| 199 rtc_test("test_support_unittests") { | 198 rtc_test("test_support_unittests") { |
| 200 deps = [] | 199 deps = [] |
| 201 sources = [ | 200 sources = [ |
| 202 "fake_network_pipe_unittest.cc", | 201 "fake_network_pipe_unittest.cc", |
| 203 "frame_generator_unittest.cc", | 202 "frame_generator_unittest.cc", |
| 204 "rtp_file_reader_unittest.cc", | 203 "rtp_file_reader_unittest.cc", |
| 205 "rtp_file_writer_unittest.cc", | 204 "rtp_file_writer_unittest.cc", |
| 206 "testsupport/always_passing_unittest.cc", | 205 "testsupport/always_passing_unittest.cc", |
| 207 "testsupport/fileutils_unittest.cc", | |
| 208 "testsupport/frame_reader_unittest.cc", | 206 "testsupport/frame_reader_unittest.cc", |
| 209 "testsupport/frame_writer_unittest.cc", | 207 "testsupport/frame_writer_unittest.cc", |
| 210 "testsupport/metrics/video_metrics_unittest.cc", | 208 "testsupport/metrics/video_metrics_unittest.cc", |
| 211 "testsupport/packet_reader_unittest.cc", | 209 "testsupport/packet_reader_unittest.cc", |
| 212 "testsupport/perf_test_unittest.cc", | 210 "testsupport/perf_test_unittest.cc", |
| 213 "testsupport/unittest_utils.h", | 211 "testsupport/unittest_utils.h", |
| 214 ] | 212 ] |
| 215 | 213 |
| 216 # TODO(jschuh): Bug 1348: fix this warning. | 214 # TODO(jschuh): Bug 1348: fix this warning. |
| 217 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 215 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 229 if (is_android) { | 227 if (is_android) { |
| 230 deps += [ "//testing/android/native_test:native_test_support" ] | 228 deps += [ "//testing/android/native_test:native_test_support" ] |
| 231 shard_timeout = 900 | 229 shard_timeout = 900 |
| 232 } | 230 } |
| 233 | 231 |
| 234 if (is_ios) { | 232 if (is_ios) { |
| 235 deps += [ ":test_support_unittests_bundle_data" ] | 233 deps += [ ":test_support_unittests_bundle_data" ] |
| 236 } | 234 } |
| 237 | 235 |
| 238 deps += [ | 236 deps += [ |
| 237 ":fileutils_unittests", | |
| 239 ":test_common", | 238 ":test_common", |
| 240 ":test_main", | 239 ":test_main", |
| 241 "../modules/video_capture", | 240 "../modules/video_capture", |
| 242 "//testing/gmock", | 241 "//testing/gmock", |
| 243 "//testing/gtest", | 242 "//testing/gtest", |
| 244 ] | 243 ] |
| 245 } | 244 } |
| 246 | 245 |
| 247 rtc_source_set("test_common") { | 246 rtc_source_set("test_common") { |
| 248 testonly = true | 247 testonly = true |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 381 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 380 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 382 } | 381 } |
| 383 | 382 |
| 384 deps = [ | 383 deps = [ |
| 385 ":test_support", | 384 ":test_support", |
| 386 ":video_test_common", | 385 ":video_test_common", |
| 387 "../modules/media_file", | 386 "../modules/media_file", |
| 388 "//testing/gtest", | 387 "//testing/gtest", |
| 389 ] | 388 ] |
| 390 } | 389 } |
| 390 | |
| 391 rtc_source_set("fileutils") { | |
|
kjellander_webrtc
2016/12/02 14:31:08
Move these closer to the reference
| |
| 392 testonly = true | |
| 393 sources = [ | |
| 394 "testsupport/fileutils.cc", | |
| 395 "testsupport/fileutils.h", | |
| 396 ] | |
| 397 } | |
| 398 rtc_source_set("fileutils_unittests") { | |
| 399 testonly = true | |
| 400 sources = [ | |
| 401 "testsupport/fileutils_unittest.cc", | |
| 402 ] | |
| 403 deps = [ | |
| 404 ":default_fileutils", | |
| 405 "//testing/gmock", | |
| 406 "//testing/gtest", | |
| 407 ] | |
| 408 if (!build_with_chromium && is_clang) { | |
| 409 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
| 410 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
| 411 } | |
| 412 } | |
| OLD | NEW |