Paul Stewart | dd60e45 | 2011-08-08 11:38:36 -0700 | [diff] [blame^] | 1 | // 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_RESOLVER_H_ |
| 6 | #define SHILL_MOCK_RESOLVER_H_ |
| 7 | |
| 8 | #include <gmock/gmock.h> |
| 9 | |
| 10 | #include "shill/resolver.h" |
| 11 | |
| 12 | namespace shill { |
| 13 | |
| 14 | class MockResolver : public Resolver { |
| 15 | public: |
| 16 | MOCK_METHOD1(SetDNSFromIPConfig, bool(const IPConfigRefPtr &ipconfig)); |
| 17 | MOCK_METHOD2(SetDNSFromLists, |
| 18 | bool(const std::vector<std::string> &dns_servers, |
| 19 | const std::vector<std::string> &domain_search)); |
| 20 | MOCK_METHOD0(ClearDNS, bool()); |
| 21 | }; |
| 22 | |
| 23 | } // namespace shill |
| 24 | |
| 25 | #endif // SHILL_MOCK_RESOLVER_H_ |