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

This commit is contained in:
Glenn Watson 2015-08-17 13:50:30 +10:00
parent 3bb930661d
commit 6d9fccbae7
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