aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/net/lib.rs
diff options
context:
space:
mode:
authormrnayak <rmuddur@gmail.com>2017-01-08 08:52:18 +0530
committermrnayak <rmuddur@gmail.com>2017-01-08 08:52:18 +0530
commita3026499f43860c0d02170534bee20f8f5cc7faa (patch)
treeed575e0f6388fc082ca505dc094675e6ae707279 /tests/unit/net/lib.rs
parent496447a363ca4fc5d6789241ccb0b94134917b9a (diff)
downloadservo-a3026499f43860c0d02170534bee20f8f5cc7faa.tar.gz
servo-a3026499f43860c0d02170534bee20f8f5cc7faa.zip
Implement Subresource Integrity
Implemented response validation part of https://w3c.github.io/webappsec-subresource-integrity/. Implemented step eighteen of the main fetch. If a request has integrity metadata, then following steps are performed *Wait for response body *If the response does not have a termination reason and response does not match request’s integrity metadata, set response to a network error.# Please enter the commit message for your changes. Lines starting
Diffstat (limited to 'tests/unit/net/lib.rs')
-rw-r--r--tests/unit/net/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/net/lib.rs b/tests/unit/net/lib.rs
index 990247e9ab2..47f732dc7b8 100644
--- a/tests/unit/net/lib.rs
+++ b/tests/unit/net/lib.rs
@@ -33,6 +33,7 @@ extern crate url;
#[cfg(test)] mod hsts;
#[cfg(test)] mod http_loader;
#[cfg(test)] mod filemanager_thread;
+#[cfg(test)] mod subresource_integrity;
use devtools_traits::DevtoolsControlMsg;
use hyper::server::{Handler, Listening, Server};