blob: b5772e2109ce29162b7413f6924a2c5f9ca31438 [file] [log] [blame]
Chris Masone34af2182011-08-22 11:59:36 -07001// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
2// 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_IPCONFIG_
6#define SHILL_MOCK_IPCONFIG_
7
8#include <base/memory/ref_counted.h>
9#include <gmock/gmock.h>
10
11#include "shill/ipconfig.h"
12
13namespace shill {
14class ControlInterface;
15
16class MockIPConfig : public IPConfig {
17 public:
18 MockIPConfig(ControlInterface *control_interface,
19 const std::string &device_name)
20 : IPConfig(control_interface, device_name) {
21 }
22 virtual ~MockIPConfig() {}
23
24 MOCK_METHOD0(RequestIP, bool(void));
25 MOCK_METHOD0(RenewIP, bool(void));
26 MOCK_METHOD0(ReleaseIP, bool(void));
27
28 MOCK_METHOD2(Load, bool(StoreInterface *, const std::string &));
29 MOCK_METHOD2(Save, bool(StoreInterface *, const std::string &));
30};
31
32} // namespace shill
33
34#endif // SHILL_MOCK_IPCONFIG_