blob: 43e7a4d4c360ed65f299c67b40ad37227303d21c [file] [log] [blame]
// Copyright 2019 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.
#ifndef CHROMEOS_COMPONENTS_SYNC_WIFI_TIMER_FACTORY_H_
#define CHROMEOS_COMPONENTS_SYNC_WIFI_TIMER_FACTORY_H_
#include <memory>
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "base/timer/timer.h"
namespace chromeos {
namespace sync_wifi {
// Serves as a simple Timer creator, injected into classes that use Timers.
// Is intended to be overridden during testing in order to stub or mock the
// Timers used by the object under test.
class TimerFactory {
public:
virtual ~TimerFactory();
virtual std::unique_ptr<base::OneShotTimer> CreateOneShotTimer();
};
} // namespace sync_wifi
} // namespace chromeos
#endif // CHROMEOS_COMPONENTS_SYNC_WIFI_TIMER_FACTORY_H_