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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 taskQueue.addTask(new ClearCacheTask()); | 255 taskQueue.addTask(new ClearCacheTask()); |
256 taskQueue.addTask(new WaitForEntryDestructionTask('somewhere.com')); | 256 taskQueue.addTask(new WaitForEntryDestructionTask('somewhere.com')); |
257 taskQueue.addTask(new WaitForEntryDestructionTask('nowhere.com')); | 257 taskQueue.addTask(new WaitForEntryDestructionTask('nowhere.com')); |
258 } | 258 } |
259 taskQueue.run(true); | 259 taskQueue.run(true); |
260 }); | 260 }); |
261 | 261 |
262 // Flaky on Win Debug build - crbug.com/517484 | 262 // Flaky on Win Debug build - crbug.com/517484 |
263 GEN('#if defined(OS_WIN)'); | 263 GEN('#if defined(OS_WIN)'); |
264 GEN('# define MAYBE_netInternalsDnsViewIncognitoClears \\'); | 264 GEN('# define MAYBE_netInternalsDnsViewIncognitoClears \\'); |
265 GEN(' DISABLED_netInternalsDnsViewIncognitoClears'); | 265 GEN(' netInternalsDnsViewIncognitoClears'); |
266 GEN('#else'); | 266 GEN('#else'); |
267 GEN('# define MAYBE_netInternalsDnsViewIncognitoClears \\'); | 267 GEN('# define MAYBE_netInternalsDnsViewIncognitoClears \\'); |
268 GEN(' netInternalsDnsViewIncognitoClears'); | 268 GEN(' netInternalsDnsViewIncognitoClears'); |
269 GEN('#endif'); | 269 GEN('#endif'); |
270 | 270 |
271 /** | 271 /** |
272 * Makes sure that openning and then closing an incognito window clears the | 272 * Makes sure that openning and then closing an incognito window clears the |
273 * DNS cache. To keep things simple, we add a fake cache entry ourselves, | 273 * DNS cache. To keep things simple, we add a fake cache entry ourselves, |
274 * rather than having the incognito browser create one. | 274 * rather than having the incognito browser create one. |
275 */ | 275 */ |
276 TEST_F('NetInternalsTest', | 276 TEST_F('NetInternalsTest', |
277 'MAYBE_netInternalsDnsViewIncognitoClears', function() { | 277 'MAYBE_netInternalsDnsViewIncognitoClears', function() { |
278 NetInternalsTest.switchToView('dns'); | 278 NetInternalsTest.switchToView('dns'); |
279 var taskQueue = new NetInternalsTest.TaskQueue(true); | 279 var taskQueue = new NetInternalsTest.TaskQueue(true); |
280 taskQueue.addTask(new NetInternalsTest.CreateIncognitoBrowserTask()); | 280 taskQueue.addTask(new NetInternalsTest.CreateIncognitoBrowserTask()); |
281 taskQueue.addTask(new AddCacheEntryTask( | 281 taskQueue.addTask(new AddCacheEntryTask( |
282 'somewhere.com', '1.2.3.4', 0, true)); | 282 'somewhere.com', '1.2.3.4', 0, true)); |
283 taskQueue.addTask(NetInternalsTest.getCloseIncognitoBrowserTask()); | 283 taskQueue.addTask(NetInternalsTest.getCloseIncognitoBrowserTask()); |
284 taskQueue.addTask(new WaitForEntryDestructionTask('somewhere.com')); | 284 taskQueue.addTask(new WaitForEntryDestructionTask('somewhere.com')); |
285 taskQueue.run(true); | 285 taskQueue.run(true); |
286 }); | 286 }); |
287 | 287 |
288 })(); // Anonymous namespace | 288 })(); // Anonymous namespace |
OLD | NEW |