Commit 59742ff9 authored by Xing Liu's avatar Xing Liu Committed by Commit Bot

Disable flaky test GeneratesWhenOverThreshold on Android.

UserLevelMemoryPressureSignalGeneratorTest.GeneratesWhenOverThreshold
has been flaky for a few days, disable it.

TBR=dcheng@chromium.org

Bug: 1054788
Change-Id: I5c16cdbf17316f6475e43d11d754006d194d970f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2083829Reviewed-by: default avatarXing Liu <xingliu@chromium.org>
Commit-Queue: Xing Liu <xingliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746150}
parent 7d4a3137
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "base/test/scoped_feature_list.h" #include "base/test/scoped_feature_list.h"
#include "base/test/test_mock_time_task_runner.h" #include "base/test/test_mock_time_task_runner.h"
#include "build/build_config.h"
#include "testing/gmock/include/gmock/gmock.h" #include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h" #include "third_party/blink/public/common/features.h"
...@@ -90,7 +91,14 @@ class UserLevelMemoryPressureSignalGeneratorTest : public testing::Test { ...@@ -90,7 +91,14 @@ class UserLevelMemoryPressureSignalGeneratorTest : public testing::Test {
constexpr double kMemoryThresholdBytes = 1024 * 1024 * 1024; constexpr double kMemoryThresholdBytes = 1024 * 1024 * 1024;
TEST_F(UserLevelMemoryPressureSignalGeneratorTest, GeneratesWhenOverThreshold) { // Flaky on Android, see crbug/1054788.
#if defined(OS_ANDROID)
#define MAYBE_GeneratesWhenOverThreshold DISABLED_GeneratesWhenOverThreshold
#else
#define MAYBE_GeneratesWhenOverThreshold GeneratesWhenOverThreshold
#endif
TEST_F(UserLevelMemoryPressureSignalGeneratorTest,
MAYBE_GeneratesWhenOverThreshold) {
{ {
std::unique_ptr<MockMemoryUsageMonitor> mock_memory_usage_monitor = std::unique_ptr<MockMemoryUsageMonitor> mock_memory_usage_monitor =
std::make_unique<MockMemoryUsageMonitor>(); std::make_unique<MockMemoryUsageMonitor>();
......
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