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

Unified Diff: net/http/http_log_util_unittest.cc

Issue 1360253002: Log GOAWAY frame debug data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize |goaway_count_|. Created 5 years, 2 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: net/http/http_log_util_unittest.cc
diff --git a/net/http/http_log_util_unittest.cc b/net/http/http_log_util_unittest.cc
index bd9c79f0680d92bea60e602a6d087ae4a6a38b15..6b8d48e378ff65074ff815c0450003ca4f539442 100644
--- a/net/http/http_log_util_unittest.cc
+++ b/net/http/http_log_util_unittest.cc
@@ -68,4 +68,14 @@ TEST(HttpLogUtilTest, ElideHeaderValueForNetLog) {
"WWW-Authenticate", "NTLM 1234 "));
}
+TEST(HttpLogUtilTest, ElideGoAwayDebugDataForNetLog) {
+ // Only elide for appropriate log level.
+ EXPECT_EQ(
+ "[6 bytes were stripped]",
+ ElideGoAwayDebugDataForNetLog(NetLogCaptureMode::Default(), "foobar"));
+ EXPECT_EQ("foobar",
+ ElideGoAwayDebugDataForNetLog(
+ NetLogCaptureMode::IncludeCookiesAndCredentials(), "foobar"));
+}
+
} // namspace net

Powered by Google App Engine
This is Rietveld 408576698