| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 deps = [ | 97 deps = [ |
| 98 ":field_trial", | 98 ":field_trial", |
| 99 ":test_support", | 99 ":test_support", |
| 100 "../system_wrappers:metrics_default", | 100 "../system_wrappers:metrics_default", |
| 101 "//testing/gmock", | 101 "//testing/gmock", |
| 102 "//testing/gtest", | 102 "//testing/gtest", |
| 103 "//third_party/gflags", | 103 "//third_party/gflags", |
| 104 ] | 104 ] |
| 105 } | 105 } |
| 106 | 106 |
| 107 rtc_source_set("fileutils") { |
| 108 testonly = true |
| 109 sources = [ |
| 110 "testsupport/fileutils.cc", |
| 111 "testsupport/fileutils.h", |
| 112 ] |
| 113 } |
| 114 |
| 107 rtc_source_set("test_support") { | 115 rtc_source_set("test_support") { |
| 108 testonly = true | 116 testonly = true |
| 109 | 117 |
| 110 sources = [ | 118 sources = [ |
| 111 "gmock.h", | 119 "gmock.h", |
| 112 "gtest.h", | 120 "gtest.h", |
| 113 "testsupport/fileutils.cc", | |
| 114 "testsupport/fileutils.h", | |
| 115 "testsupport/frame_reader.cc", | 121 "testsupport/frame_reader.cc", |
| 116 "testsupport/frame_reader.h", | 122 "testsupport/frame_reader.h", |
| 117 "testsupport/frame_writer.cc", | 123 "testsupport/frame_writer.cc", |
| 118 "testsupport/frame_writer.h", | 124 "testsupport/frame_writer.h", |
| 119 "testsupport/iosfileutils.mm", | 125 "testsupport/iosfileutils.mm", |
| 120 "testsupport/metrics/video_metrics.cc", | 126 "testsupport/metrics/video_metrics.cc", |
| 121 "testsupport/metrics/video_metrics.h", | 127 "testsupport/metrics/video_metrics.h", |
| 122 "testsupport/mock/mock_frame_reader.h", | 128 "testsupport/mock/mock_frame_reader.h", |
| 123 "testsupport/mock/mock_frame_writer.h", | 129 "testsupport/mock/mock_frame_writer.h", |
| 124 "testsupport/packet_reader.cc", | 130 "testsupport/packet_reader.cc", |
| 125 "testsupport/packet_reader.h", | 131 "testsupport/packet_reader.h", |
| 126 "testsupport/perf_test.cc", | 132 "testsupport/perf_test.cc", |
| 127 "testsupport/perf_test.h", | 133 "testsupport/perf_test.h", |
| 128 "testsupport/trace_to_stderr.cc", | 134 "testsupport/trace_to_stderr.cc", |
| 129 "testsupport/trace_to_stderr.h", | 135 "testsupport/trace_to_stderr.h", |
| 130 ] | 136 ] |
| 131 | 137 |
| 132 deps = [ | 138 deps = [ |
| 139 ":fileutils", |
| 133 ":video_test_common", | 140 ":video_test_common", |
| 134 "../base:gtest_prod", | 141 "../base:gtest_prod", |
| 135 "../base:rtc_base_approved", | 142 "../base:rtc_base_approved", |
| 136 "../common_video", | 143 "../common_video", |
| 137 "../system_wrappers", | 144 "../system_wrappers", |
| 138 "//testing/gmock", | 145 "//testing/gmock", |
| 139 "//testing/gtest", | 146 "//testing/gtest", |
| 140 ] | 147 ] |
| 141 | 148 |
| 142 if (!build_with_chromium && is_clang) { | 149 if (!build_with_chromium && is_clang) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 } | 204 } |
| 198 | 205 |
| 199 rtc_test("test_support_unittests") { | 206 rtc_test("test_support_unittests") { |
| 200 deps = [] | 207 deps = [] |
| 201 sources = [ | 208 sources = [ |
| 202 "fake_network_pipe_unittest.cc", | 209 "fake_network_pipe_unittest.cc", |
| 203 "frame_generator_unittest.cc", | 210 "frame_generator_unittest.cc", |
| 204 "rtp_file_reader_unittest.cc", | 211 "rtp_file_reader_unittest.cc", |
| 205 "rtp_file_writer_unittest.cc", | 212 "rtp_file_writer_unittest.cc", |
| 206 "testsupport/always_passing_unittest.cc", | 213 "testsupport/always_passing_unittest.cc", |
| 207 "testsupport/fileutils_unittest.cc", | |
| 208 "testsupport/frame_reader_unittest.cc", | 214 "testsupport/frame_reader_unittest.cc", |
| 209 "testsupport/frame_writer_unittest.cc", | 215 "testsupport/frame_writer_unittest.cc", |
| 210 "testsupport/metrics/video_metrics_unittest.cc", | 216 "testsupport/metrics/video_metrics_unittest.cc", |
| 211 "testsupport/packet_reader_unittest.cc", | 217 "testsupport/packet_reader_unittest.cc", |
| 212 "testsupport/perf_test_unittest.cc", | 218 "testsupport/perf_test_unittest.cc", |
| 213 "testsupport/unittest_utils.h", | 219 "testsupport/unittest_utils.h", |
| 214 ] | 220 ] |
| 215 | 221 |
| 216 # TODO(jschuh): Bug 1348: fix this warning. | 222 # TODO(jschuh): Bug 1348: fix this warning. |
| 217 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 223 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| (...skipping 11 matching lines...) Expand all Loading... |
| 229 if (is_android) { | 235 if (is_android) { |
| 230 deps += [ "//testing/android/native_test:native_test_support" ] | 236 deps += [ "//testing/android/native_test:native_test_support" ] |
| 231 shard_timeout = 900 | 237 shard_timeout = 900 |
| 232 } | 238 } |
| 233 | 239 |
| 234 if (is_ios) { | 240 if (is_ios) { |
| 235 deps += [ ":test_support_unittests_bundle_data" ] | 241 deps += [ ":test_support_unittests_bundle_data" ] |
| 236 } | 242 } |
| 237 | 243 |
| 238 deps += [ | 244 deps += [ |
| 245 ":fileutils_unittests", |
| 239 ":test_common", | 246 ":test_common", |
| 240 ":test_main", | 247 ":test_main", |
| 241 "../modules/video_capture", | 248 "../modules/video_capture", |
| 242 "//testing/gmock", | 249 "//testing/gmock", |
| 243 "//testing/gtest", | 250 "//testing/gtest", |
| 244 ] | 251 ] |
| 245 } | 252 } |
| 253 rtc_source_set("fileutils_unittests") { |
| 254 testonly = true |
| 255 sources = [ |
| 256 "testsupport/fileutils_unittest.cc", |
| 257 ] |
| 258 deps = [ |
| 259 ":fileutils", |
| 260 "//testing/gmock", |
| 261 "//testing/gtest", |
| 262 ] |
| 263 } |
| 246 | 264 |
| 247 rtc_source_set("test_common") { | 265 rtc_source_set("test_common") { |
| 248 testonly = true | 266 testonly = true |
| 249 sources = [ | 267 sources = [ |
| 250 "call_test.cc", | 268 "call_test.cc", |
| 251 "call_test.h", | 269 "call_test.h", |
| 252 "configurable_frame_size_encoder.cc", | 270 "configurable_frame_size_encoder.cc", |
| 253 "configurable_frame_size_encoder.h", | 271 "configurable_frame_size_encoder.h", |
| 254 "constants.cc", | 272 "constants.cc", |
| 255 "constants.h", | 273 "constants.h", |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 399 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 382 } | 400 } |
| 383 | 401 |
| 384 deps = [ | 402 deps = [ |
| 385 ":test_support", | 403 ":test_support", |
| 386 ":video_test_common", | 404 ":video_test_common", |
| 387 "../modules/media_file", | 405 "../modules/media_file", |
| 388 "//testing/gtest", | 406 "//testing/gtest", |
| 389 ] | 407 ] |
| 390 } | 408 } |
| OLD | NEW |