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

Side by Side Diff: content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java

Issue 2632043002: Create ContentShellActivityTestRule and BaseJUnitRunner (Closed)
Patch Set: change after mike's commments Created 3 years, 9 months 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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.content.browser; 5 package org.chromium.content.browser;
6 6
7 import static org.chromium.base.test.util.ScalableTimeout.scaleTimeout; 7 import static org.chromium.base.test.util.ScalableTimeout.scaleTimeout;
8 8
9 import android.app.Activity; 9 import android.app.Activity;
10 import android.net.Uri; 10 import android.net.Uri;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 OnPageFinishedHelper onPageFinishedHelper = 138 OnPageFinishedHelper onPageFinishedHelper =
139 callbackHelperContainer.getOnPageFinishedHelper(); 139 callbackHelperContainer.getOnPageFinishedHelper();
140 int currentCallCount = onPageFinishedHelper.getCallCount(); 140 int currentCallCount = onPageFinishedHelper.getCallCount();
141 141
142 DOMUtils.clickNode(getContentViewCore(), id); 142 DOMUtils.clickNode(getContentViewCore(), id);
143 143
144 onPageFinishedHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_S ECONDS, 144 onPageFinishedHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_S ECONDS,
145 TimeUnit.SECONDS); 145 TimeUnit.SECONDS);
146 getInstrumentation().waitForIdleSync(); 146 getInstrumentation().waitForIdleSync();
147 } 147 }
148 } 148 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698