| 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 ":mojo_bindings_common", | |
| 12 "//base", | 11 "//base", |
| 13 "//chrome/common:constants", | 12 "//chrome/common:constants", |
| 14 "//components/keyed_service/content", | 13 "//components/keyed_service/content", |
| 15 "//components/keyed_service/core", | 14 "//components/keyed_service/core", |
| 16 "//content/public/browser", | 15 "//content/public/browser", |
| 17 "//content/public/common", | 16 "//content/public/common", |
| 17 "//media/mojo/interfaces:media_controller", |
| 18 "//net", | 18 "//net", |
| 19 "//third_party/icu", | 19 "//third_party/icu", |
| 20 "//url", | 20 "//url", |
| 21 ] | 21 ] |
| 22 sources = [ | 22 sources = [ |
| 23 "browser_presentation_connection_proxy.cc", | 23 "browser_presentation_connection_proxy.cc", |
| 24 "browser_presentation_connection_proxy.h", | 24 "browser_presentation_connection_proxy.h", |
| 25 "create_presentation_connection_request.cc", | 25 "create_presentation_connection_request.cc", |
| 26 "create_presentation_connection_request.h", | 26 "create_presentation_connection_request.h", |
| 27 "discovery/media_sink_internal.cc", | 27 "discovery/media_sink_internal.cc", |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 "route_message.cc", | 77 "route_message.cc", |
| 78 "route_message.h", | 78 "route_message.h", |
| 79 "route_message_observer.cc", | 79 "route_message_observer.cc", |
| 80 "route_message_observer.h", | 80 "route_message_observer.h", |
| 81 "route_request_result.cc", | 81 "route_request_result.cc", |
| 82 "route_request_result.h", | 82 "route_request_result.h", |
| 83 ] | 83 ] |
| 84 | 84 |
| 85 if (!is_android) { | 85 if (!is_android) { |
| 86 deps += [ | 86 deps += [ |
| 87 ":mojo_bindings", | |
| 88 "discovery", | 87 "discovery", |
| 89 "//extensions/browser", | 88 "//extensions/browser", |
| 89 "//media/mojo/interfaces:media_router", |
| 90 "//mojo/public/cpp/bindings", | 90 "//mojo/public/cpp/bindings", |
| 91 ] | 91 ] |
| 92 sources += [ | 92 sources += [ |
| 93 # TODO(crbug.com/646627): Move media_router_ui_service* to | 93 # TODO(crbug.com/646627): Move media_router_ui_service* to |
| 94 # chrome/browser/ui/. | 94 # chrome/browser/ui/. |
| 95 "media_router_ui_service.cc", | 95 "media_router_ui_service.cc", |
| 96 "media_router_ui_service.h", | 96 "media_router_ui_service.h", |
| 97 "media_router_ui_service_factory.cc", | 97 "media_router_ui_service_factory.cc", |
| 98 "media_router_ui_service_factory.h", | 98 "media_router_ui_service_factory.h", |
| 99 "mojo/media_route_provider_util_win.cc", | 99 "mojo/media_route_provider_util_win.cc", |
| 100 "mojo/media_route_provider_util_win.h", | 100 "mojo/media_route_provider_util_win.h", |
| 101 "mojo/media_router_mojo_impl.cc", | 101 "mojo/media_router_mojo_impl.cc", |
| 102 "mojo/media_router_mojo_impl.h", | 102 "mojo/media_router_mojo_impl.h", |
| 103 "mojo/media_router_mojo_metrics.cc", | 103 "mojo/media_router_mojo_metrics.cc", |
| 104 "mojo/media_router_mojo_metrics.h", | 104 "mojo/media_router_mojo_metrics.h", |
| 105 ] | 105 ] |
| 106 } | 106 } |
| 107 } | 107 } |
| 108 | 108 |
| 109 mojom("mojo_bindings_common") { | |
| 110 sources = [ | |
| 111 "mojo/media_controller.mojom", | |
| 112 "mojo/media_status.mojom", | |
| 113 ] | |
| 114 | |
| 115 public_deps = [ | |
| 116 "//mojo/common:common_custom_types", | |
| 117 ] | |
| 118 } | |
| 119 | |
| 120 mojom("mojo_bindings") { | |
| 121 sources = [ | |
| 122 "mojo/media_router.mojom", | |
| 123 ] | |
| 124 | |
| 125 public_deps = [ | |
| 126 ":mojo_bindings_common", | |
| 127 "//mojo/common:common_custom_types", | |
| 128 "//net/interfaces:interfaces", | |
| 129 "//url/mojo:url_mojom_gurl", | |
| 130 "//url/mojo:url_mojom_origin", | |
| 131 ] | |
| 132 } | |
| 133 | |
| 134 mojom("mojo_test_interfaces") { | |
| 135 sources = [ | |
| 136 "mojo/media_router_traits_test_service.mojom", | |
| 137 ] | |
| 138 | |
| 139 public_deps = [ | |
| 140 ":mojo_bindings", | |
| 141 ] | |
| 142 } | |
| 143 | |
| 144 static_library("test_support") { | 109 static_library("test_support") { |
| 145 testonly = true | 110 testonly = true |
| 146 deps = [ | 111 deps = [ |
| 147 ":router", | 112 ":router", |
| 148 "//chrome/test:test_support", | 113 "//chrome/test:test_support", |
| 149 "//testing/gmock", | 114 "//testing/gmock", |
| 150 ] | 115 ] |
| 151 sources = [ | 116 sources = [ |
| 152 "mock_media_router.cc", | 117 "mock_media_router.cc", |
| 153 "mock_media_router.h", | 118 "mock_media_router.h", |
| 154 "mock_screen_availability_listener.cc", | 119 "mock_screen_availability_listener.cc", |
| 155 "mock_screen_availability_listener.h", | 120 "mock_screen_availability_listener.h", |
| 156 "test_helper.cc", | 121 "test_helper.cc", |
| 157 "test_helper.h", | 122 "test_helper.h", |
| 158 ] | 123 ] |
| 159 | 124 |
| 160 if (!is_android) { | 125 if (!is_android) { |
| 161 deps += [ | 126 deps += [ |
| 162 ":mojo_bindings", | |
| 163 ":mojo_test_interfaces", | |
| 164 "//extensions/common", | 127 "//extensions/common", |
| 128 "//media/mojo/interfaces:media_router", |
| 129 "//media/mojo/interfaces:media_router_test_interfaces", |
| 165 ] | 130 ] |
| 166 sources += [ | 131 sources += [ |
| 167 "mojo/media_router_mojo_test.cc", | 132 "mojo/media_router_mojo_test.cc", |
| 168 "mojo/media_router_mojo_test.h", | 133 "mojo/media_router_mojo_test.h", |
| 169 ] | 134 ] |
| 170 } | 135 } |
| 171 } | 136 } |
| OLD | NEW |