blob: b3a3277a09a42ad344b9b03ce3ce9bab6f263d11 [file] [log] [blame]
// Copyright 2018 The Chromium OS 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 SHILL_MOCK_POWER_MANAGER_PROXY_H_
#define SHILL_MOCK_POWER_MANAGER_PROXY_H_
#include <string>
#include <base/macros.h>
#include <gmock/gmock.h>
#include "shill/power_manager_proxy_interface.h"
namespace shill {
class MockPowerManagerProxy : public PowerManagerProxyInterface {
public:
MockPowerManagerProxy();
~MockPowerManagerProxy() override;
MOCK_METHOD(bool,
RegisterSuspendDelay,
(base::TimeDelta, const std::string&, int*),
(override));
MOCK_METHOD(bool, UnregisterSuspendDelay, (int), (override));
MOCK_METHOD(bool, ReportSuspendReadiness, (int, int), (override));
MOCK_METHOD(bool,
RegisterDarkSuspendDelay,
(base::TimeDelta, const std::string&, int*),
(override));
MOCK_METHOD(bool, UnregisterDarkSuspendDelay, (int), (override));
MOCK_METHOD(bool, ReportDarkSuspendReadiness, (int, int), (override));
MOCK_METHOD(bool,
RecordDarkResumeWakeReason,
(const std::string&),
(override));
MOCK_METHOD(bool,
ChangeRegDomain,
(power_manager::WifiRegDomainDbus),
(override));
private:
DISALLOW_COPY_AND_ASSIGN(MockPowerManagerProxy);
};
} // namespace shill
#endif // SHILL_MOCK_POWER_MANAGER_PROXY_H_