Auto merge of #7246 - glennw:platform-ua, r=larsbergstrom

Add a simple method to emulate a platform UA (e.g. pretend a desktop build is an android UA).



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7246)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-08-17 22:44:38 -06:00
commit f340900c38
5 changed files with 44 additions and 21 deletions

View file

@ -19,7 +19,7 @@ fn test_add_hsts_entry_to_resource_manager_adds_an_hsts_entry() {
};
let (tx, _) = ipc::channel().unwrap();
let mut manager = ResourceManager::new(None, tx, list, None);
let mut manager = ResourceManager::new("".to_owned(), tx, list, None);
let entry = HSTSEntry::new(
"mozilla.org".to_string(), IncludeSubdomains::NotIncluded, None