diff options
Diffstat (limited to 'tests/automotive/health/mediacenter/src/android/platform/scenario/mediacenter/googleplaybooks/OpenGoogleBooks.java')
-rw-r--r-- | tests/automotive/health/mediacenter/src/android/platform/scenario/mediacenter/googleplaybooks/OpenGoogleBooks.java | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/tests/automotive/health/mediacenter/src/android/platform/scenario/mediacenter/googleplaybooks/OpenGoogleBooks.java b/tests/automotive/health/mediacenter/src/android/platform/scenario/mediacenter/googleplaybooks/OpenGoogleBooks.java deleted file mode 100644 index 41ef2a41e..000000000 --- a/tests/automotive/health/mediacenter/src/android/platform/scenario/mediacenter/googleplaybooks/OpenGoogleBooks.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2021 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. - */ -package android.platform.test.scenario.mediacenter.googleplaybooks; - -import android.platform.helpers.HelperAccessor; -import android.platform.helpers.IAutoMediaCenterHelper; -import android.platform.test.scenario.annotation.Scenario; -import android.support.test.uiautomator.UiDevice; -import androidx.test.InstrumentationRegistry; - -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.JUnit4; - -import java.io.IOException; - -/** Opens the Google Books and plays an audio book */ -@Scenario -@RunWith(JUnit4.class) -public class OpenGoogleBooks { - static HelperAccessor<IAutoMediaCenterHelper> sMediaCenterHelper = - new HelperAccessor<>(IAutoMediaCenterHelper.class); - - @Test - public void testOpen() throws IOException { - UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) - .executeShellCommand( - "am start -a android.car.intent.action.MEDIA_TEMPLATE -e " - + "android.car.intent.extra.MEDIA_COMPONENT " - + "com.google.android.apps.books" - + "/com.google.android.apps.play.books.audio" - + ".BooksMediaBrowseService"); - } -} |