blob: 1d8f69dc3da4cc13a86e8ae880c40d7d25c4d5e9 [file] [log] [blame]
// 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();
~MockDHCPProvider() override;
MOCK_METHOD4(Init,
void(ControlInterface *, EventDispatcher *, GLib *, Metrics *));
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_