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

Unified Diff: util/net/http_body_test.cc

Issue 700383007: Use implicit_cast<> instead of static_cast<> whenever possible (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 1 month 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: util/net/http_body_test.cc
diff --git a/util/net/http_body_test.cc b/util/net/http_body_test.cc
index cccc31217130bc0bdaee63d088808349ac887ded..d650497819ace558fcc919cf5b6f2de2db098801 100644
--- a/util/net/http_body_test.cc
+++ b/util/net/http_body_test.cc
@@ -46,7 +46,7 @@ TEST(StringHTTPBodyStream, SmallString) {
std::string string("Hello, world");
StringHTTPBodyStream stream(string);
- EXPECT_EQ(static_cast<ssize_t>(string.length()),
+ EXPECT_EQ(implicit_cast<ssize_t>(string.length()),
stream.GetBytesBuffer(buf, sizeof(buf)));
std::string actual(reinterpret_cast<const char*>(buf), string.length());

Powered by Google App Engine
This is Rietveld 408576698