forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.gn
106 lines (95 loc) · 3.08 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//chromecast/chromecast.gni")
import("//testing/test.gni")
# Targets may depend on this to bring in every CMA component.
group("cma") {
public_deps = [
"//chromecast/media/cma/backend",
"//chromecast/media/cma/base",
"//chromecast/media/cma/pipeline",
]
}
cast_source_set("test_support") {
testonly = true
sources = [
"test/frame_generator_for_test.cc",
"test/frame_generator_for_test.h",
"test/frame_segmenter_for_test.cc",
"test/frame_segmenter_for_test.h",
"test/mock_cma_backend_factory.cc",
"test/mock_cma_backend_factory.h",
"test/mock_frame_consumer.cc",
"test/mock_frame_consumer.h",
"test/mock_frame_provider.cc",
"test/mock_frame_provider.h",
"test/mock_multiroom_manager.h",
]
deps = [
"//base",
"//chromecast/common/mojom",
"//chromecast/media/api",
"//chromecast/media/cma/backend",
"//chromecast/media/cma/base",
"//media:test_support",
"//testing/gmock",
"//testing/gtest",
"//ui/gfx/geometry",
]
if (is_cast_audio_only) {
deps += [ "//chromecast/media/cma/backend:null_video" ]
}
}
cast_source_set("unittests") {
testonly = true
sources = [
"backend/audio_video_pipeline_device_unittest.cc",
"backend/multizone_backend_unittest.cc",
"base/balanced_media_task_runner_unittest.cc",
"base/buffering_controller_unittest.cc",
"base/buffering_frame_provider_unittest.cc",
"base/decoder_buffer_adapter_unittest.cc",
"base/demuxer_stream_adapter_unittest.cc",
"base/demuxer_stream_for_test.cc",
"base/demuxer_stream_for_test.h",
"base/multi_demuxer_stream_adapter_unittest.cc",
"pipeline/audio_video_pipeline_impl_unittest.cc",
]
deps = [
":test_support",
"//base",
"//base/test:test_support",
"//chromecast/base",
"//chromecast/media",
"//chromecast/media:libcast_media",
"//chromecast/media/api",
"//chromecast/media/api:test_support",
"//media",
"//testing/gmock",
"//testing/gtest",
]
# Building the required proto files here cause a linker issue on
# Android because both protobuf_full and protobuf_lite get included.
if (!is_android) {
sources += [
"backend/proxy/audio_decoder_pipeline_node_unittest.cc",
"backend/proxy/buffer_id_manager_unittest.cc",
"backend/proxy/cma_backend_proxy_unittest.cc",
"backend/proxy/media_pipeline_buffer_extension_unittest.cc",
"backend/proxy/proxy_call_translator_unittest.cc",
"backend/proxy/push_buffer_pending_handler_unittest.cc",
"backend/proxy/push_buffer_queue_unittest.cc",
]
deps += [
"//chromecast/media/cma/backend/proxy",
"//chromecast/media/cma/backend/proxy:cast_audio_decoder_service_proto",
# TODO(b/174874712): Remove the explicit gRPC dependency.
"//third_party/grpc:grpc++",
]
}
if (enable_video_with_mixed_audio) {
defines = [ "ENABLE_VIDEO_WITH_MIXED_AUDIO" ]
}
data = [ "//media/test/data/" ]
}