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

Side by Side Diff: media/audio/BUILD.gn

Issue 551933002: Mark gtest and gmock as testonly in GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@testonly
Patch Set: android Created 6 years, 3 months 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 | « media/BUILD.gn ('k') | media/base/BUILD.gn » ('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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//media/media_options.gni") 5 import("//media/media_options.gni")
6 6
7 # When libpulse is not directly linked, use stubs to allow for dlopening of the 7 # When libpulse is not directly linked, use stubs to allow for dlopening of the
8 # binary. 8 # binary.
9 if (!linux_link_pulseaudio) { 9 if (!linux_link_pulseaudio) {
10 action("pulse_generate_stubs") { 10 action("pulse_generate_stubs") {
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 } else { 229 } else {
230 # TODO(ajwong): Technically, this dl should go in the action. 230 # TODO(ajwong): Technically, this dl should go in the action.
231 libs += [ "dl" ] 231 libs += [ "dl" ]
232 deps += [ ":pulse_generate_stubs" ] 232 deps += [ ":pulse_generate_stubs" ]
233 sources += get_target_outputs(":pulse_generate_stubs") 233 sources += get_target_outputs(":pulse_generate_stubs")
234 } 234 }
235 } 235 }
236 } 236 }
237 237
238 source_set("test_support") { 238 source_set("test_support") {
239 testonly = true
239 sources = [ 240 sources = [
240 "clockless_audio_sink.cc", 241 "clockless_audio_sink.cc",
241 "clockless_audio_sink.h", 242 "clockless_audio_sink.h",
242 "mock_audio_manager.cc", 243 "mock_audio_manager.cc",
243 "mock_audio_manager.h", 244 "mock_audio_manager.h",
244 "mock_audio_source_callback.cc", 245 "mock_audio_source_callback.cc",
245 "mock_audio_source_callback.h", 246 "mock_audio_source_callback.h",
246 "test_audio_input_controller_factory.cc", 247 "test_audio_input_controller_factory.cc",
247 "test_audio_input_controller_factory.h", 248 "test_audio_input_controller_factory.h",
248 ] 249 ]
249 deps = [ "//testing/gmock" ] 250 deps = [ "//testing/gmock" ]
250 configs += [ "//media:media_config" ] 251 configs += [ "//media:media_config" ]
251 } 252 }
252 253
253 source_set("unittests") { 254 source_set("unittests") {
255 testonly = true
254 sources = [ 256 sources = [
255 "audio_input_controller_unittest.cc", 257 "audio_input_controller_unittest.cc",
256 "audio_input_unittest.cc", 258 "audio_input_unittest.cc",
257 "audio_low_latency_input_output_unittest.cc", 259 "audio_low_latency_input_output_unittest.cc",
258 "audio_manager_unittest.cc", 260 "audio_manager_unittest.cc",
259 "audio_output_controller_unittest.cc", 261 "audio_output_controller_unittest.cc",
260 "audio_output_device_unittest.cc", 262 "audio_output_device_unittest.cc",
261 "audio_output_proxy_unittest.cc", 263 "audio_output_proxy_unittest.cc",
262 "audio_parameters_unittest.cc", 264 "audio_parameters_unittest.cc",
263 "audio_power_monitor_unittest.cc", 265 "audio_power_monitor_unittest.cc",
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 "win/core_audio_util_win_unittest.cc", 319 "win/core_audio_util_win_unittest.cc",
318 ] 320 ]
319 } 321 }
320 322
321 if (use_alsa) { 323 if (use_alsa) {
322 sources += [ 324 sources += [
323 "alsa/alsa_output_unittest.cc", 325 "alsa/alsa_output_unittest.cc",
324 ] 326 ]
325 } 327 }
326 } 328 }
OLDNEW
« no previous file with comments | « media/BUILD.gn ('k') | media/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698