| 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 if (is_ios) { |
| 114 sources += [ "testsupport/iosfileutils.mm" ] |
| 115 configs += [ "//build/config/compiler:enable_arc" ] |
| 116 } |
| 117 } |
| 118 |
| 107 rtc_source_set("test_support") { | 119 rtc_source_set("test_support") { |
| 108 testonly = true | 120 testonly = true |
| 109 | 121 |
| 110 sources = [ | 122 sources = [ |
| 111 "gmock.h", | 123 "gmock.h", |
| 112 "gtest.h", | 124 "gtest.h", |
| 113 "testsupport/fileutils.cc", | |
| 114 "testsupport/fileutils.h", | |
| 115 "testsupport/frame_reader.cc", | 125 "testsupport/frame_reader.cc", |
| 116 "testsupport/frame_reader.h", | 126 "testsupport/frame_reader.h", |
| 117 "testsupport/frame_writer.cc", | 127 "testsupport/frame_writer.cc", |
| 118 "testsupport/frame_writer.h", | 128 "testsupport/frame_writer.h", |
| 119 "testsupport/iosfileutils.mm", | |
| 120 "testsupport/metrics/video_metrics.cc", | 129 "testsupport/metrics/video_metrics.cc", |
| 121 "testsupport/metrics/video_metrics.h", | 130 "testsupport/metrics/video_metrics.h", |
| 122 "testsupport/mock/mock_frame_reader.h", | 131 "testsupport/mock/mock_frame_reader.h", |
| 123 "testsupport/mock/mock_frame_writer.h", | 132 "testsupport/mock/mock_frame_writer.h", |
| 124 "testsupport/packet_reader.cc", | 133 "testsupport/packet_reader.cc", |
| 125 "testsupport/packet_reader.h", | 134 "testsupport/packet_reader.h", |
| 126 "testsupport/perf_test.cc", | 135 "testsupport/perf_test.cc", |
| 127 "testsupport/perf_test.h", | 136 "testsupport/perf_test.h", |
| 128 "testsupport/trace_to_stderr.cc", | 137 "testsupport/trace_to_stderr.cc", |
| 129 "testsupport/trace_to_stderr.h", | 138 "testsupport/trace_to_stderr.h", |
| 130 ] | 139 ] |
| 131 | 140 |
| 132 deps = [ | 141 deps = [ |
| 133 ":video_test_common", | 142 ":video_test_common", |
| 134 "../base:gtest_prod", | 143 "../base:gtest_prod", |
| 135 "../base:rtc_base_approved", | 144 "../base:rtc_base_approved", |
| 136 "../common_video", | 145 "../common_video", |
| 137 "../system_wrappers", | 146 "../system_wrappers", |
| 138 "//testing/gmock", | 147 "//testing/gmock", |
| 139 "//testing/gtest", | 148 "//testing/gtest", |
| 140 ] | 149 ] |
| 141 | 150 |
| 151 public_deps = [ |
| 152 ":fileutils", |
| 153 ] |
| 154 |
| 142 if (!build_with_chromium && is_clang) { | 155 if (!build_with_chromium && is_clang) { |
| 143 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 156 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 144 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 157 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 145 } | 158 } |
| 146 | 159 |
| 147 if (is_ios) { | |
| 148 configs += [ "//build/config/compiler:enable_arc" ] | |
| 149 } | |
| 150 | |
| 151 if (is_android) { | 160 if (is_android) { |
| 152 deps += [ "//base:base" ] | 161 deps += [ "//base:base" ] |
| 153 data = [ | 162 data = [ |
| 154 "../build/android/test_runner.py", | 163 "../build/android/test_runner.py", |
| 155 ] | 164 ] |
| 156 } | 165 } |
| 157 | 166 |
| 158 if (rtc_use_memcheck) { | 167 if (rtc_use_memcheck) { |
| 159 data = valgrind_webrtc_dependencies | 168 data = valgrind_webrtc_dependencies |
| 160 } | 169 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 } | 202 } |
| 194 | 203 |
| 195 rtc_test("test_support_unittests") { | 204 rtc_test("test_support_unittests") { |
| 196 deps = [] | 205 deps = [] |
| 197 sources = [ | 206 sources = [ |
| 198 "fake_network_pipe_unittest.cc", | 207 "fake_network_pipe_unittest.cc", |
| 199 "frame_generator_unittest.cc", | 208 "frame_generator_unittest.cc", |
| 200 "rtp_file_reader_unittest.cc", | 209 "rtp_file_reader_unittest.cc", |
| 201 "rtp_file_writer_unittest.cc", | 210 "rtp_file_writer_unittest.cc", |
| 202 "testsupport/always_passing_unittest.cc", | 211 "testsupport/always_passing_unittest.cc", |
| 203 "testsupport/fileutils_unittest.cc", | |
| 204 "testsupport/frame_reader_unittest.cc", | 212 "testsupport/frame_reader_unittest.cc", |
| 205 "testsupport/frame_writer_unittest.cc", | 213 "testsupport/frame_writer_unittest.cc", |
| 206 "testsupport/metrics/video_metrics_unittest.cc", | 214 "testsupport/metrics/video_metrics_unittest.cc", |
| 207 "testsupport/packet_reader_unittest.cc", | 215 "testsupport/packet_reader_unittest.cc", |
| 208 "testsupport/perf_test_unittest.cc", | 216 "testsupport/perf_test_unittest.cc", |
| 209 "testsupport/unittest_utils.h", | 217 "testsupport/unittest_utils.h", |
| 210 ] | 218 ] |
| 211 | 219 |
| 212 # TODO(jschuh): Bug 1348: fix this warning. | 220 # TODO(jschuh): Bug 1348: fix this warning. |
| 213 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 221 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| (...skipping 11 matching lines...) Expand all Loading... |
| 225 if (is_android) { | 233 if (is_android) { |
| 226 deps += [ "//testing/android/native_test:native_test_support" ] | 234 deps += [ "//testing/android/native_test:native_test_support" ] |
| 227 shard_timeout = 900 | 235 shard_timeout = 900 |
| 228 } | 236 } |
| 229 | 237 |
| 230 if (is_ios) { | 238 if (is_ios) { |
| 231 deps += [ ":test_support_unittests_bundle_data" ] | 239 deps += [ ":test_support_unittests_bundle_data" ] |
| 232 } | 240 } |
| 233 | 241 |
| 234 deps += [ | 242 deps += [ |
| 243 ":fileutils_unittests", |
| 235 ":test_common", | 244 ":test_common", |
| 236 ":test_main", | 245 ":test_main", |
| 237 "../modules/video_capture", | 246 "../modules/video_capture", |
| 238 "//testing/gmock", | 247 "//testing/gmock", |
| 239 "//testing/gtest", | 248 "//testing/gtest", |
| 240 ] | 249 ] |
| 241 } | 250 } |
| 251 rtc_source_set("fileutils_unittests") { |
| 252 testonly = true |
| 253 sources = [ |
| 254 "testsupport/fileutils_unittest.cc", |
| 255 ] |
| 256 deps = [ |
| 257 ":fileutils", |
| 258 "//testing/gmock", |
| 259 "//testing/gtest", |
| 260 ] |
| 261 } |
| 242 | 262 |
| 243 rtc_source_set("test_common") { | 263 rtc_source_set("test_common") { |
| 244 testonly = true | 264 testonly = true |
| 245 sources = [ | 265 sources = [ |
| 246 "call_test.cc", | 266 "call_test.cc", |
| 247 "call_test.h", | 267 "call_test.h", |
| 248 "configurable_frame_size_encoder.cc", | 268 "configurable_frame_size_encoder.cc", |
| 249 "configurable_frame_size_encoder.h", | 269 "configurable_frame_size_encoder.h", |
| 250 "constants.cc", | 270 "constants.cc", |
| 251 "constants.h", | 271 "constants.h", |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 397 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 378 } | 398 } |
| 379 | 399 |
| 380 deps = [ | 400 deps = [ |
| 381 ":test_support", | 401 ":test_support", |
| 382 ":video_test_common", | 402 ":video_test_common", |
| 383 "../modules/media_file", | 403 "../modules/media_file", |
| 384 "//testing/gtest", | 404 "//testing/gtest", |
| 385 ] | 405 ] |
| 386 } | 406 } |
| OLD | NEW |