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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 } | 238 } |
239 } | 239 } |
240 }; | 240 }; |
241 | 241 |
242 /** | 242 /** |
243 * Loads a page and checks bandwidth statistics. | 243 * Loads a page and checks bandwidth statistics. |
244 */ | 244 */ |
245 TEST_F('NetInternalsTest', 'netInternalsSessionBandwidthSucceed', function() { | 245 TEST_F('NetInternalsTest', 'netInternalsSessionBandwidthSucceed', function() { |
246 var taskQueue = new NetInternalsTest.TaskQueue(true); | 246 var taskQueue = new NetInternalsTest.TaskQueue(true); |
247 taskQueue.addTask( | 247 taskQueue.addTask( |
248 new NetInternalsTest.GetTestServerURLTask('files/title1.html')); | 248 new NetInternalsTest.GetTestServerURLTask('/title1.html')); |
249 // Load a page with a content length of 66 bytes and a 45-byte favicon. | 249 // Load a page with a content length of 66 bytes and a 45-byte favicon. |
250 taskQueue.addTask(new BandwidthTask(66, 45)); | 250 taskQueue.addTask(new BandwidthTask(66, 45)); |
251 taskQueue.run(); | 251 taskQueue.run(); |
252 }); | 252 }); |
253 | 253 |
254 /** | 254 /** |
255 * Checks data reduction proxy info when it is enabled. | 255 * Checks data reduction proxy info when it is enabled. |
256 */ | 256 */ |
257 TEST_F('NetInternalsTest', | 257 TEST_F('NetInternalsTest', |
258 'DISABLED_netInternalsDataReductionProxyEnabled', | 258 'DISABLED_netInternalsDataReductionProxyEnabled', |
259 function() { | 259 function() { |
260 var taskQueue = new NetInternalsTest.TaskQueue(true); | 260 var taskQueue = new NetInternalsTest.TaskQueue(true); |
261 taskQueue.addTask(new DataReductionProxyTask(true)); | 261 taskQueue.addTask(new DataReductionProxyTask(true)); |
262 taskQueue.run(); | 262 taskQueue.run(); |
263 }); | 263 }); |
264 | 264 |
265 /** | 265 /** |
266 * Checks data reduction proxy info when it is disabled. | 266 * Checks data reduction proxy info when it is disabled. |
267 */ | 267 */ |
268 TEST_F('NetInternalsTest', | 268 TEST_F('NetInternalsTest', |
269 'DISABLED_netInternalsDataReductionProxyDisabled', | 269 'DISABLED_netInternalsDataReductionProxyDisabled', |
270 function() { | 270 function() { |
271 var taskQueue = new NetInternalsTest.TaskQueue(true); | 271 var taskQueue = new NetInternalsTest.TaskQueue(true); |
272 taskQueue.addTask(new DataReductionProxyTask(false)); | 272 taskQueue.addTask(new DataReductionProxyTask(false)); |
273 taskQueue.run(); | 273 taskQueue.run(); |
274 }); | 274 }); |
275 | 275 |
276 })(); // Anonymous namespace | 276 })(); // Anonymous namespace |
OLD | NEW |