Index: chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java |
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java |
index 0e0bce31304d882ffe9c4e9b8227c73aba0842c9..30d5a8d871bb553cbeb222c1018efb0b2b2110e7 100644 |
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java |
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java |
@@ -1092,13 +1092,9 @@ |
} catch (InterruptedException e) { |
fail(); |
} |
- ThreadUtils.runOnUiThreadBlocking(new Runnable() { |
- @Override |
- public void run() { |
- assertFalse("Warmup() should have allocated a child connection", |
- mActivity.shouldAllocateChildConnection()); |
- } |
- }); |
+ assertFalse( |
+ "Warmup() should have allocated a child connection", |
+ mActivity.shouldAllocateChildConnection()); |
} |
/** |
@@ -1119,13 +1115,9 @@ |
} catch (InterruptedException e) { |
fail(); |
} |
- ThreadUtils.runOnUiThreadBlocking(new Runnable() { |
- @Override |
- public void run() { |
- assertTrue("No spare renderer available, should allocate a child connection.", |
- mActivity.shouldAllocateChildConnection()); |
- } |
- }); |
+ assertTrue( |
+ "No spare renderer available, should allocate a child connection.", |
+ mActivity.shouldAllocateChildConnection()); |
} |
/** |
@@ -1145,13 +1137,9 @@ |
} catch (InterruptedException e) { |
fail(); |
} |
- ThreadUtils.runOnUiThreadBlocking(new Runnable() { |
- @Override |
- public void run() { |
- assertFalse("Prerendering should have allocated a child connection", |
- mActivity.shouldAllocateChildConnection()); |
- } |
- }); |
+ assertFalse( |
+ "Prerendering should have allocated a child connection", |
+ mActivity.shouldAllocateChildConnection()); |
} |
/** |