Commit graph

7 commits

Author SHA1 Message Date
Kunal Mehta dfa2506116 Update Legoktm's email address
Change-Id: Ic20c6d24d221fd5377bfa4a36a7f0ee034fad9e1
2021-04-11 19:10:07 -07:00
C. Scott Ananian 582afdc696 Update to parserTests v2 (tidy by default)
Bug: T174199
Change-Id: If22589e88f1c188e1823e4e51b810a13bc3ea13e
2020-04-02 14:07:01 -04:00
Kunal Mehta 933ce7188e Add a test verifying the reproducibility of domains.php
This test downloads the specified revision of the HSTS preload list,
regenerates it, and compares it with the committed version at
domains.php.

In theory it would catch any potential code injection in domains.php,
which is hard to manually review due to its length.

Bug: T241522
Change-Id: Iee2a393c590b830c6e78adba48edc921e2873465
2019-12-28 17:33:07 -08:00
Kunal Mehta 518d26f4a8 Add sanity check test for domains.php
The test verifies:
* domains.php returns an array
* The array has at least 50,000 items (right now it has ~78,000)
* Each domain in the array passes a regex, and the value is either 1 or 0

Bug: T240743
Change-Id: Ic4e2c2e36ddcb0f775f4ac22d1418c814db5b389
2019-12-13 23:09:54 -08:00
Kunal Mehta 537b15acf8 Add tests for Hooks
Change-Id: I0f30e9ccc995cbda7095aee040defcb061a174ac
2018-08-05 00:22:52 -06:00
Kunal Mehta f0ed5222ff Refactor out a HSTSPreloadLookup class plus tests
Makes it much easier to write tests, and do potential further
refactoring.

Change-Id: I072951bb2bc87639e076d03c233f7283c0b175ff
2018-08-01 21:23:49 -07:00
Kunal Mehta e436b78837 Initial commit
Change-Id: I2c8efb613632ce785580e8fba4da5b0a3a36a0f6
2018-07-29 19:01:06 -07:00