blob: 73cf62d86cca2fad310b1e6e337c265729a847b5 [file] [log] [blame]
// Copyright (c) 2011 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_DNS_CLIENT_H_
#define SHILL_MOCK_DNS_CLIENT_H_
#include "shill/dns_client.h"
#include <base/basictypes.h>
#include <gmock/gmock.h>
namespace shill {
class MockDNSClient : public DNSClient {
public:
MockDNSClient();
virtual ~MockDNSClient();
MOCK_METHOD1(Start, bool(const std::string &hostname));
MOCK_METHOD0(Stop, void());
MOCK_CONST_METHOD0(address, const IPAddress &());
MOCK_CONST_METHOD0(error, const std::string &());
private:
DISALLOW_COPY_AND_ASSIGN(MockDNSClient);
};
} // namespace shill
#endif // SHILL_MOCK_DNS_CLIENT_H_