Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: webrtc/test/BUILD.gn

Issue 2548713003: Refactor fileutils.cc/h and fileutils_unittests.cc into their own targets. (Closed)
Patch Set: Fix windows compile error. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/test/testsupport/fileutils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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",
120 "testsupport/metrics/video_metrics.cc", 125 "testsupport/metrics/video_metrics.cc",
121 "testsupport/metrics/video_metrics.h", 126 "testsupport/metrics/video_metrics.h",
122 "testsupport/mock/mock_frame_reader.h", 127 "testsupport/mock/mock_frame_reader.h",
123 "testsupport/mock/mock_frame_writer.h", 128 "testsupport/mock/mock_frame_writer.h",
124 "testsupport/packet_reader.cc", 129 "testsupport/packet_reader.cc",
125 "testsupport/packet_reader.h", 130 "testsupport/packet_reader.h",
126 "testsupport/perf_test.cc", 131 "testsupport/perf_test.cc",
127 "testsupport/perf_test.h", 132 "testsupport/perf_test.h",
128 "testsupport/trace_to_stderr.cc", 133 "testsupport/trace_to_stderr.cc",
129 "testsupport/trace_to_stderr.h", 134 "testsupport/trace_to_stderr.h",
130 ] 135 ]
131 136
132 deps = [ 137 deps = [
133 ":video_test_common", 138 ":video_test_common",
134 "../base:gtest_prod", 139 "../base:gtest_prod",
135 "../base:rtc_base_approved", 140 "../base:rtc_base_approved",
136 "../common_video", 141 "../common_video",
137 "../system_wrappers", 142 "../system_wrappers",
138 "//testing/gmock", 143 "//testing/gmock",
139 "//testing/gtest", 144 "//testing/gtest",
140 ] 145 ]
141 146
147 public_deps = [
148 ":fileutils",
149 ]
150
142 if (!build_with_chromium && is_clang) { 151 if (!build_with_chromium && is_clang) {
143 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 152 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
144 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 153 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
145 } 154 }
146 155
147 if (is_ios) { 156 if (is_ios) {
157 sources += [ "testsupport/iosfileutils.mm" ]
kjellander_webrtc 2016/12/03 17:06:36 Shouldn't this be in the fileutils target?
148 configs += [ "//build/config/compiler:enable_arc" ] 158 configs += [ "//build/config/compiler:enable_arc" ]
149 } 159 }
150 160
151 if (is_android) { 161 if (is_android) {
152 deps += [ "//base:base" ] 162 deps += [ "//base:base" ]
153 data = [ 163 data = [
154 "../build/android/test_runner.py", 164 "../build/android/test_runner.py",
155 ] 165 ]
156 } 166 }
157 167
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 } 203 }
194 204
195 rtc_test("test_support_unittests") { 205 rtc_test("test_support_unittests") {
196 deps = [] 206 deps = []
197 sources = [ 207 sources = [
198 "fake_network_pipe_unittest.cc", 208 "fake_network_pipe_unittest.cc",
199 "frame_generator_unittest.cc", 209 "frame_generator_unittest.cc",
200 "rtp_file_reader_unittest.cc", 210 "rtp_file_reader_unittest.cc",
201 "rtp_file_writer_unittest.cc", 211 "rtp_file_writer_unittest.cc",
202 "testsupport/always_passing_unittest.cc", 212 "testsupport/always_passing_unittest.cc",
203 "testsupport/fileutils_unittest.cc",
204 "testsupport/frame_reader_unittest.cc", 213 "testsupport/frame_reader_unittest.cc",
205 "testsupport/frame_writer_unittest.cc", 214 "testsupport/frame_writer_unittest.cc",
206 "testsupport/metrics/video_metrics_unittest.cc", 215 "testsupport/metrics/video_metrics_unittest.cc",
207 "testsupport/packet_reader_unittest.cc", 216 "testsupport/packet_reader_unittest.cc",
208 "testsupport/perf_test_unittest.cc", 217 "testsupport/perf_test_unittest.cc",
209 "testsupport/unittest_utils.h", 218 "testsupport/unittest_utils.h",
210 ] 219 ]
211 220
212 # TODO(jschuh): Bug 1348: fix this warning. 221 # TODO(jschuh): Bug 1348: fix this warning.
213 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 222 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
(...skipping 11 matching lines...) Expand all
225 if (is_android) { 234 if (is_android) {
226 deps += [ "//testing/android/native_test:native_test_support" ] 235 deps += [ "//testing/android/native_test:native_test_support" ]
227 shard_timeout = 900 236 shard_timeout = 900
228 } 237 }
229 238
230 if (is_ios) { 239 if (is_ios) {
231 deps += [ ":test_support_unittests_bundle_data" ] 240 deps += [ ":test_support_unittests_bundle_data" ]
232 } 241 }
233 242
234 deps += [ 243 deps += [
244 ":fileutils_unittests",
235 ":test_common", 245 ":test_common",
236 ":test_main", 246 ":test_main",
237 "../modules/video_capture", 247 "../modules/video_capture",
238 "//testing/gmock", 248 "//testing/gmock",
239 "//testing/gtest", 249 "//testing/gtest",
240 ] 250 ]
241 } 251 }
252 rtc_source_set("fileutils_unittests") {
253 testonly = true
254 sources = [
255 "testsupport/fileutils_unittest.cc",
256 ]
257 deps = [
258 ":fileutils",
259 "//testing/gmock",
260 "//testing/gtest",
261 ]
262 }
242 263
243 rtc_source_set("test_common") { 264 rtc_source_set("test_common") {
244 testonly = true 265 testonly = true
245 sources = [ 266 sources = [
246 "call_test.cc", 267 "call_test.cc",
247 "call_test.h", 268 "call_test.h",
248 "configurable_frame_size_encoder.cc", 269 "configurable_frame_size_encoder.cc",
249 "configurable_frame_size_encoder.h", 270 "configurable_frame_size_encoder.h",
250 "constants.cc", 271 "constants.cc",
251 "constants.h", 272 "constants.h",
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 398 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
378 } 399 }
379 400
380 deps = [ 401 deps = [
381 ":test_support", 402 ":test_support",
382 ":video_test_common", 403 ":video_test_common",
383 "../modules/media_file", 404 "../modules/media_file",
384 "//testing/gtest", 405 "//testing/gtest",
385 ] 406 ]
386 } 407 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/test/testsupport/fileutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698