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

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

Issue 54623005: net: allow invalid TransportSecurityState to process invalid DNS names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser tests. Created 7 years, 1 month 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
« no previous file with comments | « no previous file | net/base/dns_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 taskQueue.addTask(new DeleteTask('somewhere.com', QueryResultType.NOT_FOUND)); 301 taskQueue.addTask(new DeleteTask('somewhere.com', QueryResultType.NOT_FOUND));
302 taskQueue.run(); 302 taskQueue.run();
303 }); 303 });
304 304
305 /** 305 /**
306 * Tries to add a domain with an invalid name. 306 * Tries to add a domain with an invalid name.
307 */ 307 */
308 TEST_F('NetInternalsTest', 'netInternalsHSTSViewAddFail', function() { 308 TEST_F('NetInternalsTest', 'netInternalsHSTSViewAddFail', function() {
309 NetInternalsTest.switchToView('hsts'); 309 NetInternalsTest.switchToView('hsts');
310 taskQueue = new NetInternalsTest.TaskQueue(true); 310 taskQueue = new NetInternalsTest.TaskQueue(true);
311 taskQueue.addTask(new AddTask('~', false, false, '', 311 taskQueue.addTask(new AddTask('0123456789012345678901234567890' +
312 QueryResultType.NOT_FOUND)); 312 '012345678901234567890123456789012345',
313 false, false, '', QueryResultType.NOT_FOUND));
313 taskQueue.run(); 314 taskQueue.run();
314 }); 315 });
315 316
316 /** 317 /**
317 * Tries to add a domain with a name that errors out on lookup due to having 318 * Tries to add a domain with a name that errors out on lookup due to having
318 * non-ASCII characters in it. 319 * non-ASCII characters in it.
319 */ 320 */
320 TEST_F('NetInternalsTest', 'netInternalsHSTSViewAddError', function() { 321 TEST_F('NetInternalsTest', 'netInternalsHSTSViewAddError', function() {
321 NetInternalsTest.switchToView('hsts'); 322 NetInternalsTest.switchToView('hsts');
322 taskQueue = new NetInternalsTest.TaskQueue(true); 323 taskQueue = new NetInternalsTest.TaskQueue(true);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 QueryResultType.SUCCESS)); 368 QueryResultType.SUCCESS));
368 taskQueue.addTask(new DeleteTask('somewhere.com', QueryResultType.NOT_FOUND)); 369 taskQueue.addTask(new DeleteTask('somewhere.com', QueryResultType.NOT_FOUND));
369 taskQueue.addTask(new QueryTask('somewhereelse.com', true, true, '', 370 taskQueue.addTask(new QueryTask('somewhereelse.com', true, true, '',
370 QueryResultType.SUCCESS)); 371 QueryResultType.SUCCESS));
371 taskQueue.addTask(new DeleteTask('somewhereelse.com', 372 taskQueue.addTask(new DeleteTask('somewhereelse.com',
372 QueryResultType.NOT_FOUND)); 373 QueryResultType.NOT_FOUND));
373 taskQueue.run(true); 374 taskQueue.run(true);
374 }); 375 });
375 376
376 })(); // Anonymous namespace 377 })(); // Anonymous namespace
OLDNEW
« no previous file with comments | « no previous file | net/base/dns_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698