| 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 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1303 */ | 1303 */ |
| 1304 function painterTestHexEncodedBytes() { | 1304 function painterTestHexEncodedBytes() { |
| 1305 var testCase = {}; | 1305 var testCase = {}; |
| 1306 testCase.tickOffset = '1337911098473'; | 1306 testCase.tickOffset = '1337911098473'; |
| 1307 | 1307 |
| 1308 testCase.logEntries = [ | 1308 testCase.logEntries = [ |
| 1309 { | 1309 { |
| 1310 'params': { | 1310 'params': { |
| 1311 'source_dependency': { | 1311 'source_dependency': { |
| 1312 'id': 634, | 1312 'id': 634, |
| 1313 'type': EventSourceType.CONNECT_JOB | 1313 'type': EventSourceType.TRANSPORT_CONNECT_JOB |
| 1314 } | 1314 } |
| 1315 }, | 1315 }, |
| 1316 'phase': EventPhase.PHASE_BEGIN, | 1316 'phase': EventPhase.PHASE_BEGIN, |
| 1317 'source': { | 1317 'source': { |
| 1318 'id': 637, | 1318 'id': 637, |
| 1319 'type': EventSourceType.SOCKET | 1319 'type': EventSourceType.SOCKET |
| 1320 }, | 1320 }, |
| 1321 'time': '953918459', | 1321 'time': '953918459', |
| 1322 'type': EventType.SOCKET_ALIVE | 1322 'type': EventType.SOCKET_ALIVE |
| 1323 }, | 1323 }, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1410 'id': 637, | 1410 'id': 637, |
| 1411 'type': EventSourceType.SOCKET | 1411 'type': EventSourceType.SOCKET |
| 1412 }, | 1412 }, |
| 1413 'time': '953918596', | 1413 'time': '953918596', |
| 1414 'type': EventType.SOCKET_BYTES_RECEIVED | 1414 'type': EventType.SOCKET_BYTES_RECEIVED |
| 1415 } | 1415 } |
| 1416 ]; | 1416 ]; |
| 1417 | 1417 |
| 1418 testCase.expectedText = | 1418 testCase.expectedText = |
| 1419 't=1338865016932 [st= 0] +SOCKET_ALIVE [dt=?]\n' + | 1419 't=1338865016932 [st= 0] +SOCKET_ALIVE [dt=?]\n' + |
| 1420 ' --> source_dependency = 634 (CONNECT_JOB)\n' + | 1420 ' --> source_dependency = 634 (TRANSPORT_CONNECT_JOB' + |
| 1421 ')\n' + |
| 1421 't=1338865016933 [st= 1] +TCP_CONNECT [dt=5]\n' + | 1422 't=1338865016933 [st= 1] +TCP_CONNECT [dt=5]\n' + |
| 1422 ' --> address_list = ["184.30.253.15:80"]\n' + | 1423 ' --> address_list = ["184.30.253.15:80"]\n' + |
| 1423 't=1338865016934 [st= 2] TCP_CONNECT_ATTEMPT [dt=3]\n' + | 1424 't=1338865016934 [st= 2] TCP_CONNECT_ATTEMPT [dt=3]\n' + |
| 1424 ' --> address = "184.30.253.15:80"\n' + | 1425 ' --> address = "184.30.253.15:80"\n' + |
| 1425 't=1338865016938 [st= 6] -TCP_CONNECT\n' + | 1426 't=1338865016938 [st= 6] -TCP_CONNECT\n' + |
| 1426 ' --> source_address = "127.0.0.1:54041"\n' + | 1427 ' --> source_address = "127.0.0.1:54041"\n' + |
| 1427 't=1338865016945 [st= 13] +SOCKET_IN_USE [dt=?]\n' + | 1428 't=1338865016945 [st= 13] +SOCKET_IN_USE [dt=?]\n' + |
| 1428 ' --> source_dependency = 628 (HTTP_STREAM_JOB)\n' + | 1429 ' --> source_dependency = 628 (HTTP_STREAM_JOB)\n' + |
| 1429 't=1338865016957 [st= 25] SOCKET_BYTES_SENT\n' + | 1430 't=1338865016957 [st= 25] SOCKET_BYTES_SENT\n' + |
| 1430 ' --> byte_count = 780\n' + | 1431 ' --> byte_count = 780\n' + |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2240 | 2241 |
| 2241 testCase.expectedText = | 2242 testCase.expectedText = |
| 2242 't= 2 [st= 0] +REQUEST_ALIVE [dt=789+]\n' + | 2243 't= 2 [st= 0] +REQUEST_ALIVE [dt=789+]\n' + |
| 2243 't=152 [st=150] HTTP_STREAM_REQUEST [dt=1]\n' + | 2244 't=152 [st=150] HTTP_STREAM_REQUEST [dt=1]\n' + |
| 2244 't=791 [st=789]'; | 2245 't=791 [st=789]'; |
| 2245 | 2246 |
| 2246 return testCase; | 2247 return testCase; |
| 2247 } | 2248 } |
| 2248 | 2249 |
| 2249 })(); // Anonymous namespace | 2250 })(); // Anonymous namespace |
| OLD | NEW |