summaryrefslogtreecommitdiffstats
path: root/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
diff options
context:
space:
mode:
authorVadim Tryshev <vadimt@google.com>2019-06-07 01:34:30 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-06-07 01:34:30 +0000
commit9d14e5520e56049bf88cedfda59a1de53845ea95 (patch)
treeda815c17ec12929c99c51b5fd2dc2b97a719dda9 /tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
parent51d2cf913c18787ec28334737c29ad36f4f7a815 (diff)
parentd4c90e12e9b6b61d3c0374ee5899425c84ffe65b (diff)
downloadandroid_packages_apps_Trebuchet-9d14e5520e56049bf88cedfda59a1de53845ea95.tar.gz
android_packages_apps_Trebuchet-9d14e5520e56049bf88cedfda59a1de53845ea95.tar.bz2
android_packages_apps_Trebuchet-9d14e5520e56049bf88cedfda59a1de53845ea95.zip
Merge "Freezing all apps updates during certain tests" into ub-launcher3-qt-r1-dev
Diffstat (limited to 'tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java')
-rw-r--r--tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
index e45fca8c0..8ebe52565 100644
--- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
+++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
@@ -292,6 +292,12 @@ public final class LauncherInstrumentation {
}
}
+ void assertEquals(String message, long expected, long actual) {
+ if (expected != actual) {
+ fail(message + " expected: " + expected + " but was: " + actual);
+ }
+ }
+
void assertNotEquals(String message, int unexpected, int actual) {
if (unexpected == actual) {
failEquals(message, actual);