summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Rosenfeld <mrosenfeld@google.com>2017-06-16 12:00:18 -0700
committerMichael Rosenfeld <mrosenfeld@google.com>2017-06-16 19:06:06 +0000
commit38ca6cc423aeb7a4b245c46568addd6267e95241 (patch)
tree35f47d565298131e9ad9d5fd26fab194f9594aca
parentddb7af8cbca0c722c33b4a7aafbb63c62a6ae4b8 (diff)
downloadplatform_testing-38ca6cc423aeb7a4b245c46568addd6267e95241.tar.gz
Convert abstract/AbstractMapsHelper to interface/IMapsHelper
Bug: 62673345 Test: manual Change-Id: I31761299322adaeb6705e7f2b82fde7b10e3bc94
-rw-r--r--libraries/app-helpers/common/src/android/platform/test/helpers/common/IMapsHelper.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/libraries/app-helpers/common/src/android/platform/test/helpers/common/IMapsHelper.java b/libraries/app-helpers/common/src/android/platform/test/helpers/common/IMapsHelper.java
new file mode 100644
index 000000000..75d844dd4
--- /dev/null
+++ b/libraries/app-helpers/common/src/android/platform/test/helpers/common/IMapsHelper.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2016 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.helpers;
+
+import android.app.Instrumentation;
+
+public interface IMapsHelper extends IStandardAppHelper {
+ /**
+ * Setup expectation: On the standard Map screen in any setup.
+ *
+ * Best effort attempt to go to the query screen (if not currently there),
+ * does a search, and selects the results.
+ */
+ public abstract void doSearch(String query);
+
+ /**
+ * Setup expectation: Destination is selected.
+ *
+ * Best effort attempt to go to the directions screen for the selected destination.
+ */
+ public abstract void getDirections();
+
+ /**
+ * Setup expectation: On directions screen.
+ *
+ * Best effort attempt to start navigation for the selected destination.
+ */
+ public abstract void startNavigation();
+
+ /**
+ * Setup expectation: On navigation screen.
+ *
+ * Best effort attempt to stop navigation, and go back to the directions screen.
+ */
+ public abstract void stopNavigation();
+}