diff options
author | Aaron Lin <linaaron@google.com> | 2019-05-24 21:58:40 -0700 |
---|---|---|
committer | Aaron Lin <linaaron@google.com> | 2019-05-29 02:56:56 +0000 |
commit | 3830c14519e55ef16e7d3bf4b018b51d2031a230 (patch) | |
tree | fac011882e7c5d6843e54c9aebefc949838b47cb | |
parent | bde25972fd727bbb6079bb430b75996406385f85 (diff) | |
download | platform_testing-3830c14519e55ef16e7d3bf4b018b51d2031a230.tar.gz |
Merge "Create interface of YT Music app" am: e21521c404 am: 30dc621db6 am: e7f3303ef9
am: 0ff542c3e0
Bug: 130646670
Test: make DaysOfUsePowerTestsApp; install; instrument
Change-Id: I1f9023c8b70f9773093dc53165858243066b5980
(cherry picked from commit 5ad86cf95e4e1ed194dffe2647f55a9a34e9b2c5)
-rw-r--r-- | libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/IYTMusicHelper.java | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/IYTMusicHelper.java b/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/IYTMusicHelper.java new file mode 100644 index 000000000..190852943 --- /dev/null +++ b/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/IYTMusicHelper.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 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. + */ + +package android.platform.helpers; + +public interface IYTMusicHelper extends IAppHelper { + + /** + * Setup expectations: YT Music is open and the tab bar is visible. + * + * <p>This method will press "Library" to the Library tab. This method blocks until the process + * is complete. + */ + public void goToLibrary(); + + /** + * Setup expectations: YT Music is open and the Library tab is visible. + * + * <p>This method will select the albums. This method blocks until the process is complete. + */ + public void openAlbums(); + + /** + * Setup expectations: YT Music is open and the Albums page is visible. + * + * <p>This method will browse the device files. The method will block until the process is + * complete. + */ + public void browseDeviceFiles(); + + /** + * Setup expectations: YT Music is open and the album list is visible. + * + * <p>This method will select the album and select the song. The method will block until the + * song is playing. + */ + public void selectSong(String album, String song); + + /** + * Setup expectations: YT Music is open with a song paused. + * + * <p>This method will play the song and block until the song is playing. + */ + public void playSong(); + + /** + * Setup expectations: YT Music is open with a song playing. + * + * <p>This method will pause the song and block until the song is paused. + */ + public void pauseSong(); +} |