Commit f020f3ac authored by Xi Han's avatar Xi Han Committed by Commit Bot

Disable ServicificationBackgroundServiceTest on low end devices.

Disable ServicificationBackgroundServiceTest#testHistogramsPersistedWithServiceManagerOnlyStart.

Bug: 1096833
Change-Id: Ibe6092357b4081061f094fcaa82c4822397ffd03
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2297312Reviewed-by: default avatarYaron Friedman <yfriedman@chromium.org>
Commit-Queue: Xi Han <hanxi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#790022}
parent a9a58731
...@@ -21,6 +21,7 @@ import org.chromium.base.Log; ...@@ -21,6 +21,7 @@ import org.chromium.base.Log;
import org.chromium.base.StrictModeContext; import org.chromium.base.StrictModeContext;
import org.chromium.base.test.util.CommandLineFlags; import org.chromium.base.test.util.CommandLineFlags;
import org.chromium.base.test.util.Feature; import org.chromium.base.test.util.Feature;
import org.chromium.base.test.util.Restriction;
import org.chromium.chrome.browser.init.ServiceManagerStartupUtils; import org.chromium.chrome.browser.init.ServiceManagerStartupUtils;
import org.chromium.chrome.test.ChromeJUnit4ClassRunner; import org.chromium.chrome.test.ChromeJUnit4ClassRunner;
...@@ -115,6 +116,10 @@ public final class ServicificationBackgroundServiceTest { ...@@ -115,6 +116,10 @@ public final class ServicificationBackgroundServiceTest {
@LargeTest @LargeTest
@Feature({"ServicificationStartup"}) @Feature({"ServicificationStartup"})
@CommandLineFlags.Add({"force-fieldtrials=*Foo/Bar", "enable-features=UMABackgroundSessions"}) @CommandLineFlags.Add({"force-fieldtrials=*Foo/Bar", "enable-features=UMABackgroundSessions"})
@Restriction({Restriction.RESTRICTION_TYPE_NON_LOW_END_DEVICE}) // crbug.com/1096833
// Verifies that the memory-mapped file for persistent histogram data exists and contains a
// valid SystemProfile. This test isn't run on low end devices which use local memory for
// storing histogram data.
public void testHistogramsPersistedWithServiceManagerOnlyStart() { public void testHistogramsPersistedWithServiceManagerOnlyStart() {
createBrowserMetricsSpareFile(); createBrowserMetricsSpareFile();
Assert.assertTrue(mSpareFile.exists()); Assert.assertTrue(mSpareFile.exists());
......
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