Commit 8d7ce656 authored by Michael Thiessen's avatar Michael Thiessen Committed by Chromium LUCI CQ

Fix tests marked as UNIT_TESTS using ChromeBrowserTestRule

These tests are not unit tests, because they initialize the browser
process. Also they fail when unit tests reset ApplicationStatus.

Change-Id: Iefbc335a8d30ff8aa2ae8b6f1ba40318e2863163
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2622331
Auto-Submit: Michael Thiessen <mthiesse@chromium.org>
Commit-Queue: Yaron Friedman <yfriedman@chromium.org>
Reviewed-by: default avatarYaron Friedman <yfriedman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#842534}
parent ffdc941c
...@@ -32,7 +32,7 @@ import org.chromium.chrome.test.ChromeBrowserTestRule; ...@@ -32,7 +32,7 @@ import org.chromium.chrome.test.ChromeBrowserTestRule;
* Unit test suite for DataReductionPromoUtils. * Unit test suite for DataReductionPromoUtils.
*/ */
@RunWith(BaseJUnit4ClassRunner.class) @RunWith(BaseJUnit4ClassRunner.class)
@Batch(Batch.UNIT_TESTS) @Batch(Batch.PER_CLASS)
public class DataReductionPromoUtilsTest { public class DataReductionPromoUtilsTest {
@Rule @Rule
public final ChromeBrowserTestRule mChromeBrowserTestRule = new ChromeBrowserTestRule(); public final ChromeBrowserTestRule mChromeBrowserTestRule = new ChromeBrowserTestRule();
......
...@@ -34,7 +34,7 @@ import org.chromium.chrome.test.ChromeBrowserTestRule; ...@@ -34,7 +34,7 @@ import org.chromium.chrome.test.ChromeBrowserTestRule;
* Unit test suite for DataReductionStatsPreference. * Unit test suite for DataReductionStatsPreference.
*/ */
@RunWith(BaseJUnit4ClassRunner.class) @RunWith(BaseJUnit4ClassRunner.class)
@Batch(Batch.UNIT_TESTS) @Batch(Batch.PER_CLASS)
public class DataReductionStatsPreferenceTest { public class DataReductionStatsPreferenceTest {
@Rule @Rule
public final ChromeBrowserTestRule mChromeBrowserTestRule = new ChromeBrowserTestRule(); public final ChromeBrowserTestRule mChromeBrowserTestRule = new ChromeBrowserTestRule();
......
...@@ -34,7 +34,7 @@ import java.util.Arrays; ...@@ -34,7 +34,7 @@ import java.util.Arrays;
* Unit tests for OptimizationGuideBridgeFactory * Unit tests for OptimizationGuideBridgeFactory
*/ */
@RunWith(BaseJUnit4ClassRunner.class) @RunWith(BaseJUnit4ClassRunner.class)
@Batch(Batch.UNIT_TESTS) @Batch(Batch.PER_CLASS)
public class OptimizationGuideBridgeFactoryUnitTest { public class OptimizationGuideBridgeFactoryUnitTest {
@Rule @Rule
public JniMocker mocker = new JniMocker(); public JniMocker mocker = new JniMocker();
......
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