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

Unified Diff: chrome/test/chromedriver/server/http_handler_unittest.cc

Issue 1131113004: Convert JsonWriter::Write to taking a const ref for the in-param (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another rebase Created 5 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
« no previous file with comments | « chrome/test/chromedriver/server/http_handler.cc ('k') | chromeos/dbus/shill_client_unittest_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/server/http_handler_unittest.cc
diff --git a/chrome/test/chromedriver/server/http_handler_unittest.cc b/chrome/test/chromedriver/server/http_handler_unittest.cc
index 55eaeb73d7ba8707475daf49fc438261d7e7be13..59c191f3c22966ab59d9599f164c7ddc9e094dc7 100644
--- a/chrome/test/chromedriver/server/http_handler_unittest.cc
+++ b/chrome/test/chromedriver/server/http_handler_unittest.cc
@@ -74,7 +74,7 @@ TEST(HttpHandlerTest, HandleNewSession) {
body.SetInteger("value", 1);
body.SetString("sessionId", "session_id");
std::string json;
- base::JSONWriter::Write(&body, &json);
+ base::JSONWriter::Write(body, &json);
ASSERT_EQ(json, response.body());
}
@@ -119,7 +119,7 @@ TEST(HttpHandlerTest, HandleCommand) {
body.SetInteger("value", 1);
body.SetString("sessionId", "session_id");
std::string json;
- base::JSONWriter::Write(&body, &json);
+ base::JSONWriter::Write(body, &json);
ASSERT_EQ(json, response.body());
}
« no previous file with comments | « chrome/test/chromedriver/server/http_handler.cc ('k') | chromeos/dbus/shill_client_unittest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698