| 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
|
|
|