Commit 86496e9c authored by Wei-Yin Chen (陳威尹)'s avatar Wei-Yin Chen (陳威尹) Committed by Commit Bot

Make StartSurfaceLayout{Test,PerfTest} faster

Decrease the number of iterations in StartSurfaceLayoutTest and
StartSurfaceLayoutPerfTest to make them run faster on bots.

Bug: None
Change-Id: Ib0d10c913ca0fb7f5a8d06e200f8f5b96d510def
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1935427Reviewed-by: default avatarYusuf Ozuysal <yusufo@chromium.org>
Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#718930}
parent ca2506f1
......@@ -97,7 +97,7 @@ public class StartSurfaceLayoutPerfTest {
assertTrue(layout instanceof StartSurfaceLayout);
mStartSurfaceLayout = (StartSurfaceLayout) layout;
mUrl = mTestServer.getURL("/chrome/test/data/android/navigate/simple.html");
mRepeat = 3;
mRepeat = 1;
mWaitingTime = 0;
mTabNumCap = 3;
......
......@@ -120,7 +120,7 @@ public class StartSurfaceLayoutTest {
assertTrue(layout instanceof StartSurfaceLayout);
mStartSurfaceLayout = (StartSurfaceLayout) layout;
mUrl = testServer.getURL("/chrome/test/data/android/navigate/simple.html");
mRepeat = 3;
mRepeat = 1;
mTabListDelegate = mStartSurfaceLayout.getStartSurfaceForTesting().getTabListDelegate();
mTabListDelegate.setBitmapCallbackForTesting(mBitmapListener);
......@@ -535,7 +535,6 @@ public class StartSurfaceLayoutTest {
public void testInvisibleTabsDontFetchWarm() throws InterruptedException {
// Get the GTS in the warm state.
prepareTabs(2, 0, NTP_URL);
mRepeat = 2;
testTabToGrid(NTP_URL);
Thread.sleep(1000);
......@@ -559,7 +558,6 @@ public class StartSurfaceLayoutTest {
public void testInvisibleTabsDontFetchSoft() throws InterruptedException {
// Get the GTS in the soft cleaned up state.
prepareTabs(2, 0, NTP_URL);
mRepeat = 2;
testTabToGrid(NTP_URL);
Thread.sleep(1000);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment