Commit a940db72 authored by Tanmoy Mollik's avatar Tanmoy Mollik Committed by Commit Bot

[Android] Batch tests in BookmarkBridgeTest

Batch tests in BookmarkBridgeTest to reduce the overall running time of
chrome_public_test_apk

Bug: 1145843
Change-Id: Ib0f4490ea6c9bfee965ecc67eed02d29d16e149f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2523327Reviewed-by: default avatarMarc Treib <treib@chromium.org>
Commit-Queue: Tanmoy Mollik <triploblastic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#825294}
parent 042a0024
......@@ -6,6 +6,7 @@ package org.chromium.chrome.browser.bookmarks;
import androidx.test.filters.SmallTest;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
......@@ -14,6 +15,7 @@ import org.junit.runner.RunWith;
import org.chromium.base.test.BaseJUnit4ClassRunner;
import org.chromium.base.test.UiThreadTest;
import org.chromium.base.test.util.Batch;
import org.chromium.base.test.util.Feature;
import org.chromium.chrome.browser.bookmarks.BookmarkBridge.BookmarkItem;
import org.chromium.chrome.browser.profiles.Profile;
......@@ -31,6 +33,7 @@ import java.util.List;
* Tests for bookmark bridge
*/
@RunWith(BaseJUnit4ClassRunner.class)
@Batch(Batch.UNIT_TESTS)
public class BookmarkBridgeTest {
@Rule
public final ChromeBrowserTestRule mChromeBrowserTestRule = new ChromeBrowserTestRule();
......@@ -56,6 +59,11 @@ public class BookmarkBridgeTest {
});
}
@After
public void tearDown() {
TestThreadUtils.runOnUiThreadBlocking(() -> mBookmarkBridge.removeAllUserBookmarks());
}
@Test
@SmallTest
@UiThreadTest
......
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