servo/components
bors-servo c519739b7b Auto merge of #11196 - fduraffourg:master, r=jdm
Add unit tests for cookies handling

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 #9965

Either:
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

Add unit tests for the `net` component about cookies. The tests are generated
with a new `mach update-net-cookies` command from this repo: https://github.com/abarth/http-state.

This PR also includes two trivial bug fixes about cookie handling.

From all the tests included, the following ones are currently failing:

- cookie_http_state::test_0003
- cookie_http_state::test_0006
- cookie_http_state::test_attribute0004
- cookie_http_state::test_attribute0005
- cookie_http_state::test_attribute0007
- cookie_http_state::test_attribute0008
- cookie_http_state::test_domain0017
- cookie_http_state::test_mozilla0001
- cookie_http_state::test_mozilla0002
- cookie_http_state::test_mozilla0003
- cookie_http_state::test_mozilla0005
- cookie_http_state::test_mozilla0007
- cookie_http_state::test_mozilla0009
- cookie_http_state::test_mozilla0010
- cookie_http_state::test_mozilla0013

`test_000[36]` and `test_mozilla*` are failing because there is currently no
method to clean a `net::cookie_storage` from expired cookies.

`test_attribute000[4578]` are failing because hyper does not parse the `Secure`
attribute correctly. I will open an issue on the upstream project.

`test_domain0017` fails because the TLD .org is not on the PUB_DOMAINS list.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11196)
<!-- Reviewable:end -->
2016-05-17 16:34:16 -07:00
..
canvas Simplify TOML syntax 2016-04-26 23:51:36 +02:00
canvas_traits Simplify TOML syntax 2016-04-26 23:51:36 +02:00
compositing Auto merge of #11213 - canaltinova:compositing, r=mbrubeck 2016-05-16 18:16:22 -07:00
devtools Simplify TOML syntax 2016-04-26 23:51:36 +02:00
devtools_traits Update internal crates to bitflags 0.7 2016-05-17 23:34:04 +02:00
gfx Update internal crates to bitflags 0.7 2016-05-17 23:34:04 +02:00
gfx_traits Simplify TOML syntax 2016-04-26 23:51:36 +02:00
layout Update internal crates to bitflags 0.7 2016-05-17 23:34:04 +02:00
layout_traits move trait ConvertPipelineIdToWebRender to a better place 2016-05-09 01:20:24 +03:00
msg Update internal crates to bitflags 0.7 2016-05-17 23:34:04 +02:00
net Auto merge of #11196 - fduraffourg:master, r=jdm 2016-05-17 16:34:16 -07:00
net_traits Removed unused imports 2016-05-15 22:24:26 +03:00
plugins Update Rust to 1.10.0-nightly (cd6a40017 2016-05-16) 2016-05-17 15:21:18 +02:00
profile Do not use libc in profile on Windows 2016-05-17 01:12:10 +02:00
profile_traits added infrastructure to handle interval and CSV time profiling alongside html-timeline-profiling 2016-05-11 11:27:07 -07:00
range Use num-traits in range. 2016-04-20 14:59:05 +02:00
script Auto merge of #11191 - servo:bitflags, r=pcwalton 2016-05-17 15:43:14 -07:00
script_traits Auto merge of #10840 - ConnorGBrewster:window_alert, r=jdm 2016-05-04 09:10:40 -07:00
servo Auto merge of #11191 - servo:bitflags, r=pcwalton 2016-05-17 15:43:14 -07:00
style Auto merge of #11191 - servo:bitflags, r=pcwalton 2016-05-17 15:43:14 -07:00
style_traits Removed unused imports 2016-05-15 22:24:26 +03:00
util Update internal crates to bitflags 0.7 2016-05-17 23:34:04 +02:00
webdriver_server Auto merge of #11146 - mbrubeck:always-be-updating, r=metajack 2016-05-12 05:28:12 -07:00