34029e0082
The test failed for several reasons: - When other real cast device is present, tests are run before actual routes arrive. - Screen is not turned on during test. - Test lacks MEDIA_CONTENT_CONTROL permission. This CL fixes the test. Bug: 186190171 Test: atest com.android.mediaroutertest.MediaRouter2ManagerTest \ --rerun-until-failure Change-Id: I6f86ae7cba25871ffb7c8ee96f4c8db6bd86b816
35 lines
1.5 KiB
XML
35 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright 2019 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.android.mediaroutertest">
|
|
|
|
<application android:label="@string/app_name">
|
|
<uses-library android:name="android.test.runner" />
|
|
<activity android:name="com.android.mediaroutertest.MediaRouter2ManagerTestActivity" />
|
|
<service android:name=".StubMediaRoute2ProviderService"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="android.media.MediaRoute2ProviderService" />
|
|
</intent-filter>
|
|
</service>
|
|
</application>
|
|
|
|
<instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
|
|
android:targetPackage="com.android.mediaroutertest"
|
|
android:label="MediaRouter Tests"/>
|
|
</manifest>
|