blob: 1374c3d9ff642eac25eeeb1f9c9b872bd15ff6f0 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/offline_pages/core/test_scoped_offline_clock.h"
#include "components/offline_pages/core/offline_clock.h"
namespace offline_pages {
TestScopedOfflineClockOverride::TestScopedOfflineClockOverride(
base::Clock* clock) {
SetOfflineClockForTesting(clock);
}
TestScopedOfflineClockOverride::~TestScopedOfflineClockOverride() {
SetOfflineClockForTesting(nullptr);
}
TestScopedOfflineClock::TestScopedOfflineClock() : override_(this) {}
TestScopedOfflineClock::~TestScopedOfflineClock() {}
} // namespace offline_pages