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