| Index: chrome/test/data/webui/net_internals/log_view_painter.js
|
| diff --git a/chrome/test/data/webui/net_internals/log_view_painter.js b/chrome/test/data/webui/net_internals/log_view_painter.js
|
| index e872a834e9d929661090605cd8af1eddab8e6131..0a8fb1550be9d236b174641656f7a7dd2673d442 100644
|
| --- a/chrome/test/data/webui/net_internals/log_view_painter.js
|
| +++ b/chrome/test/data/webui/net_internals/log_view_painter.js
|
| @@ -122,6 +122,36 @@ TEST_F('NetInternalsTest', 'netInternalsLogViewPainterStripInfo', function() {
|
| });
|
|
|
| /**
|
| + * Check that stripCookiesAndLoginInfo correctly removes HTTP/2 GOAWAY frame
|
| + * debug data.
|
| + */
|
| +TEST_F('NetInternalsTest', 'netInternalsLogViewPainterStripGoAway', function() {
|
| + var entry = {
|
| + 'params': {
|
| + 'active_streams': 1,
|
| + 'goaway_debug_data': 'potentially privacy sensitive information',
|
| + 'last_accepted_stream_id': 1,
|
| + 'status': 0,
|
| + 'unclaimed_streams': 0,
|
| + },
|
| + 'phase': 0,
|
| + 'source': {'id': 404, 'type': 5},
|
| + 'time': '49236780',
|
| + 'type': 161,
|
| + };
|
| +
|
| + var stripped = stripCookiesAndLoginInfo(entry);
|
| +
|
| + // The entry should be duplicated, so the original still has the deleted
|
| + // information.
|
| + expectNotEquals(stripped, entry);
|
| + expectEquals('[41 bytes were stripped]',
|
| + stripped.params.goaway_debug_data);
|
| +
|
| + testDone();
|
| +});
|
| +
|
| +/**
|
| * Tests the formatting of log entries to fixed width text.
|
| */
|
| TEST_F('NetInternalsTest', 'netInternalsLogViewPainterPrintAsText', function() {
|
|
|