| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Include test fixture. | 5 // Include test fixture. |
| 6 GEN_INCLUDE(['net_internals_test.js']); | 6 GEN_INCLUDE(['net_internals_test.js']); |
| 7 | 7 |
| 8 // Anonymous namespace | 8 // Anonymous namespace |
| 9 (function() { | 9 (function() { |
| 10 | 10 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 runTestCase(painterTestURLRequest()); | 183 runTestCase(painterTestURLRequest()); |
| 184 runTestCase(painterTestURLRequestIncomplete()); | 184 runTestCase(painterTestURLRequestIncomplete()); |
| 185 runTestCase(painterTestURLRequestIncompleteFromLoadedLog()); | 185 runTestCase(painterTestURLRequestIncompleteFromLoadedLog()); |
| 186 runTestCase(painterTestURLRequestIncompleteFromLoadedLogSingleEvent()); | 186 runTestCase(painterTestURLRequestIncompleteFromLoadedLogSingleEvent()); |
| 187 runTestCase(painterTestNetError()); | 187 runTestCase(painterTestNetError()); |
| 188 runTestCase(painterTestQuicError()); | 188 runTestCase(painterTestQuicError()); |
| 189 runTestCase(painterTestQuicCryptoHandshakeMessage()); | 189 runTestCase(painterTestQuicCryptoHandshakeMessage()); |
| 190 runTestCase(painterTestHexEncodedBytes()); | 190 runTestCase(painterTestHexEncodedBytes()); |
| 191 runTestCase(painterTestCertVerifierJob()); | 191 runTestCase(painterTestCertVerifierJob()); |
| 192 runTestCase(painterTestCertVerifyResult()); | 192 runTestCase(painterTestCertVerifyResult()); |
| 193 runTestCase(painterTestCheckedCert()); |
| 193 runTestCase(painterTestProxyConfigOneProxyAllSchemes()); | 194 runTestCase(painterTestProxyConfigOneProxyAllSchemes()); |
| 194 runTestCase(painterTestProxyConfigTwoProxiesAllSchemes()); | 195 runTestCase(painterTestProxyConfigTwoProxiesAllSchemes()); |
| 195 runTestCase(painterTestDontStripCookiesURLRequest()); | 196 runTestCase(painterTestDontStripCookiesURLRequest()); |
| 196 runTestCase(painterTestStripCookiesURLRequest()); | 197 runTestCase(painterTestStripCookiesURLRequest()); |
| 197 runTestCase(painterTestDontStripCookiesSPDYSession()); | 198 runTestCase(painterTestDontStripCookiesSPDYSession()); |
| 198 runTestCase(painterTestStripCookiesSPDYSession()); | 199 runTestCase(painterTestStripCookiesSPDYSession()); |
| 199 runTestCase(painterTestSpdyURLRequestDontStripCookies()); | 200 runTestCase(painterTestSpdyURLRequestDontStripCookies()); |
| 200 runTestCase(painterTestSpdyURLRequestStripCookies()); | 201 runTestCase(painterTestSpdyURLRequestStripCookies()); |
| 201 runTestCase(painterTestExtraCustomParameter()); | 202 runTestCase(painterTestExtraCustomParameter()); |
| 202 runTestCase(painterTestMissingCustomParameter()); | 203 runTestCase(painterTestMissingCustomParameter()); |
| (...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 ' --> has_md4 = true\n' + | 1581 ' --> has_md4 = true\n' + |
| 1581 ' --> is_issued_by_known_root = true\n' + | 1582 ' --> is_issued_by_known_root = true\n' + |
| 1582 ' --> is_issued_by_additional_trust_anchor =' + | 1583 ' --> is_issued_by_additional_trust_anchor =' + |
| 1583 ' false\n --> common_name_fallback_used = true\n' + | 1584 ' false\n --> common_name_fallback_used = true\n' + |
| 1584 ' --> public_key_hashes = ["hash1","hash2"]'; | 1585 ' --> public_key_hashes = ["hash1","hash2"]'; |
| 1585 | 1586 |
| 1586 return testCase; | 1587 return testCase; |
| 1587 } | 1588 } |
| 1588 | 1589 |
| 1589 /** | 1590 /** |
| 1591 * Tests the formatting of checked certificates |
| 1592 */ |
| 1593 function painterTestCheckedCert() { |
| 1594 var testCase = {}; |
| 1595 testCase.tickOffset = '1337911098481'; |
| 1596 |
| 1597 testCase.logEntries = [ |
| 1598 { |
| 1599 'params': { |
| 1600 'certificate': { |
| 1601 'certificates': [ |
| 1602 '-----BEGIN CERTIFICATE-----\n1\n-----END CERTIFICATE-----\n', |
| 1603 '-----BEGIN CERTIFICATE-----\n2\n-----END CERTIFICATE-----\n' |
| 1604 ] |
| 1605 } |
| 1606 }, |
| 1607 'phase': EventPhase.PHASE_NONE, |
| 1608 'source': { |
| 1609 'id': 752, |
| 1610 'type': EventSourceType.SOCKET |
| 1611 }, |
| 1612 'time': '954124697', |
| 1613 'type': EventType.CERT_CT_COMPLIANCE_CHECKED |
| 1614 } |
| 1615 ]; |
| 1616 |
| 1617 testCase.expectedText = |
| 1618 't=1338865223178 [st=0] CERT_CT_COMPLIANCE_CHECKED\n' + |
| 1619 ' --> certificate =\n' + |
| 1620 ' -----BEGIN CERTIFICATE-----\n' + |
| 1621 ' 1\n' + |
| 1622 ' -----END CERTIFICATE-----\n' + |
| 1623 ' \n' + |
| 1624 ' -----BEGIN CERTIFICATE-----\n' + |
| 1625 ' 2\n' + |
| 1626 ' -----END CERTIFICATE-----'; |
| 1627 |
| 1628 return testCase; |
| 1629 } |
| 1630 |
| 1631 /** |
| 1590 * Tests the formatting of proxy configurations when using one proxy server for | 1632 * Tests the formatting of proxy configurations when using one proxy server for |
| 1591 * all URL schemes. | 1633 * all URL schemes. |
| 1592 */ | 1634 */ |
| 1593 function painterTestProxyConfigOneProxyAllSchemes() { | 1635 function painterTestProxyConfigOneProxyAllSchemes() { |
| 1594 var testCase = {}; | 1636 var testCase = {}; |
| 1595 testCase.tickOffset = '1337911098481'; | 1637 testCase.tickOffset = '1337911098481'; |
| 1596 | 1638 |
| 1597 testCase.logEntries = [ | 1639 testCase.logEntries = [ |
| 1598 { | 1640 { |
| 1599 'params': { | 1641 'params': { |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2198 | 2240 |
| 2199 testCase.expectedText = | 2241 testCase.expectedText = |
| 2200 't= 2 [st= 0] +REQUEST_ALIVE [dt=789+]\n' + | 2242 't= 2 [st= 0] +REQUEST_ALIVE [dt=789+]\n' + |
| 2201 't=152 [st=150] HTTP_STREAM_REQUEST [dt=1]\n' + | 2243 't=152 [st=150] HTTP_STREAM_REQUEST [dt=1]\n' + |
| 2202 't=791 [st=789]'; | 2244 't=791 [st=789]'; |
| 2203 | 2245 |
| 2204 return testCase; | 2246 return testCase; |
| 2205 } | 2247 } |
| 2206 | 2248 |
| 2207 })(); // Anonymous namespace | 2249 })(); // Anonymous namespace |
| OLD | NEW |