blob: 1ce2820d70e7d69f51858833d05201bd3c83305f [file] [log] [blame]
Paul Stewartd408fdf2012-05-07 17:15:57 -07001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Darin Petkov77cb6812011-08-15 16:19:41 -07002// 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_DHCP_CONFIG_H_
6#define SHILL_MOCK_DHCP_CONFIG_H_
7
Hristo Stefanoved2c28c2011-11-29 15:37:30 -08008#include <string>
9
Darin Petkov1bdedf12011-08-26 13:32:11 -070010#include <base/basictypes.h>
Darin Petkov77cb6812011-08-15 16:19:41 -070011#include <gmock/gmock.h>
12
13#include "shill/dhcp_config.h"
14
15namespace shill {
16
17class MockDHCPConfig : public DHCPConfig {
18 public:
19 MockDHCPConfig(ControlInterface *control_interface,
Paul Stewartd408fdf2012-05-07 17:15:57 -070020 const std::string &device_name);
Darin Petkov1bdedf12011-08-26 13:32:11 -070021 virtual ~MockDHCPConfig();
Darin Petkov77cb6812011-08-15 16:19:41 -070022
23 MOCK_METHOD0(RequestIP, bool());
mukesh agrawalfbc40d22013-06-28 00:25:13 -070024 MOCK_METHOD1(ReleaseIP, bool(ReleaseReason));
Paul Stewart21f7b342013-11-19 10:15:58 -080025 MOCK_METHOD0(RenewIP, bool());
Darin Petkov1bdedf12011-08-26 13:32:11 -070026
27 private:
28 DISALLOW_COPY_AND_ASSIGN(MockDHCPConfig);
Darin Petkov77cb6812011-08-15 16:19:41 -070029};
30
31} // namespace shill
32
33#endif // SHILL_MOCK_DHCP_CONFIG_H_