blob: 62706e341fed83f999fcd6e53236605f13391a01 [file] [log] [blame]
Paul Stewartf65320c2011-10-13 14:34:52 -07001// 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_DNS_CLIENT_H_
6#define SHILL_MOCK_DNS_CLIENT_H_
7
8#include "shill/dns_client.h"
9
10#include <base/basictypes.h>
11#include <gmock/gmock.h>
12
13namespace shill {
14
15class MockDNSClient : public DNSClient {
16 public:
17 MockDNSClient();
18 virtual ~MockDNSClient();
19
Paul Stewartbdb02e62012-02-22 16:24:33 -080020 MOCK_METHOD2(Start, bool(const std::string &hostname, Error *error));
Paul Stewartf65320c2011-10-13 14:34:52 -070021 MOCK_METHOD0(Stop, void());
Prathmesh Prabhu3e452f82013-04-10 16:31:44 -070022 MOCK_CONST_METHOD0(IsActive, bool());
Paul Stewartf65320c2011-10-13 14:34:52 -070023
24 private:
25 DISALLOW_COPY_AND_ASSIGN(MockDNSClient);
26};
27
28} // namespace shill
29
30#endif // SHILL_MOCK_DNS_CLIENT_H_