| // Copyright (c) 2012 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_DHCP_PROVIDER_H_ |
| #define SHILL_MOCK_DHCP_PROVIDER_H_ |
| |
| #include <string> |
| |
| #include <base/basictypes.h> |
| #include <gmock/gmock.h> |
| |
| #include "shill/dhcp_config.h" |
| #include "shill/dhcp_provider.h" |
| #include "shill/refptr_types.h" |
| |
| namespace shill { |
| |
| class MockDHCPProvider : public DHCPProvider { |
| public: |
| MockDHCPProvider(); |
| virtual ~MockDHCPProvider(); |
| |
| MOCK_METHOD3(Init, void(ControlInterface *, EventDispatcher *, GLib *)); |
| MOCK_METHOD4(CreateConfig, |
| DHCPConfigRefPtr(const std::string &device_name, |
| const std::string &host_name, |
| const std::string &storage_identifier, |
| bool arp_gateway)); |
| |
| private: |
| DISALLOW_COPY_AND_ASSIGN(MockDHCPProvider); |
| }; |
| |
| } // namespace shill |
| |
| #endif // SHILL_MOCK_DHCP_PROVIDER_H_ |