| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 235 |
| 236 this.dataReductionProxyInfoVerified_ = true; | 236 this.dataReductionProxyInfoVerified_ = true; |
| 237 this.completeIfDone(); | 237 this.completeIfDone(); |
| 238 } | 238 } |
| 239 } | 239 } |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 // Flaky on Win Debug build - crbug.com/517484 | 242 // Flaky on Win Debug build - crbug.com/517484 |
| 243 GEN('#if defined(OS_WIN)'); | 243 GEN('#if defined(OS_WIN)'); |
| 244 GEN('# define MAYBE_netInternalsSessionBandwidthSucceed \\'); | 244 GEN('# define MAYBE_netInternalsSessionBandwidthSucceed \\'); |
| 245 GEN(' DISABLED_netInternalsSessionBandwidthSucceed'); | 245 GEN(' netInternalsSessionBandwidthSucceed'); |
| 246 GEN('#else'); | 246 GEN('#else'); |
| 247 GEN('# define MAYBE_netInternalsSessionBandwidthSucceed \\'); | 247 GEN('# define MAYBE_netInternalsSessionBandwidthSucceed \\'); |
| 248 GEN(' netInternalsSessionBandwidthSucceed'); | 248 GEN(' netInternalsSessionBandwidthSucceed'); |
| 249 GEN('#endif'); | 249 GEN('#endif'); |
| 250 | 250 |
| 251 /** | 251 /** |
| 252 * Loads a page and checks bandwidth statistics. | 252 * Loads a page and checks bandwidth statistics. |
| 253 */ | 253 */ |
| 254 TEST_F('NetInternalsTest', | 254 TEST_F('NetInternalsTest', |
| 255 'MAYBE_netInternalsSessionBandwidthSucceed', function() { | 255 'MAYBE_netInternalsSessionBandwidthSucceed', function() { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 277 */ | 277 */ |
| 278 TEST_F('NetInternalsTest', | 278 TEST_F('NetInternalsTest', |
| 279 'DISABLED_netInternalsDataReductionProxyDisabled', | 279 'DISABLED_netInternalsDataReductionProxyDisabled', |
| 280 function() { | 280 function() { |
| 281 var taskQueue = new NetInternalsTest.TaskQueue(true); | 281 var taskQueue = new NetInternalsTest.TaskQueue(true); |
| 282 taskQueue.addTask(new DataReductionProxyTask(false)); | 282 taskQueue.addTask(new DataReductionProxyTask(false)); |
| 283 taskQueue.run(); | 283 taskQueue.run(); |
| 284 }); | 284 }); |
| 285 | 285 |
| 286 })(); // Anonymous namespace | 286 })(); // Anonymous namespace |
| OLD | NEW |