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

Unified Diff: chrome/test/chromedriver/net/net_util_unittest.cc

Issue 15836003: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 7 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/test/chromedriver/net/net_util_unittest.cc
diff --git a/chrome/test/chromedriver/net/net_util_unittest.cc b/chrome/test/chromedriver/net/net_util_unittest.cc
index f05739015364ea31eecd111b005db05157021d1f..480768d6e20ec43620c659186668a8efd259bdc8 100644
--- a/chrome/test/chromedriver/net/net_util_unittest.cc
+++ b/chrome/test/chromedriver/net/net_util_unittest.cc
@@ -113,26 +113,27 @@ class FetchUrlTest : public testing::Test,
TEST_F(FetchUrlTest, Http200) {
std::string response("stuff");
- ASSERT_TRUE(FetchUrl(server_url_, context_getter_, &response));
+ ASSERT_TRUE(FetchUrl(server_url_, context_getter_.get(), &response));
ASSERT_STREQ("hello", response.c_str());
}
TEST_F(FetchUrlTest, HttpNon200) {
response_ = kSend404;
std::string response("stuff");
- ASSERT_FALSE(FetchUrl(server_url_, context_getter_, &response));
+ ASSERT_FALSE(FetchUrl(server_url_, context_getter_.get(), &response));
ASSERT_STREQ("stuff", response.c_str());
}
TEST_F(FetchUrlTest, ConnectionClose) {
response_ = kClose;
std::string response("stuff");
- ASSERT_FALSE(FetchUrl(server_url_, context_getter_, &response));
+ ASSERT_FALSE(FetchUrl(server_url_, context_getter_.get(), &response));
ASSERT_STREQ("stuff", response.c_str());
}
TEST_F(FetchUrlTest, NoServer) {
std::string response("stuff");
- ASSERT_FALSE(FetchUrl("http://localhost:33333", context_getter_, &response));
+ ASSERT_FALSE(
+ FetchUrl("http://localhost:33333", context_getter_.get(), &response));
ASSERT_STREQ("stuff", response.c_str());
}
« no previous file with comments | « chrome/test/chromedriver/net/adb_client_socket.cc ('k') | chrome/test/chromedriver/net/sync_websocket_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698