Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappActivityTestBase.java

Issue 1414873004: Web app splash screen: add even moar tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@splashscreen-uma
Patch Set: rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.webapps; 5 package org.chromium.chrome.browser.webapps;
6 6
7 import android.content.Intent; 7 import android.content.Intent;
8 import android.net.Uri; 8 import android.net.Uri;
9 9
10 import org.chromium.base.ThreadUtils; 10 import org.chromium.base.ThreadUtils;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 } 166 }
167 167
168 /** 168 /**
169 * Waits for the splash screen to be hidden and return whether it was hidden 169 * Waits for the splash screen to be hidden and return whether it was hidden
170 * (true) or if it timed out (false). 170 * (true) or if it timed out (false).
171 */ 171 */
172 protected boolean waitUntilSplashscreenHides() throws InterruptedException { 172 protected boolean waitUntilSplashscreenHides() throws InterruptedException {
173 return CriteriaHelper.pollForCriteria(new Criteria() { 173 return CriteriaHelper.pollForCriteria(new Criteria() {
174 @Override 174 @Override
175 public boolean isSatisfied() { 175 public boolean isSatisfied() {
176 return !getActivity().isSplashScreenVisibleForTest(); 176 return !getActivity().isSplashScreenVisibleForTests();
177 } 177 }
178 }); 178 });
179 } 179 }
180 } 180 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698