OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("//chromecast/chromecast.gni") | 5 import("//chromecast/chromecast.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 # Targets may depend on this to bring in every CMA component. | 8 # Targets may depend on this to bring in every CMA component. |
9 group("cma") { | 9 group("cma") { |
10 public_deps = [ | 10 public_deps = [ |
11 "//chromecast/media/cma/backend", | 11 "//chromecast/media/cma/backend", |
12 "//chromecast/media/cma/base", | 12 "//chromecast/media/cma/base", |
13 "//chromecast/media/cma/pipeline", | 13 "//chromecast/media/cma/pipeline", |
14 ] | 14 ] |
15 } | 15 } |
16 | 16 |
17 source_set("unittests") { | 17 source_set("test_support") { |
18 testonly = true | 18 testonly = true |
19 sources = [ | 19 sources = [ |
20 "backend/audio_video_pipeline_device_unittest.cc", | |
21 "base/balanced_media_task_runner_unittest.cc", | |
22 "base/buffering_controller_unittest.cc", | |
23 "base/buffering_frame_provider_unittest.cc", | |
24 "base/decoder_buffer_adapter_unittest.cc", | |
25 "base/demuxer_stream_adapter_unittest.cc", | |
26 "base/demuxer_stream_for_test.cc", | |
27 "base/demuxer_stream_for_test.h", | |
28 "base/multi_demuxer_stream_adapter_unittest.cc", | |
29 "pipeline/audio_video_pipeline_impl_unittest.cc", | |
30 "test/frame_generator_for_test.cc", | 20 "test/frame_generator_for_test.cc", |
31 "test/frame_generator_for_test.h", | 21 "test/frame_generator_for_test.h", |
32 "test/frame_segmenter_for_test.cc", | 22 "test/frame_segmenter_for_test.cc", |
33 "test/frame_segmenter_for_test.h", | 23 "test/frame_segmenter_for_test.h", |
34 "test/mock_frame_consumer.cc", | 24 "test/mock_frame_consumer.cc", |
35 "test/mock_frame_consumer.h", | 25 "test/mock_frame_consumer.h", |
36 "test/mock_frame_provider.cc", | 26 "test/mock_frame_provider.cc", |
37 "test/mock_frame_provider.h", | 27 "test/mock_frame_provider.h", |
38 "test/mock_media_pipeline_backend.cc", | 28 "test/mock_media_pipeline_backend.cc", |
39 "test/mock_media_pipeline_backend.h", | 29 "test/mock_media_pipeline_backend.h", |
| 30 "test/mock_media_pipeline_backend_factory.cc", |
| 31 "test/mock_media_pipeline_backend_factory.h", |
40 ] | 32 ] |
41 | 33 |
42 deps = [ | 34 deps = [ |
43 "//base", | 35 "//base", |
44 "//base:i18n", | |
45 "//base/test:test_support", | |
46 "//chromecast/base", | |
47 "//chromecast/base/metrics:test_support", | |
48 "//chromecast/common/media:interfaces", | |
49 "//chromecast/media", | |
50 "//chromecast/media/audio", | |
51 "//chromecast/media/cma/backend", | 36 "//chromecast/media/cma/backend", |
52 "//chromecast/media/cma/base", | 37 "//chromecast/media/cma/base", |
53 "//chromecast/media/cma/pipeline", | |
54 "//chromecast/public", | |
55 "//media", | 38 "//media", |
56 "//media/base:test_support", | 39 "//media/base:test_support", |
57 "//testing/gmock", | 40 "//testing/gmock", |
58 "//testing/gtest", | 41 "//testing/gtest", |
59 "//ui/display", | |
60 "//ui/gfx/geometry", | 42 "//ui/gfx/geometry", |
61 ] | 43 ] |
| 44 } |
| 45 |
| 46 source_set("unittests") { |
| 47 testonly = true |
| 48 sources = [ |
| 49 "backend/audio_video_pipeline_device_unittest.cc", |
| 50 "base/balanced_media_task_runner_unittest.cc", |
| 51 "base/buffering_controller_unittest.cc", |
| 52 "base/buffering_frame_provider_unittest.cc", |
| 53 "base/decoder_buffer_adapter_unittest.cc", |
| 54 "base/demuxer_stream_adapter_unittest.cc", |
| 55 "base/demuxer_stream_for_test.cc", |
| 56 "base/demuxer_stream_for_test.h", |
| 57 "base/multi_demuxer_stream_adapter_unittest.cc", |
| 58 "pipeline/audio_video_pipeline_impl_unittest.cc", |
| 59 ] |
| 60 |
| 61 deps = [ |
| 62 ":test_support", |
| 63 "//base", |
| 64 "//base/test:test_support", |
| 65 "//chromecast/base", |
| 66 "//chromecast/media", |
| 67 "//media", |
| 68 "//testing/gmock", |
| 69 "//testing/gtest", |
| 70 ] |
62 | 71 |
63 data = [ | 72 data = [ |
64 "//media/test/data/", | 73 "//media/test/data/", |
65 ] | 74 ] |
66 | 75 |
67 # MultizoneBackendTest verifies rendering delay reported by the backend. | 76 # MultizoneBackendTest verifies rendering delay reported by the backend. |
68 # Since rendering delay is optional on video platforms, enable this test | 77 # Since rendering delay is optional on video platforms, enable this test |
69 # on audio devices only. | 78 # on audio devices only. |
70 if (is_cast_audio_only && !is_cast_desktop_build) { | 79 if (is_cast_audio_only && !is_cast_desktop_build) { |
71 sources += [ "backend/multizone_backend_unittest.cc" ] | 80 sources += [ "backend/multizone_backend_unittest.cc" ] |
72 } | 81 } |
73 } | 82 } |
OLD | NEW |