Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: chrome/browser/local_discovery/test_service_discovery_client.h

Issue 87693002: Refactored to make MDnsSocketFactory return array of sockets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/local_discovery/test_service_discovery_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_TEST_SERVICE_DISCOVERY_CLIENT_H_ 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_TEST_SERVICE_DISCOVERY_CLIENT_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_TEST_SERVICE_DISCOVERY_CLIENT_H_ 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_TEST_SERVICE_DISCOVERY_CLIENT_H_
7 7
8 #include "chrome/browser/local_discovery/service_discovery_shared_client.h" 8 #include "chrome/browser/local_discovery/service_discovery_shared_client.h"
9 #include "chrome/common/local_discovery/service_discovery_client.h" 9 #include "chrome/common/local_discovery/service_discovery_client.h"
10 #include "net/dns/mdns_client.h" 10 #include "net/dns/mdns_client.h"
(...skipping 20 matching lines...) Expand all
31 const LocalDomainResolver::IPAddressCallback& callback) OVERRIDE; 31 const LocalDomainResolver::IPAddressCallback& callback) OVERRIDE;
32 32
33 MOCK_METHOD1(OnSendTo, void(const std::string& data)); 33 MOCK_METHOD1(OnSendTo, void(const std::string& data));
34 34
35 void SimulateReceive(const uint8* packet, int size); 35 void SimulateReceive(const uint8* packet, int size);
36 36
37 private: 37 private:
38 ~TestServiceDiscoveryClient(); 38 ~TestServiceDiscoveryClient();
39 39
40 // Owned by mdns_client_impl_. 40 // Owned by mdns_client_impl_.
41 net::MockMDnsSocketFactory* mock_socket_factory_; 41 net::MockMDnsSocketFactory mock_socket_factory_;
42 scoped_ptr<net::MDnsClient> mdns_client_; 42 scoped_ptr<net::MDnsClient> mdns_client_;
43 scoped_ptr<ServiceDiscoveryClient> service_discovery_client_impl_; 43 scoped_ptr<ServiceDiscoveryClient> service_discovery_client_impl_;
44 }; 44 };
45 45
46 } // namespace local_discovery 46 } // namespace local_discovery
47 47
48 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_TEST_SERVICE_DISCOVERY_CLIENT_H_ 48 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_TEST_SERVICE_DISCOVERY_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/local_discovery/test_service_discovery_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698