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("//testing/test.gni") | 5 import("//testing/test.gni") |
6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
7 | 7 |
8 source_set("router") { | 8 source_set("router") { |
9 deps = [ | 9 deps = [ |
10 ":router_core", | 10 ":router_core", |
11 ":keyed_service_factories", | 11 ":keyed_service_factories", |
12 ] | 12 ] |
13 } | 13 } |
14 | 14 |
15 source_set("router_core") { | 15 source_set("router_core") { |
16 deps = [ | 16 deps = [ |
| 17 ":mojo_bindings", |
17 "//base", | 18 "//base", |
18 "//components/keyed_service/core", | 19 "//components/keyed_service/core", |
19 "//url", | 20 "//url", |
20 ] | 21 ] |
21 sources = [ | 22 sources = [ |
22 "issue.cc", | 23 "issue.cc", |
23 "issue.h", | 24 "issue.h", |
24 "issue_manager.cc", | 25 "issue_manager.cc", |
25 "issue_manager.h", | 26 "issue_manager.h", |
26 "issues_observer.h", | 27 "issues_observer.h", |
27 "media_route.cc", | 28 "media_route.cc", |
28 "media_route.h", | 29 "media_route.h", |
29 "media_route_id.h", | 30 "media_route_id.h", |
30 "media_router.h", | 31 "media_router.h", |
31 "media_router_impl.cc", | 32 "media_router_impl.cc", |
32 "media_router_impl.h", | 33 "media_router_impl.h", |
| 34 "media_router_mojo_impl.cc", |
| 35 "media_router_mojo_impl.h", |
| 36 "media_router_type_converters.cc", |
| 37 "media_router_type_converters.h", |
33 "media_routes_observer.cc", | 38 "media_routes_observer.cc", |
34 "media_routes_observer.h", | 39 "media_routes_observer.h", |
35 "media_sink.cc", | 40 "media_sink.cc", |
36 "media_sink.h", | 41 "media_sink.h", |
37 "media_sinks_observer.cc", | 42 "media_sinks_observer.cc", |
38 "media_sinks_observer.h", | 43 "media_sinks_observer.h", |
39 "media_source.cc", | 44 "media_source.cc", |
40 "media_source.h", | 45 "media_source.h", |
41 "media_source_helper.cc", | 46 "media_source_helper.cc", |
42 "media_source_helper.h", | 47 "media_source_helper.h", |
43 "route_id_manager.cc", | 48 "route_id_manager.cc", |
44 "route_id_manager.h", | 49 "route_id_manager.h", |
45 ] | 50 ] |
46 } | 51 } |
47 | 52 |
48 source_set("keyed_service_factories") { | 53 source_set("keyed_service_factories") { |
49 deps = [ | 54 deps = [ |
50 ":router_core", | 55 ":router_core", |
51 "//components/keyed_service/content", | 56 "//components/keyed_service/content", |
52 ] | 57 ] |
53 sources = [ | 58 sources = [ |
54 "media_router_impl_factory.cc", | 59 "media_router_impl_factory.cc", |
55 "media_router_impl_factory.h", | 60 "media_router_impl_factory.h", |
| 61 "media_router_mojo_impl_factory.cc", |
| 62 "media_router_mojo_impl_factory.h", |
56 ] | 63 ] |
57 } | 64 } |
58 | 65 |
59 source_set("unit_tests") { | 66 source_set("unit_tests") { |
60 testonly = true | 67 testonly = true |
61 deps = [ | 68 deps = [ |
62 ":router_core", | 69 ":router_core", |
63 "//base/test:test_support", | 70 "//base/test:test_support", |
64 "//testing/gmock", | 71 "//testing/gmock", |
65 "//testing/gtest", | 72 "//testing/gtest", |
(...skipping 15 matching lines...) Expand all Loading... |
81 # Optional standalone test binary, for faster isolated builds. | 88 # Optional standalone test binary, for faster isolated builds. |
82 test("unit_tests_main") { | 89 test("unit_tests_main") { |
83 deps = [ | 90 deps = [ |
84 ":unit_tests", | 91 ":unit_tests", |
85 "//testing/gmock:gmock_main", | 92 "//testing/gmock:gmock_main", |
86 ] | 93 ] |
87 sources = [ | 94 sources = [ |
88 ":unittest_files", | 95 ":unittest_files", |
89 ] | 96 ] |
90 } | 97 } |
OLD | NEW |