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 | 5 |
6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 static_library("router") { | 9 static_library("router") { |
10 deps = [ | 10 deps = [ |
11 "//base", | 11 "//base", |
12 "//chrome/common:constants", | 12 "//chrome/common:constants", |
13 "//components/keyed_service/content", | 13 "//components/keyed_service/content", |
14 "//components/keyed_service/core", | 14 "//components/keyed_service/core", |
15 "//content/public/browser", | 15 "//content/public/browser", |
16 "//content/public/common", | 16 "//content/public/common", |
17 "//third_party/icu", | 17 "//third_party/icu", |
18 "//url", | 18 "//url", |
19 ] | 19 ] |
20 sources = [ | 20 sources = [ |
21 "browser_presentation_connection_proxy.cc", | 21 "browser_presentation_connection_proxy.cc", |
22 "browser_presentation_connection_proxy.h", | 22 "browser_presentation_connection_proxy.h", |
23 "create_presentation_connection_request.cc", | 23 "create_presentation_connection_request.cc", |
24 "create_presentation_connection_request.h", | 24 "create_presentation_connection_request.h", |
| 25 "discovery/media_sink_internal.cc", |
| 26 "discovery/media_sink_internal.h", |
25 "issue.cc", | 27 "issue.cc", |
26 "issue.h", | 28 "issue.h", |
27 "issue_manager.cc", | 29 "issue_manager.cc", |
28 "issue_manager.h", | 30 "issue_manager.h", |
29 "issues_observer.cc", | 31 "issues_observer.cc", |
30 "issues_observer.h", | 32 "issues_observer.h", |
31 "media_route.cc", | 33 "media_route.cc", |
32 "media_route.h", | 34 "media_route.h", |
33 "media_router.h", | 35 "media_router.h", |
34 "media_router_base.cc", | 36 "media_router_base.cc", |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 } | 99 } |
98 } | 100 } |
99 | 101 |
100 mojom("mojo_bindings") { | 102 mojom("mojo_bindings") { |
101 sources = [ | 103 sources = [ |
102 "mojo/media_router.mojom", | 104 "mojo/media_router.mojom", |
103 ] | 105 ] |
104 | 106 |
105 public_deps = [ | 107 public_deps = [ |
106 "//mojo/common:common_custom_types", | 108 "//mojo/common:common_custom_types", |
| 109 "//url/mojo:url_mojom_gurl", |
107 "//url/mojo:url_mojom_origin", | 110 "//url/mojo:url_mojom_origin", |
108 ] | 111 ] |
109 } | 112 } |
110 | 113 |
| 114 mojom("mojo_test_interfaces") { |
| 115 sources = [ |
| 116 "mojo/media_router_traits_test_service.mojom", |
| 117 ] |
| 118 |
| 119 public_deps = [ |
| 120 ":mojo_bindings", |
| 121 ] |
| 122 } |
| 123 |
111 static_library("test_support") { | 124 static_library("test_support") { |
112 testonly = true | 125 testonly = true |
113 deps = [ | 126 deps = [ |
114 ":router", | 127 ":router", |
115 "//chrome/test:test_support", | 128 "//chrome/test:test_support", |
116 "//testing/gmock", | 129 "//testing/gmock", |
117 ] | 130 ] |
118 sources = [ | 131 sources = [ |
119 "mock_media_router.cc", | 132 "mock_media_router.cc", |
120 "mock_media_router.h", | 133 "mock_media_router.h", |
121 "mock_screen_availability_listener.cc", | 134 "mock_screen_availability_listener.cc", |
122 "mock_screen_availability_listener.h", | 135 "mock_screen_availability_listener.h", |
123 "test_helper.cc", | 136 "test_helper.cc", |
124 "test_helper.h", | 137 "test_helper.h", |
125 ] | 138 ] |
126 | 139 |
127 if (!is_android) { | 140 if (!is_android) { |
128 deps += [ | 141 deps += [ |
129 ":mojo_bindings", | 142 ":mojo_bindings", |
| 143 ":mojo_test_interfaces", |
130 "//extensions/common", | 144 "//extensions/common", |
131 ] | 145 ] |
132 sources += [ | 146 sources += [ |
133 "mojo/media_router_mojo_test.cc", | 147 "mojo/media_router_mojo_test.cc", |
134 "mojo/media_router_mojo_test.h", | 148 "mojo/media_router_mojo_test.h", |
135 ] | 149 ] |
136 } | 150 } |
137 } | 151 } |
OLD | NEW |