Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: chrome/test/data/webui/net_internals/dns_view.js

Issue 8775067: Clear DNS cache and passive log collected on incognito close. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove call to IOThread::message_loop() Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Anonymous namespace 5 // Anonymous namespace
6 (function() { 6 (function() {
7 7
8 /** 8 /**
9 * Checks the display on the DNS tab against the information it should be 9 * Checks the display on the DNS tab against the information it should be
10 * displaying. 10 * displaying.
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 'somewhere.com', '1.2.3.4', 0, false)); 248 'somewhere.com', '1.2.3.4', 0, false));
249 taskQueue.addTask(new AddCacheEntryTask( 249 taskQueue.addTask(new AddCacheEntryTask(
250 'nowhere.com', '', NetError.NAME_NOT_RESOLVED, true)); 250 'nowhere.com', '', NetError.NAME_NOT_RESOLVED, true));
251 taskQueue.addTask(new ClearCacheTask()); 251 taskQueue.addTask(new ClearCacheTask());
252 taskQueue.addTask(new WaitForEntryDestructionTask('somewhere.com')); 252 taskQueue.addTask(new WaitForEntryDestructionTask('somewhere.com'));
253 taskQueue.addTask(new WaitForEntryDestructionTask('nowhere.com')); 253 taskQueue.addTask(new WaitForEntryDestructionTask('nowhere.com'));
254 } 254 }
255 taskQueue.run(true); 255 taskQueue.run(true);
256 }); 256 });
257 257
258 netInternalsTest.test('netInternalsDnsViewIncognitoClears', function() {
259 netInternalsTest.switchToView('dns');
260 var taskQueue = new netInternalsTest.TaskQueue(true);
261 taskQueue.addTask(netInternalsTest.getCreateIncognitoBrowserTask());
262 taskQueue.addTask(new AddCacheEntryTask(
263 'somewhere.com', '1.2.3.4', 0, true));
264 taskQueue.addTask(netInternalsTest.getCloseIncognitoBrowserTask());
265 taskQueue.addTask(new WaitForEntryDestructionTask('somewhere.com'));
266 taskQueue.run(true);
267 });
268
258 })(); // Anonymous namespace 269 })(); // Anonymous namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/net_internals_ui_browsertest.cc ('k') | chrome/test/data/webui/net_internals/net_internals_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698