Create the flingFeed() and getScrollContainer() for INotificationHelper am: c5dbc78efd am: e17b4d9d5a
Original change: https://googleplex-android-review.googlesource.com/c/platform/platform_testing/+/12976677
Change-Id: If7bc0093724c308a77450f87c8f7bb02e2b91e5c
diff --git a/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/INotificationHelper.java b/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/INotificationHelper.java
index 4babad1..704874a 100644
--- a/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/INotificationHelper.java
+++ b/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/INotificationHelper.java
@@ -18,6 +18,7 @@
import android.app.Notification;
import android.support.test.uiautomator.BySelector;
+import android.support.test.uiautomator.Direction;
import android.support.test.uiautomator.UiObject2;
import androidx.annotation.Nullable;
@@ -210,4 +211,38 @@
default void shareScreenshotFromNotification(BySelector pageSelector) {
throw new UnsupportedOperationException("Not yet implemented.");
}
+
+ /**
+ * Setup expectation: On the expanding notification screen.
+ *
+ * <p>Get the UiObject2 of expanding notification screen.
+ */
+ default UiObject2 getNotificationShadeScrollContainer() {
+ throw new UnsupportedOperationException("Not yet implemented.");
+ }
+
+ /**
+ * Scroll feeds on Notifications screen
+ *
+ * <p>Setup expectations: Notification is open with lots of notifications.
+ *
+ * @param container The container with scrollable elements.
+ * @param dir The direction of the fling, must be UP or DOWN.
+ */
+ default void flingFeed(UiObject2 container, Direction dir) {
+ throw new UnsupportedOperationException("Not yet implemented.");
+ }
+
+ /**
+ * Scroll feeds on Notifications screen
+ *
+ * <p>Setup expectations: Notification is open with lots of notifications.
+ *
+ * @param container The container with scrollable elements.
+ * @param dir The direction of the scroll, must be UP or DOWN.
+ * @param speed The speed of fling.
+ */
+ default void flingFeed(UiObject2 container, Direction dir, int speed) {
+ throw new UnsupportedOperationException("Not yet implemented.");
+ }
}