Darin Petkov | 77cb681 | 2011-08-15 16:19:41 -0700 | [diff] [blame] | 1 | // 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_DHCP_CONFIG_H_ |
| 6 | #define SHILL_MOCK_DHCP_CONFIG_H_ |
| 7 | |
| 8 | #include <gmock/gmock.h> |
| 9 | |
| 10 | #include "shill/dhcp_config.h" |
| 11 | |
| 12 | namespace shill { |
| 13 | |
| 14 | class MockDHCPConfig : public DHCPConfig { |
| 15 | public: |
| 16 | MockDHCPConfig(ControlInterface *control_interface, |
| 17 | EventDispatcher *dispatcher, |
| 18 | DHCPProvider *provider, |
| 19 | const std::string &device_name, |
| 20 | GLib *glib) |
| 21 | : DHCPConfig(control_interface, |
| 22 | dispatcher, |
| 23 | provider, |
| 24 | device_name, |
| 25 | glib) {} |
| 26 | |
| 27 | MOCK_METHOD0(RequestIP, bool()); |
| 28 | }; |
| 29 | |
| 30 | } // namespace shill |
| 31 | |
| 32 | #endif // SHILL_MOCK_DHCP_CONFIG_H_ |