Chromium Code Reviews| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 * @param {QueryResultType} queryResultType The expected result type of the | 47 * @param {QueryResultType} queryResultType The expected result type of the |
| 48 * results of the query. | 48 * results of the query. |
| 49 * @extends {NetInternalsTest.Task} | 49 * @extends {NetInternalsTest.Task} |
| 50 */ | 50 */ |
| 51 function CheckQueryResultTask(domain, stsSubdomains, pkpSubdomains, | 51 function CheckQueryResultTask(domain, stsSubdomains, pkpSubdomains, |
| 52 stsObserved, pkpObserved, publicKeyHashes, | 52 stsObserved, pkpObserved, publicKeyHashes, |
| 53 queryResultType) { | 53 queryResultType) { |
| 54 this.domain_ = domain; | 54 this.domain_ = domain; |
| 55 this.stsSubdomains_ = stsSubdomains; | 55 this.stsSubdomains_ = stsSubdomains; |
| 56 this.pkpSubdomains_ = pkpSubdomains; | 56 this.pkpSubdomains_ = pkpSubdomains; |
| 57 this.stsObserved_ = stsObserved; | 57 // this.stsObserved_ = stsObserved; |
|
mmenke
2014/07/25 19:11:53
nit: Should add a link to the new bug here, once
Ryan Hamilton
2014/07/26 03:16:03
Done.
| |
| 58 this.pkpObserved_ = pkpObserved; | 58 // this.pkpObserved_ = pkpObserved; |
| 59 this.publicKeyHashes_ = publicKeyHashes; | 59 this.publicKeyHashes_ = publicKeyHashes; |
| 60 this.queryResultType_ = queryResultType; | 60 this.queryResultType_ = queryResultType; |
| 61 NetInternalsTest.Task.call(this); | 61 NetInternalsTest.Task.call(this); |
| 62 } | 62 } |
| 63 | 63 |
| 64 CheckQueryResultTask.prototype = { | 64 CheckQueryResultTask.prototype = { |
| 65 __proto__: NetInternalsTest.Task.prototype, | 65 __proto__: NetInternalsTest.Task.prototype, |
| 66 | 66 |
| 67 /** | 67 /** |
| 68 * Starts watching for the query results. | 68 * Starts watching for the query results. |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 388 VALID_HASH, QueryResultType.SUCCESS)); | 388 VALID_HASH, QueryResultType.SUCCESS)); |
| 389 taskQueue.addTask(new DeleteTask('somewhere.com', QueryResultType.NOT_FOUND)); | 389 taskQueue.addTask(new DeleteTask('somewhere.com', QueryResultType.NOT_FOUND)); |
| 390 taskQueue.addTask(new QueryTask('somewhereelse.com', true, true, now, now, '', | 390 taskQueue.addTask(new QueryTask('somewhereelse.com', true, true, now, now, '', |
| 391 QueryResultType.SUCCESS)); | 391 QueryResultType.SUCCESS)); |
| 392 taskQueue.addTask(new DeleteTask('somewhereelse.com', | 392 taskQueue.addTask(new DeleteTask('somewhereelse.com', |
| 393 QueryResultType.NOT_FOUND)); | 393 QueryResultType.NOT_FOUND)); |
| 394 taskQueue.run(true); | 394 taskQueue.run(true); |
| 395 }); | 395 }); |
| 396 | 396 |
| 397 })(); // Anonymous namespace | 397 })(); // Anonymous namespace |
| OLD | NEW |