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

Unified Diff: chrome/test/data/webui/net_internals/log_view_painter.js

Issue 2447803002: Pretty print CERT_CT_COMPLIANCE_CHECKED events in the NetLog viewer. (Closed)
Patch Set: added accompanying unit-test Created 4 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
« no previous file with comments | « chrome/browser/resources/net_internals/log_view_painter.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d59d78a98ccdef679f13372638e697693f15f469..5e48fe47906b3786ec40bc3796fcaf45d13fb359 100644
--- a/chrome/test/data/webui/net_internals/log_view_painter.js
+++ b/chrome/test/data/webui/net_internals/log_view_painter.js
@@ -190,6 +190,7 @@ TEST_F('NetInternalsTest', 'netInternalsLogViewPainterPrintAsText', function() {
runTestCase(painterTestHexEncodedBytes());
runTestCase(painterTestCertVerifierJob());
runTestCase(painterTestCertVerifyResult());
+ runTestCase(painterTestCheckedCert());
runTestCase(painterTestProxyConfigOneProxyAllSchemes());
runTestCase(painterTestProxyConfigTwoProxiesAllSchemes());
runTestCase(painterTestDontStripCookiesURLRequest());
@@ -1587,6 +1588,47 @@ function painterTestCertVerifyResult() {
}
/**
+ * Tests the formatting of checked certificates
+ */
+function painterTestCheckedCert() {
+ var testCase = {};
+ testCase.tickOffset = '1337911098481';
+
+ testCase.logEntries = [
+ {
+ 'params': {
+ 'certificate': {
+ 'certificates': [
+ '-----BEGIN CERTIFICATE-----\n1\n-----END CERTIFICATE-----\n',
+ '-----BEGIN CERTIFICATE-----\n2\n-----END CERTIFICATE-----\n'
+ ]
+ }
+ },
+ 'phase': EventPhase.PHASE_NONE,
+ 'source': {
+ 'id': 752,
+ 'type': EventSourceType.SOCKET
+ },
+ 'time': '954124697',
+ 'type': EventType.CERT_CT_COMPLIANCE_CHECKED
+ }
+ ];
+
+ testCase.expectedText =
+ 't=1338865223178 [st=0] CERT_CT_COMPLIANCE_CHECKED\n' +
+ ' --> certificate =\n' +
+ ' -----BEGIN CERTIFICATE-----\n' +
+ ' 1\n' +
+ ' -----END CERTIFICATE-----\n' +
+ ' \n' +
+ ' -----BEGIN CERTIFICATE-----\n' +
+ ' 2\n' +
+ ' -----END CERTIFICATE-----';
+
+ return testCase;
+}
+
+/**
* Tests the formatting of proxy configurations when using one proxy server for
* all URL schemes.
*/
« no previous file with comments | « chrome/browser/resources/net_internals/log_view_painter.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698