blob: 213cfcc9d17d29120259bb55d868f45fe3d8628b [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();
virtual ~MockDHCPProvider();
MOCK_METHOD3(Init, void(ControlInterface *, EventDispatcher *, GLib *));
MOCK_METHOD5(CreateConfig,
DHCPConfigRefPtr(const std::string &device_name,
const std::string &host_name,
const std::string &storage_identifier,
bool arp_gateway,
bool minimal_configuration));
private:
DISALLOW_COPY_AND_ASSIGN(MockDHCPProvider);
};
} // namespace shill
#endif // SHILL_MOCK_DHCP_PROVIDER_H_