diff options
author | estade <estade@chromium.org> | 2015-05-15 18:02:34 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-16 01:02:46 +0000 |
commit | 8d04646294767ea1f3a7da596547b465d50cb4d1 (patch) | |
tree | 6bd6194b6fe2ac226114f9125570bd605e9b6d42 /net/http/http_server_properties_manager_unittest.cc | |
parent | f39e5aff5aae8451a7ef190a2fc822bf80c4e30d (diff) | |
download | chromium_src-8d04646294767ea1f3a7da596547b465d50cb4d1.zip chromium_src-8d04646294767ea1f3a7da596547b465d50cb4d1.tar.gz chromium_src-8d04646294767ea1f3a7da596547b465d50cb4d1.tar.bz2 |
Convert JsonWriter::Write to taking a const ref for the in-param
Clearer API; flushes out a lot of unnecessary heap allocations.
depends on https://codereview.chromium.org/1129083003/
BUG=none
Review URL: https://codereview.chromium.org/1131113004
Cr-Commit-Position: refs/heads/master@{#330255}
Diffstat (limited to 'net/http/http_server_properties_manager_unittest.cc')
-rw-r--r-- | net/http/http_server_properties_manager_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http/http_server_properties_manager_unittest.cc b/net/http/http_server_properties_manager_unittest.cc index 7ab6ef0..414613c 100644 --- a/net/http/http_server_properties_manager_unittest.cc +++ b/net/http/http_server_properties_manager_unittest.cc @@ -708,7 +708,7 @@ TEST_F(HttpServerPropertiesManagerTest, UpdateCacheWithPrefs) { ASSERT_NE(nullptr, http_server_properties); std::string preferences_json; EXPECT_TRUE( - base::JSONWriter::Write(http_server_properties, &preferences_json)); + base::JSONWriter::Write(*http_server_properties, &preferences_json)); EXPECT_EQ(expected_json, preferences_json); } |