1 // Copyright 2015 The Weave 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 LIBWEAVE_INCLUDE_WEAVE_PROVIDER_TEST_MOCK_DNS_SERVICE_DISCOVERY_H_ 6 #define LIBWEAVE_INCLUDE_WEAVE_PROVIDER_TEST_MOCK_DNS_SERVICE_DISCOVERY_H_ 7 8 #include <weave/provider/dns_service_discovery.h> 9 10 #include <string> 11 #include <vector> 12 13 #include <gmock/gmock.h> 14 15 namespace weave { 16 namespace provider { 17 namespace test { 18 19 class MockDnsServiceDiscovery : public DnsServiceDiscovery { 20 public: 21 MOCK_METHOD3(PublishService, 22 void(const std::string&, 23 uint16_t, 24 const std::vector<std::string>&)); 25 MOCK_METHOD1(StopPublishing, void(const std::string&)); 26 }; 27 28 } // namespace test 29 } // namespace provider 30 } // namespace weave 31 32 #endif // LIBWEAVE_INCLUDE_WEAVE_PROVIDER_TEST_MOCK_DNS_SERVICE_DISCOVERY_H_ 33