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 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 | |
| 115 rtc_source_set("fileutils_unittests") { | |
|
kjellander_webrtc
2016/12/02 14:40:40
Please move to below test_support_unittests
| |
| 116 testonly = true | |
| 117 sources = [ | |
| 118 "testsupport/fileutils_unittest.cc", | |
| 119 ] | |
| 120 deps = [ | |
| 121 ":default_fileutils", | |
| 122 "//testing/gmock", | |
| 123 "//testing/gtest", | |
| 124 ] | |
| 125 if (!build_with_chromium && is_clang) { | |
| 126 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
| 127 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
|
kjellander_webrtc
2016/12/02 14:40:40
Is this one needed? With just so few files, it wou
| |
| 128 } | |
| 129 } | |
| 130 | |
| 107 rtc_source_set("test_support") { | 131 rtc_source_set("test_support") { |
| 108 testonly = true | 132 testonly = true |
| 109 | 133 |
| 110 sources = [ | 134 sources = [ |
| 111 "gmock.h", | 135 "gmock.h", |
| 112 "gtest.h", | 136 "gtest.h", |
| 113 "testsupport/fileutils.cc", | |
| 114 "testsupport/fileutils.h", | |
| 115 "testsupport/frame_reader.cc", | 137 "testsupport/frame_reader.cc", |
| 116 "testsupport/frame_reader.h", | 138 "testsupport/frame_reader.h", |
| 117 "testsupport/frame_writer.cc", | 139 "testsupport/frame_writer.cc", |
| 118 "testsupport/frame_writer.h", | 140 "testsupport/frame_writer.h", |
| 119 "testsupport/iosfileutils.mm", | 141 "testsupport/iosfileutils.mm", |
| 120 "testsupport/metrics/video_metrics.cc", | 142 "testsupport/metrics/video_metrics.cc", |
| 121 "testsupport/metrics/video_metrics.h", | 143 "testsupport/metrics/video_metrics.h", |
| 122 "testsupport/mock/mock_frame_reader.h", | 144 "testsupport/mock/mock_frame_reader.h", |
| 123 "testsupport/mock/mock_frame_writer.h", | 145 "testsupport/mock/mock_frame_writer.h", |
| 124 "testsupport/packet_reader.cc", | 146 "testsupport/packet_reader.cc", |
| 125 "testsupport/packet_reader.h", | 147 "testsupport/packet_reader.h", |
| 126 "testsupport/perf_test.cc", | 148 "testsupport/perf_test.cc", |
| 127 "testsupport/perf_test.h", | 149 "testsupport/perf_test.h", |
| 128 "testsupport/trace_to_stderr.cc", | 150 "testsupport/trace_to_stderr.cc", |
| 129 "testsupport/trace_to_stderr.h", | 151 "testsupport/trace_to_stderr.h", |
| 130 ] | 152 ] |
| 131 | 153 |
| 132 deps = [ | 154 deps = [ |
| 155 ":fileutils", | |
| 133 ":video_test_common", | 156 ":video_test_common", |
| 134 "../base:gtest_prod", | 157 "../base:gtest_prod", |
| 135 "../base:rtc_base_approved", | 158 "../base:rtc_base_approved", |
| 136 "../common_video", | 159 "../common_video", |
| 137 "../system_wrappers", | 160 "../system_wrappers", |
| 138 "//testing/gmock", | 161 "//testing/gmock", |
| 139 "//testing/gtest", | 162 "//testing/gtest", |
| 140 ] | 163 ] |
| 141 | 164 |
| 142 if (!build_with_chromium && is_clang) { | 165 if (!build_with_chromium && is_clang) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 197 } | 220 } |
| 198 | 221 |
| 199 rtc_test("test_support_unittests") { | 222 rtc_test("test_support_unittests") { |
| 200 deps = [] | 223 deps = [] |
| 201 sources = [ | 224 sources = [ |
| 202 "fake_network_pipe_unittest.cc", | 225 "fake_network_pipe_unittest.cc", |
| 203 "frame_generator_unittest.cc", | 226 "frame_generator_unittest.cc", |
| 204 "rtp_file_reader_unittest.cc", | 227 "rtp_file_reader_unittest.cc", |
| 205 "rtp_file_writer_unittest.cc", | 228 "rtp_file_writer_unittest.cc", |
| 206 "testsupport/always_passing_unittest.cc", | 229 "testsupport/always_passing_unittest.cc", |
| 207 "testsupport/fileutils_unittest.cc", | |
| 208 "testsupport/frame_reader_unittest.cc", | 230 "testsupport/frame_reader_unittest.cc", |
| 209 "testsupport/frame_writer_unittest.cc", | 231 "testsupport/frame_writer_unittest.cc", |
| 210 "testsupport/metrics/video_metrics_unittest.cc", | 232 "testsupport/metrics/video_metrics_unittest.cc", |
| 211 "testsupport/packet_reader_unittest.cc", | 233 "testsupport/packet_reader_unittest.cc", |
| 212 "testsupport/perf_test_unittest.cc", | 234 "testsupport/perf_test_unittest.cc", |
| 213 "testsupport/unittest_utils.h", | 235 "testsupport/unittest_utils.h", |
| 214 ] | 236 ] |
| 215 | 237 |
| 216 # TODO(jschuh): Bug 1348: fix this warning. | 238 # TODO(jschuh): Bug 1348: fix this warning. |
| 217 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 239 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 229 if (is_android) { | 251 if (is_android) { |
| 230 deps += [ "//testing/android/native_test:native_test_support" ] | 252 deps += [ "//testing/android/native_test:native_test_support" ] |
| 231 shard_timeout = 900 | 253 shard_timeout = 900 |
| 232 } | 254 } |
| 233 | 255 |
| 234 if (is_ios) { | 256 if (is_ios) { |
| 235 deps += [ ":test_support_unittests_bundle_data" ] | 257 deps += [ ":test_support_unittests_bundle_data" ] |
| 236 } | 258 } |
| 237 | 259 |
| 238 deps += [ | 260 deps += [ |
| 261 ":fileutils_unittests", | |
| 239 ":test_common", | 262 ":test_common", |
| 240 ":test_main", | 263 ":test_main", |
| 241 "../modules/video_capture", | 264 "../modules/video_capture", |
| 242 "//testing/gmock", | 265 "//testing/gmock", |
| 243 "//testing/gtest", | 266 "//testing/gtest", |
| 244 ] | 267 ] |
| 245 } | 268 } |
| 246 | 269 |
| 247 rtc_source_set("test_common") { | 270 rtc_source_set("test_common") { |
| 248 testonly = true | 271 testonly = true |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 381 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 404 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 382 } | 405 } |
| 383 | 406 |
| 384 deps = [ | 407 deps = [ |
| 385 ":test_support", | 408 ":test_support", |
| 386 ":video_test_common", | 409 ":video_test_common", |
| 387 "../modules/media_file", | 410 "../modules/media_file", |
| 388 "//testing/gtest", | 411 "//testing/gtest", |
| 389 ] | 412 ] |
| 390 } | 413 } |
| OLD | NEW |