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

Unified Diff: net/socket/ssl_client_socket_unittest.cc

Issue 3115014: Revert 56384 - Don't resolve IP literals.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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
« no previous file with comments | « net/base/mock_host_resolver.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_client_socket_unittest.cc
===================================================================
--- net/socket/ssl_client_socket_unittest.cc (revision 56384)
+++ net/socket/ssl_client_socket_unittest.cc (working copy)
@@ -257,6 +257,9 @@
net::HostResolver::RequestInfo info(server_.kHostName, server_.kOKHTTPSPort);
int rv = resolver_->Resolve(info, &addr, &callback, NULL, net::BoundNetLog());
+ EXPECT_EQ(net::ERR_IO_PENDING, rv);
+
+ rv = callback.WaitForResult();
EXPECT_EQ(net::OK, rv);
net::ClientSocket* transport = new net::TCPClientSocket(addr, NULL);
@@ -316,6 +319,9 @@
net::HostResolver::RequestInfo info(server_.kHostName, server_.kOKHTTPSPort);
int rv = resolver_->Resolve(info, &addr, &callback, NULL, net::BoundNetLog());
+ EXPECT_EQ(net::ERR_IO_PENDING, rv);
+
+ rv = callback.WaitForResult();
EXPECT_EQ(net::OK, rv);
net::ClientSocket* transport = new net::TCPClientSocket(addr, NULL);
« no previous file with comments | « net/base/mock_host_resolver.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698