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

Unified Diff: chrome/browser/local_discovery/privet_http_unittest.cc

Issue 320683002: Extracted PrivetV1HTTPClient with Privet v1 specific operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/local_discovery/privet_http_unittest.cc
diff --git a/chrome/browser/local_discovery/privet_http_unittest.cc b/chrome/browser/local_discovery/privet_http_unittest.cc
index 64dbc3b766e12b90b4594050a9c969fe3b23b6ba..5c9e760b115bee3fb8a2aeb10ed022d9bd06d1e3 100644
--- a/chrome/browser/local_discovery/privet_http_unittest.cc
+++ b/chrome/browser/local_discovery/privet_http_unittest.cc
@@ -242,10 +242,11 @@ class PrivetHTTPTest : public ::testing::Test {
request_context_= new net::TestURLRequestContextGetter(
base::MessageLoopProxy::current());
- privet_client_.reset(new PrivetHTTPClientImpl(
- "sampleDevice._privet._tcp.local",
- net::HostPortPair("10.0.0.8", 6006),
- request_context_.get()));
+ privet_client_ = PrivetV1HTTPClient::CreateDefault(
+ make_scoped_ptr<PrivetHTTPClient>(
+ new PrivetHTTPClientImpl("sampleDevice._privet._tcp.local",
+ net::HostPortPair("10.0.0.8", 6006),
+ request_context_)));
fetcher_factory_.SetDelegateForTests(&fetcher_delegate_);
}
@@ -337,7 +338,7 @@ class PrivetHTTPTest : public ::testing::Test {
base::MessageLoop loop_;
scoped_refptr<net::TestURLRequestContextGetter> request_context_;
net::TestURLFetcherFactory fetcher_factory_;
- scoped_ptr<PrivetHTTPClient> privet_client_;
+ scoped_ptr<PrivetV1HTTPClient> privet_client_;
NiceMock<MockTestURLFetcherFactoryDelegate> fetcher_delegate_;
};
« no previous file with comments | « chrome/browser/local_discovery/privet_http_impl.cc ('k') | chrome/browser/local_discovery/privet_local_printer_lister.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698