blob: 7878fdd07622a907418afa51bed11312c365e5f6 [file] [log] [blame]
Darin Petkov3ec55342012-09-28 14:04:44 +02001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Darin Petkov394b7d42011-11-03 15:48:02 +01002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef SHILL_MOCK_POWER_MANAGER_PROXY_H_
6#define SHILL_MOCK_POWER_MANAGER_PROXY_H_
7
8#include <base/basictypes.h>
9#include <gmock/gmock.h>
10
11#include "shill/power_manager_proxy_interface.h"
12
13namespace shill {
14
15class MockPowerManagerProxy : public PowerManagerProxyInterface {
16 public:
17 MockPowerManagerProxy();
18 virtual ~MockPowerManagerProxy();
19
Daniel Eratf9753672013-01-24 10:17:02 -080020 MOCK_METHOD3(RegisterSuspendDelay,
21 bool(base::TimeDelta timeout,
22 const std::string &description,
23 int *delay_id_out));
Daniel Erat0818cca2012-12-14 10:16:21 -080024 MOCK_METHOD1(UnregisterSuspendDelay, bool(int delay_id));
25 MOCK_METHOD2(ReportSuspendReadiness, bool(int delay_id, int suspend_id));
Darin Petkov394b7d42011-11-03 15:48:02 +010026
27 private:
28 DISALLOW_COPY_AND_ASSIGN(MockPowerManagerProxy);
29};
30
31} // namespace shill
32
33#endif // SHILL_MOCK_POWER_MANAGER_PROXY_H_