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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 'id': 146, | 304 'id': 146, |
305 'type': EventSourceType.URL_REQUEST | 305 'type': EventSourceType.URL_REQUEST |
306 }, | 306 }, |
307 'time': '953534830', | 307 'time': '953534830', |
308 'type': EventType.HTTP_STREAM_REQUEST | 308 'type': EventType.HTTP_STREAM_REQUEST |
309 }, | 309 }, |
310 { | 310 { |
311 'params': { | 311 'params': { |
312 'source_dependency': { | 312 'source_dependency': { |
313 'id': 149, | 313 'id': 149, |
314 'type': 11 | 314 'type': EventSourceType.HTTP_STREAM_JOB |
315 } | 315 } |
316 }, | 316 }, |
317 'phase': EventPhase.PHASE_NONE, | 317 'phase': EventPhase.PHASE_NONE, |
318 'source': { | 318 'source': { |
319 'id': 146, | 319 'id': 146, |
320 'type': EventSourceType.URL_REQUEST | 320 'type': EventSourceType.URL_REQUEST |
321 }, | 321 }, |
322 'time': '953534898', | 322 'time': '953534898', |
323 'type': EventType.HTTP_STREAM_REQUEST_BOUND_TO_JOB | 323 'type': EventType.HTTP_STREAM_REQUEST_BOUND_TO_JOB |
324 }, | 324 }, |
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1070 */ | 1070 */ |
1071 function painterTestHexEncodedBytes() { | 1071 function painterTestHexEncodedBytes() { |
1072 var testCase = {}; | 1072 var testCase = {}; |
1073 testCase.tickOffset = '1337911098473'; | 1073 testCase.tickOffset = '1337911098473'; |
1074 | 1074 |
1075 testCase.logEntries = [ | 1075 testCase.logEntries = [ |
1076 { | 1076 { |
1077 'params': { | 1077 'params': { |
1078 'source_dependency': { | 1078 'source_dependency': { |
1079 'id': 634, | 1079 'id': 634, |
1080 'type': 4 | 1080 'type': EventSourceType.CONNECT_JOB |
1081 } | 1081 } |
1082 }, | 1082 }, |
1083 'phase': EventPhase.PHASE_BEGIN, | 1083 'phase': EventPhase.PHASE_BEGIN, |
1084 'source': { | 1084 'source': { |
1085 'id': 637, | 1085 'id': 637, |
1086 'type': EventSourceType.SOCKET | 1086 'type': EventSourceType.SOCKET |
1087 }, | 1087 }, |
1088 'time': '953918459', | 1088 'time': '953918459', |
1089 'type': EventType.SOCKET_ALIVE | 1089 'type': EventType.SOCKET_ALIVE |
1090 }, | 1090 }, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1132 'id': 637, | 1132 'id': 637, |
1133 'type': EventSourceType.SOCKET | 1133 'type': EventSourceType.SOCKET |
1134 }, | 1134 }, |
1135 'time': '953918465', | 1135 'time': '953918465', |
1136 'type': EventType.TCP_CONNECT | 1136 'type': EventType.TCP_CONNECT |
1137 }, | 1137 }, |
1138 { | 1138 { |
1139 'params': { | 1139 'params': { |
1140 'source_dependency': { | 1140 'source_dependency': { |
1141 'id': 628, | 1141 'id': 628, |
1142 'type': 11 | 1142 'type': EventSourceType.HTTP_STREAM_JOB |
1143 } | 1143 } |
1144 }, | 1144 }, |
1145 'phase': EventPhase.PHASE_BEGIN, | 1145 'phase': EventPhase.PHASE_BEGIN, |
1146 'source': { | 1146 'source': { |
1147 'id': 637, | 1147 'id': 637, |
1148 'type': EventSourceType.SOCKET | 1148 'type': EventSourceType.SOCKET |
1149 }, | 1149 }, |
1150 'time': '953918472', | 1150 'time': '953918472', |
1151 'type': EventType.SOCKET_IN_USE | 1151 'type': EventType.SOCKET_IN_USE |
1152 }, | 1152 }, |
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1767 ' --> method = "GET"\n' + | 1767 ' --> method = "GET"\n' + |
1768 ' --> url = "http://www.MagicPonyShopper.com"\n' + | 1768 ' --> url = "http://www.MagicPonyShopper.com"\n' + |
1769 't=1338864774145 [st=151] -HTTP_STREAM_REQUEST\n' + | 1769 't=1338864774145 [st=151] -HTTP_STREAM_REQUEST\n' + |
1770 't=1338864774151 [st=157] -URL_REQUEST_START_JOB\n' + | 1770 't=1338864774151 [st=157] -URL_REQUEST_START_JOB\n' + |
1771 't=1338864774369 [st=375] -REQUEST_ALIVE'; | 1771 't=1338864774369 [st=375] -REQUEST_ALIVE'; |
1772 | 1772 |
1773 return testCase; | 1773 return testCase; |
1774 } | 1774 } |
1775 | 1775 |
1776 })(); // Anonymous namespace | 1776 })(); // Anonymous namespace |
OLD | NEW |