Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6586)

Unified Diff: chrome/common/media_router/BUILD.gn

Issue 2771413003: Move c/b/media/router/mojo/*.mojom to chrome/common/media_router/mojo/*.mojom (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/media_router/BUILD.gn
diff --git a/chrome/common/media_router/BUILD.gn b/chrome/common/media_router/BUILD.gn
index 8e5f0bafb3f782e6ab8232104b8a36c3dc5f6afb..ac867ed6765aa9d1a4868d9507e6ee8d21da821c 100644
--- a/chrome/common/media_router/BUILD.gn
+++ b/chrome/common/media_router/BUILD.gn
@@ -2,14 +2,63 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import("//mojo/public/tools/bindings/mojom.gni")
+static_library("router") {
+ public_deps = [
+ "mojo:media_controller",
+ "//base:base",
+ "//base:i18n",
+ "//net:net",
+ "//third_party/icu",
+ "//url:url",
+ ]
-mojom("interfaces") {
sources = [
- "dial_device_description_parser.mojom",
+ "discovery/media_sink_internal.cc",
+ "discovery/media_sink_internal.h",
+ "issue.cc",
+ "issue.h",
+ "media_route.cc",
+ "media_route.h",
+ "media_sink.cc",
+ "media_sink.h",
+ "media_source.cc",
+ "media_source.h",
+ "media_source_helper.cc",
+ "media_source_helper.h",
+ "media_status.cc",
+ "media_status.h",
+ "route_message.cc",
+ "route_message.h",
+ "route_request_result.cc",
+ "route_request_result.h",
]
+ if (!is_android) {
+ public_deps += [ "mojo:media_router" ]
+ }
+}
+
+source_set("unit_tests") {
+ testonly = true
public_deps = [
- "//mojo/common:common_custom_types",
+ ":router",
+ "//base/test:test_support",
+ "//testing/gmock",
+ "//testing/gtest",
+ "//third_party/icu",
]
+
+ sources = [
+ "discovery/media_sink_internal_unittest.cc",
+ "issue_unittest.cc",
+ "media_route_unittest.cc",
+ "media_sink_unittest.cc",
+ "media_source_helper_unittest.cc",
+ "media_source_unittest.cc",
+ ]
+
+ if (!is_android) {
+ public_deps += [ "mojo:media_router_test_interfaces" ]
+ sources += [ "mojo/media_router_struct_traits_unittest.cc" ]
+ }
}
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/common/media_router/OWNERS » ('j') | chrome/test/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698