gecko-dev/servo/tests
Raghav ebf6723fe2 servo: Merge #14794 - Refactor HSTSList to use HashMap (from mrnayak:hsts-refactor); r=emilio
Refactored HSTSList to use HashMap, where the key of HashMap is the base domain. Every time when we check if a host is secure, we find the base domain of the host and get a vector of HSTS entries associated with the base domain.

While this will not give O(1) look up time, we would have a smaller list to iterate for every lookup. I have added one unit test to validate `HashMap` changes.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #14756

<!-- Either: -->
- [X] There are tests for these changes OR

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: b06f4aec67ff93b1d667a5817084b0952e56664e
2016-12-30 10:33:40 -08:00
..
compiletest servo: Merge #11672 - Make the dom module private (from Ms2ger:dom); r=nox 2016-12-22 07:51:48 -08:00
dromaeo servo: Merge #11844 - Fix the Dromaeo test runner (from jdm:dromaeo-fix); r=Ms2ger 2016-06-24 02:49:23 -05:00
heartbeats servo: Merge #14272 - Fix energy profiling feature (from connorimes:fix-energy-profiling-feature); r=Manishearth 2016-11-19 02:32:00 -06:00
html servo: Merge #14657 - Remove unused html bluetooth tests (from dati91:remove_html_tests); r=jdm 2016-12-21 05:55:19 -08:00
jquery servo: Merge #10033 - Make the jquery test runner work again (from Ms2ger:jquery); r=jdm 2016-03-16 18:52:31 +05:01
power servo: Merge #6306 - Use Cargo's target directory sharing (from metajack:shared-target-dir); r=mbrubeck 2015-06-15 13:08:14 -06:00
unit servo: Merge #14794 - Refactor HSTSList to use HashMap (from mrnayak:hsts-refactor); r=emilio 2016-12-30 10:33:40 -08:00