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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |