Skip to content

Commit

Permalink
[ScopedTaskEnvironment] Migrate callers off MainThreadType::*MOCK_TIME
Browse files Browse the repository at this point in the history
Using this regex:
(base::)?(test::)?ScopedTaskEnvironment::[\s\n]*MainThreadType::[\s\n]*(UI|IO)?_?MOCK_TIME

and mapping it to:
\1\2ScopedTaskEnvironment::MainThreadType::\3, \1\2ScopedTaskEnvironment::TimeSource::MOCK_TIME

and then deleting any
(base::)?(test::)?ScopedTaskEnvironment::MainThreadType::,

left behind + git cl format

Will TBR fdoray@ for mechanical change after LGTM
TBR=fdoray@chromium.org

Bug: 946657
Change-Id: I0ec0e9a307c629fcee6816b5443d37a7ab90c0d1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1702461
Reviewed-by: Gabriel Charette <gab@chromium.org>
Reviewed-by: François Doray <fdoray@chromium.org>
Commit-Queue: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#677822}
  • Loading branch information
Gabriel Charette authored and Commit Bot committed Jul 16, 2019
1 parent e2aac55 commit 21a47f0
Show file tree
Hide file tree
Showing 114 changed files with 157 additions and 148 deletions.
2 changes: 1 addition & 1 deletion PRESUBMIT.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@
'base::ScopedMockTimeMessageLoopTaskRunner',
(
'ScopedMockTimeMessageLoopTaskRunner is deprecated. Prefer',
'ScopedTaskEnvironment::MainThreadType::MOCK_TIME. There are still a',
'ScopedTaskEnvironment::TimeSource::MOCK_TIME. There are still a',
'few cases that may require a ScopedMockTimeMessageLoopTaskRunner',
'(i.e. mocking the main MessageLoopForUI in browser_tests), but check',
'with gab@ first if you think you need it)',
Expand Down
3 changes: 2 additions & 1 deletion ash/autoclick/autoclick_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ class AutoclickTest : public AshTestBase {
DestroyScopedTaskEnvironment();
scoped_task_environment_ =
std::make_unique<base::test::ScopedTaskEnvironment>(
base::test::ScopedTaskEnvironment::MainThreadType::UI_MOCK_TIME);
base::test::ScopedTaskEnvironment::MainThreadType::UI,
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME);
}
~AutoclickTest() override = default;

Expand Down
3 changes: 2 additions & 1 deletion ash/wm/overview/delayed_animation_observer_impl_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ class ForceDelayObserverTest : public AshTestBase {
DestroyScopedTaskEnvironment();
scoped_task_environment_ =
std::make_unique<base::test::ScopedTaskEnvironment>(
base::test::ScopedTaskEnvironment::MainThreadType::UI_MOCK_TIME);
base::test::ScopedTaskEnvironment::MainThreadType::UI,
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME);
}
~ForceDelayObserverTest() override = default;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ class PartitionAllocMemoryReclaimerTest : public ::testing::Test {
public:
PartitionAllocMemoryReclaimerTest()
: ::testing::Test(),
task_environment_(
test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME),
task_environment_(test::ScopedTaskEnvironment::TimeSource::MOCK_TIME),
allocator_() {}

protected:
Expand Down
6 changes: 3 additions & 3 deletions base/timer/timer_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ TEST(TimerTest, OneShotTimer_CustomTaskRunner) {

TEST(TimerTest, OneShotTimerWithTickClock) {
test::ScopedTaskEnvironment scoped_task_environment(
test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME);
test::ScopedTaskEnvironment::TimeSource::MOCK_TIME);
Receiver receiver;
OneShotTimer timer(scoped_task_environment.GetMockTickClock());
timer.Start(FROM_HERE, TimeDelta::FromSeconds(1),
Expand All @@ -465,7 +465,7 @@ TEST_P(TimerTestWithThreadType, RepeatingTimerZeroDelay_Cancel) {

TEST(TimerTest, RepeatingTimerWithTickClock) {
test::ScopedTaskEnvironment scoped_task_environment(
test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME);
test::ScopedTaskEnvironment::TimeSource::MOCK_TIME);
Receiver receiver;
const int expected_times_called = 10;
RepeatingTimer timer(scoped_task_environment.GetMockTickClock());
Expand Down Expand Up @@ -496,7 +496,7 @@ TEST_P(TimerTestWithThreadType, DelayTimer_Deleted) {

TEST(TimerTest, DelayTimerWithTickClock) {
test::ScopedTaskEnvironment scoped_task_environment(
test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME);
test::ScopedTaskEnvironment::TimeSource::MOCK_TIME);
Receiver receiver;
DelayTimer timer(FROM_HERE, TimeDelta::FromSeconds(1), &receiver,
&Receiver::OnCalled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ class DeviceScheduledUpdateCheckerTest : public testing::Test {
protected:
DeviceScheduledUpdateCheckerTest()
: scoped_task_environment_(
base::test::ScopedTaskEnvironment::MainThreadType::IO_MOCK_TIME) {
base::test::ScopedTaskEnvironment::MainThreadType::IO,
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME) {
auto fake_update_engine_client =
std::make_unique<chromeos::FakeUpdateEngineClient>();
fake_update_engine_client_ = fake_update_engine_client.get();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class AdapterTest : public testing::Test {
public:
AdapterTest()
: thread_bundle_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME) {}
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME) {}

~AdapterTest() override = default;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class AlsReaderImplTest : public testing::Test {
AlsReaderImplTest()
: scoped_task_environment_(
std::make_unique<base::test::ScopedTaskEnvironment>(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME)) {
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME)) {
CHECK(temp_dir_.CreateUniqueTempDir());
ambient_light_path_ = temp_dir_.GetPath().Append("test_als");
als_reader_.SetTaskRunnerForTesting(base::SequencedTaskRunnerHandle::Get());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class BrightnessMonitorImplTest : public testing::Test {
public:
BrightnessMonitorImplTest()
: scoped_task_environment_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME) {}
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME) {}

~BrightnessMonitorImplTest() override {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ModelConfigLoaderImplTest : public testing::Test {
public:
ModelConfigLoaderImplTest()
: thread_bundle_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME) {
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME) {
CHECK(temp_dir_.CreateUniqueTempDir());
temp_params_path_ = temp_dir_.GetPath().Append("model_params.json");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class ModellerImplTest : public testing::Test {
public:
ModellerImplTest()
: thread_bundle_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME) {
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME) {
CHECK(temp_dir_.CreateUniqueTempDir());
TestingProfile::Builder profile_builder;
profile_builder.SetProfileName("testuser@gmail.com");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ class AdaptiveScreenBrightnessManagerTest
public:
AdaptiveScreenBrightnessManagerTest()
: ChromeRenderViewHostTestHarness(
base::test::ScopedTaskEnvironment::MainThreadType::UI_MOCK_TIME,
base::test::ScopedTaskEnvironment::MainThreadType::UI,
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME,
base::test::ScopedTaskEnvironment::ThreadPoolExecutionMode::
QUEUED) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class IdleEventNotifierTest : public testing::Test {
public:
IdleEventNotifierTest()
: scoped_task_env_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME,
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME,
base::test::ScopedTaskEnvironment::ThreadPoolExecutionMode::
QUEUED) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ class UserActivityManagerTest : public ChromeRenderViewHostTestHarness {
public:
UserActivityManagerTest()
: ChromeRenderViewHostTestHarness(
base::test::ScopedTaskEnvironment::MainThreadType::UI_MOCK_TIME,
base::test::ScopedTaskEnvironment::MainThreadType::UI,
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME,
base::test::ScopedTaskEnvironment::ThreadPoolExecutionMode::QUEUED),
model_(thread_bundle()->GetMainThreadTaskRunner()) {}

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/chromeos/tpm_firmware_update_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class TPMFirmwareUpdateTest : public testing::Test {
std::unique_ptr<base::ScopedPathOverride> path_override_location_;
std::unique_ptr<base::ScopedPathOverride> path_override_srk_vulnerable_roca_;
base::test::ScopedTaskEnvironment scoped_task_environment_{
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME};
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME};
ScopedCrosSettingsTestHelper cros_settings_test_helper_;
chromeos::system::ScopedFakeStatisticsProvider statistics_provider_;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class WilcoDtcSupportdBridgeTest : public testing::Test {
}

base::test::ScopedTaskEnvironment scoped_task_environment_{
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME};
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME};

private:
FakeMojoWilcoDtcSupportdServiceFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ReportUploaderTest : public ::testing::Test {
public:
ReportUploaderTest()
: scoped_task_environment_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME) {
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME) {
CreateUploader(0);
}
~ReportUploaderTest() override {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class RequestTimerTest : public ::testing::Test {
public:
RequestTimerTest()
: scoped_task_environment_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME) {}
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME) {}

void RunTask() { task_count_ += 1; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class GoogleSearchDomainMixingMetricsEmitterTest : public testing::Test {
public:
GoogleSearchDomainMixingMetricsEmitterTest()
: thread_bundle_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME) {}
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME) {}

void SetUp() override {
GoogleSearchDomainMixingMetricsEmitter::RegisterProfilePrefs(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class DiscoveryNetworkMonitorMetricObserverTest : public ::testing::Test {
public:
DiscoveryNetworkMonitorMetricObserverTest()
: thread_bundle_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME),
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME),
start_ticks_(thread_bundle_.NowTicks()),
metrics_(std::make_unique<MockMetrics>()),
mock_metrics_(metrics_.get()),
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/media/router/issue_manager_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class IssueManagerTest : public ::testing::Test {
protected:
IssueManagerTest()
: thread_bundle_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME) {
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME) {
manager_.set_task_runner_for_test(thread_bundle_.GetMainThreadTaskRunner());
}
~IssueManagerTest() override {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ObservationWindowTest : public testing::Test {
public:
ObservationWindowTest()
: scoped_task_environment_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME),
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME),
tick_clock_(scoped_task_environment_.GetMockTickClock()) {}
~ObservationWindowTest() override = default;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class MemoryPressureMonitorWinTest : public testing::Test {
public:
MemoryPressureMonitorWinTest()
: scoped_task_environment_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME),
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME),
tick_clock_(scoped_task_environment_.GetMockTickClock()) {}
~MemoryPressureMonitorWinTest() override = default;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class ProfileProviderTest : public testing::Test {
public:
ProfileProviderTest()
: scoped_task_environment_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME) {}
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME) {}

void SetUp() override {
// ProfileProvider requires chromeos::LoginState and
Expand Down
4 changes: 2 additions & 2 deletions chrome/browser/metrics/plugin_metrics_provider_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ TEST_F(PluginMetricsProviderTest, Plugins) {

TEST_F(PluginMetricsProviderTest, RecordCurrentStateWithDelay) {
content::TestBrowserThreadBundle thread_bundle(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME);
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME);

PluginMetricsProvider provider(prefs());

Expand All @@ -134,7 +134,7 @@ TEST_F(PluginMetricsProviderTest, RecordCurrentStateWithDelay) {

TEST_F(PluginMetricsProviderTest, RecordCurrentStateIfPending) {
content::TestBrowserThreadBundle thread_bundle(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME);
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME);

PluginMetricsProvider provider(prefs());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class NotificationPlatformBridgeWinTest : public testing::Test {
public:
NotificationPlatformBridgeWinTest()
: thread_bundle_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME) {}
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME) {}

~NotificationPlatformBridgeWinTest() override = default;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class NotificationImageRetainerTest : public ::testing::Test {
public:
NotificationImageRetainerTest()
: scoped_task_environment_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME),
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME),
user_data_dir_override_(chrome::DIR_USER_DATA) {}

~NotificationImageRetainerTest() override = default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace performance_manager {

GraphTestHarness::GraphTestHarness()
: task_env_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME,
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME,
base::test::ScopedTaskEnvironment::ThreadPoolExecutionMode::QUEUED) {}

GraphTestHarness::~GraphTestHarness() = default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class SystemMonitorTest : public testing::Test {

SystemMonitorTest()
: scoped_task_environment_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME) {}
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME) {}

void SetUp() override {
EXPECT_EQ(nullptr, SystemMonitor::Get());
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/previews/previews_prober_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class PreviewsProberTest : public testing::Test {
public:
PreviewsProberTest()
: thread_bundle_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME),
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME),
test_shared_loader_factory_(
base::MakeRefCounted<network::WeakWrapperSharedURLLoaderFactory>(
&test_url_loader_factory_)),
Expand Down
5 changes: 3 additions & 2 deletions chrome/browser/signin/dice_response_handler_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ class DiceResponseHandlerTest : public testing::Test,
protected:
DiceResponseHandlerTest()
: scoped_task_environment_(
base::test::ScopedTaskEnvironment::MainThreadType::
IO_MOCK_TIME), // URLRequestContext requires IO.
base::test::ScopedTaskEnvironment::MainThreadType::IO,
base::test::ScopedTaskEnvironment::TimeSource::
MOCK_TIME), // URLRequestContext requires IO.
signin_client_(&pref_service_),
identity_test_env_(/*test_url_loader_factory=*/nullptr,
&pref_service_,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class SearchResultRankerTest : public testing::Test {
public:
SearchResultRankerTest()
: thread_bundle_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME) {}
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME) {}
~SearchResultRankerTest() override {}

// testing::Test overrides:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class CastDialogNoSinksViewTest : public views::ViewsTestBase {

void SetUp() override {
auto thread_bundle = std::make_unique<content::TestBrowserThreadBundle>(
base::test::ScopedTaskEnvironment::MainThreadType::UI_MOCK_TIME);
base::test::ScopedTaskEnvironment::MainThreadType::UI,
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME);
thread_bundle_ = thread_bundle.get();
set_scoped_task_environment(std::move(thread_bundle));
set_views_delegate(std::make_unique<ChromeTestViewsDelegate>());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class RelaunchNotificationControllerTest : public ::testing::Test {
protected:
RelaunchNotificationControllerTest()
: scoped_task_environment_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME,
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME,
base::test::ScopedTaskEnvironment::ThreadPoolExecutionMode::QUEUED),
scoped_local_state_(TestingBrowserProcess::GetGlobal()),
upgrade_detector_(scoped_task_environment_.GetMockClock(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class WallClockTimerTest : public ::testing::Test {
protected:
WallClockTimerTest()
: task_environment_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME) {
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME) {
auto mock_power_monitor_source = std::make_unique<StubPowerMonitorSource>();
mock_power_monitor_source_ = mock_power_monitor_source.get();
base::PowerMonitor::Initialize(std::move(mock_power_monitor_source));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class UpgradeDetectorChromeosTest : public ::testing::Test {
UpgradeDetectorChromeosTest()
: utc_(icu::TimeZone::createTimeZone("Etc/GMT")),
scoped_task_environment_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME),
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME),
scoped_local_state_(TestingBrowserProcess::GetGlobal()) {
// Disable the detector's check to see if autoupdates are inabled.
// Without this, tests put the detector into an invalid state by detecting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class UpgradeDetectorImplTest : public ::testing::Test {
protected:
UpgradeDetectorImplTest()
: scoped_task_environment_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME),
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME),
scoped_local_state_(TestingBrowserProcess::GetGlobal()) {
// Disable the detector's check to see if autoupdates are inabled.
// Without this, tests put the detector into an invalid state by detecting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class AuthenticatorRequestDialogModelTest : public ::testing::Test {

protected:
base::test::ScopedTaskEnvironment task_environment_{
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME};
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME};
base::ListValue test_paired_device_list_;

private:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class InspectionResultsCacheTest : public testing::Test {
public:
InspectionResultsCacheTest()
: scoped_task_environment_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME) {}
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME) {}

void SetUp() override {
ASSERT_TRUE(scoped_temp_dir_.CreateUniqueTempDir());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class ModuleBlacklistCacheUpdaterTest : public testing::Test,
: dll1_(kDllPath1),
dll2_(kDllPath2),
scoped_task_environment_(
base::test::ScopedTaskEnvironment::MainThreadType::MOCK_TIME),
base::test::ScopedTaskEnvironment::TimeSource::MOCK_TIME),
user_data_dir_override_(chrome::DIR_USER_DATA),
module_list_filter_(CreateModuleListFilter()),
module_blacklist_cache_path_(
Expand Down
Loading

0 comments on commit 21a47f0

Please sign in to comment.