forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android: Split out media router from chrome_java
- Rename chrome/android/modules to chrome/android/features. - Create a new media_router java target that includes everything under org.chromium.chrome.browser.media.router.*. - Move these new files into //chrome/android/features/media_router. - Creating separate strings and resources. - Add new TextAppearance (with existing values) for presubmit. - Split out media router's java tests and junit tests. - Add java tests to chrome_public_test_apk. - Add junit tests to buildbots. - Add media_router's java target to all apks. Bug: 846440 Change-Id: I97b268da9184c3cea9315494112803c671f55b9a Reviewed-on: https://chromium-review.googlesource.com/c/1481740 Reviewed-by: Andrew Grieve <agrieve@chromium.org> Reviewed-by: John Budorick <jbudorick@chromium.org> Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org> Reviewed-by: Ted Choc <tedchoc@chromium.org> Reviewed-by: Theresa <twellington@chromium.org> Commit-Queue: Peter Wen <wnwen@chromium.org> Cr-Commit-Position: refs/heads/master@{#636024}
- Loading branch information
Peter Wen
authored and
Commit Bot
committed
Feb 27, 2019
1 parent
68320b8
commit 9ca6f4d
Showing
160 changed files
with
673 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,178 @@ | ||
# Copyright 2019 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
import("//build/config/android/config.gni") | ||
import("//build/config/android/rules.gni") | ||
import("//chrome/common/features.gni") | ||
|
||
android_library("java") { | ||
deps = [ | ||
":media_router_resources", | ||
"$google_play_services_package:google_play_services_base_java", | ||
"$google_play_services_package:google_play_services_basement_java", | ||
"$google_play_services_package:google_play_services_cast_framework_java", | ||
"$google_play_services_package:google_play_services_cast_java", | ||
"//base:base_java", | ||
"//chrome/android:chrome_java", | ||
"//services/media_session/public/cpp/android:media_session_java", | ||
"//third_party/android_deps:android_support_compat_java", | ||
"//third_party/android_deps:android_support_v7_appcompat_java", | ||
"//third_party/android_deps:android_support_v7_mediarouter_java", | ||
"//third_party/android_media:android_media_java", | ||
] | ||
java_files = [ | ||
"java/org/chromium/chrome/browser/media/router/BaseMediaRouteDialogManager.java", | ||
"java/org/chromium/chrome/browser/media/router/CastRequestIdGenerator.java", | ||
"java/org/chromium/chrome/browser/media/router/CastSessionUtil.java", | ||
"java/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java", | ||
"java/org/chromium/chrome/browser/media/router/ChromeMediaRouterDialogController.java", | ||
"java/org/chromium/chrome/browser/media/router/ClientRecord.java", | ||
"java/org/chromium/chrome/browser/media/router/DiscoveryCallback.java", | ||
"java/org/chromium/chrome/browser/media/router/DiscoveryDelegate.java", | ||
"java/org/chromium/chrome/browser/media/router/FlingingController.java", | ||
"java/org/chromium/chrome/browser/media/router/FlingingControllerBridge.java", | ||
"java/org/chromium/chrome/browser/media/router/MediaController.java", | ||
"java/org/chromium/chrome/browser/media/router/MediaRoute.java", | ||
"java/org/chromium/chrome/browser/media/router/MediaRouteChooserDialogManager.java", | ||
"java/org/chromium/chrome/browser/media/router/MediaRouteControllerDialogManager.java", | ||
"java/org/chromium/chrome/browser/media/router/MediaRouteDialogDelegate.java", | ||
"java/org/chromium/chrome/browser/media/router/MediaRouteDialogManager.java", | ||
"java/org/chromium/chrome/browser/media/router/MediaRouteManager.java", | ||
"java/org/chromium/chrome/browser/media/router/MediaRouteProvider.java", | ||
"java/org/chromium/chrome/browser/media/router/MediaSink.java", | ||
"java/org/chromium/chrome/browser/media/router/MediaSource.java", | ||
"java/org/chromium/chrome/browser/media/router/MediaStatusBridge.java", | ||
"java/org/chromium/chrome/browser/media/router/MediaStatusObserver.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/BaseNotificationController.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/BaseSessionController.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/CafBaseMediaRouteProvider.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/CafMediaRouteProvider.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/CafMessageHandler.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/CafNotificationController.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/CastMediaSource.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/CastOptionsProvider.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/CastSessionController.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/CastUtils.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/CreateRouteRequestInfo.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/remoting/CafExpandedControllerActivity.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/remoting/CafRemotingMediaRouteProvider.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/remoting/FlingingControllerAdapter.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/remoting/RemotingMediaSource.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/remoting/RemotingNotificationController.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/remoting/RemotingSessionController.java", | ||
"java/org/chromium/chrome/browser/media/router/caf/remoting/StreamPositionExtrapolator.java", | ||
] | ||
} | ||
|
||
android_library("test_java") { | ||
testonly = true | ||
|
||
java_files = [ | ||
"javatests/org/chromium/chrome/browser/media/router/MediaRouterIntegrationTest.java", | ||
"javatests/org/chromium/chrome/browser/media/router/MockMediaRouteProvider.java", | ||
] | ||
|
||
deps = [ | ||
":java", | ||
"//base:base_java", | ||
"//base:base_java_test_support", | ||
"//chrome/android:chrome_java", | ||
"//chrome/android:chrome_test_util_java", | ||
"//chrome/test/android:chrome_java_test_support", | ||
"//content/public/android:content_java", | ||
"//content/public/test/android:content_java_test_support", | ||
"//net/android:net_java_test_support", | ||
"//third_party/android_support_test_runner:runner_java", | ||
"//third_party/junit", | ||
] | ||
} | ||
|
||
junit_binary("media_router_junit_tests") { | ||
java_files = [ | ||
"junit/org/chromium/chrome/browser/media/router/ChromeMediaRouterRouteTest.java", | ||
"junit/org/chromium/chrome/browser/media/router/ChromeMediaRouterSinkObservationTest.java", | ||
"junit/org/chromium/chrome/browser/media/router/ChromeMediaRouterTestBase.java", | ||
"junit/org/chromium/chrome/browser/media/router/DiscoveryCallbackTest.java", | ||
"junit/org/chromium/chrome/browser/media/router/JSONTestUtils.java", | ||
"junit/org/chromium/chrome/browser/media/router/TestUtils.java", | ||
"junit/org/chromium/chrome/browser/media/router/caf/BaseSessionControllerTest.java", | ||
"junit/org/chromium/chrome/browser/media/router/caf/CafBaseMediaRouteProviderTest.java", | ||
"junit/org/chromium/chrome/browser/media/router/caf/CafMediaRouteProviderTest.java", | ||
"junit/org/chromium/chrome/browser/media/router/caf/CafMessageHandlerTest.java", | ||
"junit/org/chromium/chrome/browser/media/router/caf/CastSessionControllerTest.java", | ||
"junit/org/chromium/chrome/browser/media/router/caf/MediaRouterTestHelper.java", | ||
"junit/org/chromium/chrome/browser/media/router/caf/ShadowCastContext.java", | ||
"junit/org/chromium/chrome/browser/media/router/caf/ShadowCastMediaSource.java", | ||
"junit/org/chromium/chrome/browser/media/router/caf/ShadowMediaRouter.java", | ||
] | ||
|
||
deps = [ | ||
":java", | ||
"//base:base_java_test_support", | ||
"//base:base_junit_test_support", | ||
"//chrome/android:chrome_junit_test_support", | ||
] | ||
} | ||
|
||
# TODO(wnwen): Rename these to be more generic once https://crbug.com/935576 is fixed. | ||
android_resources("media_router_resources") { | ||
resource_dirs = [ "res" ] | ||
deps = [ | ||
":media_router_strings_grd", | ||
"//chrome/android:chrome_app_java_resources", | ||
"//third_party/android_media:android_media_resources", | ||
] | ||
custom_package = "org.chromium.chrome.media.router" | ||
} | ||
|
||
java_strings_grd("media_router_strings_grd") { | ||
defines = chrome_grit_defines | ||
grd_file = "strings/android_chrome_media_router_strings.grd" | ||
outputs = [ | ||
"values-am/android_chrome_media_router_strings.xml", | ||
"values-ar/android_chrome_media_router_strings.xml", | ||
"values-bg/android_chrome_media_router_strings.xml", | ||
"values-ca/android_chrome_media_router_strings.xml", | ||
"values-cs/android_chrome_media_router_strings.xml", | ||
"values-da/android_chrome_media_router_strings.xml", | ||
"values-de/android_chrome_media_router_strings.xml", | ||
"values-el/android_chrome_media_router_strings.xml", | ||
"values/android_chrome_media_router_strings.xml", | ||
"values-en-rGB/android_chrome_media_router_strings.xml", | ||
"values-es/android_chrome_media_router_strings.xml", | ||
"values-es-rUS/android_chrome_media_router_strings.xml", | ||
"values-fa/android_chrome_media_router_strings.xml", | ||
"values-fi/android_chrome_media_router_strings.xml", | ||
"values-tl/android_chrome_media_router_strings.xml", | ||
"values-fr/android_chrome_media_router_strings.xml", | ||
"values-hi/android_chrome_media_router_strings.xml", | ||
"values-hr/android_chrome_media_router_strings.xml", | ||
"values-hu/android_chrome_media_router_strings.xml", | ||
"values-in/android_chrome_media_router_strings.xml", | ||
"values-it/android_chrome_media_router_strings.xml", | ||
"values-iw/android_chrome_media_router_strings.xml", | ||
"values-ja/android_chrome_media_router_strings.xml", | ||
"values-ko/android_chrome_media_router_strings.xml", | ||
"values-lt/android_chrome_media_router_strings.xml", | ||
"values-lv/android_chrome_media_router_strings.xml", | ||
"values-nl/android_chrome_media_router_strings.xml", | ||
"values-nb/android_chrome_media_router_strings.xml", | ||
"values-pl/android_chrome_media_router_strings.xml", | ||
"values-pt-rBR/android_chrome_media_router_strings.xml", | ||
"values-pt-rPT/android_chrome_media_router_strings.xml", | ||
"values-ro/android_chrome_media_router_strings.xml", | ||
"values-ru/android_chrome_media_router_strings.xml", | ||
"values-sk/android_chrome_media_router_strings.xml", | ||
"values-sl/android_chrome_media_router_strings.xml", | ||
"values-sr/android_chrome_media_router_strings.xml", | ||
"values-sv/android_chrome_media_router_strings.xml", | ||
"values-sw/android_chrome_media_router_strings.xml", | ||
"values-th/android_chrome_media_router_strings.xml", | ||
"values-tr/android_chrome_media_router_strings.xml", | ||
"values-uk/android_chrome_media_router_strings.xml", | ||
"values-vi/android_chrome_media_router_strings.xml", | ||
"values-zh-rCN/android_chrome_media_router_strings.xml", | ||
"values-zh-rTW/android_chrome_media_router_strings.xml", | ||
] | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.