diff --git a/components/net/lib.rs b/components/net/lib.rs index 1ad29b77b3d..267b4c6d9de 100644 --- a/components/net/lib.rs +++ b/components/net/lib.rs @@ -49,7 +49,7 @@ extern crate websocket; mod about_loader; mod blob_loader; -pub mod chrome_loader; +mod chrome_loader; mod connector; mod content_blocker; pub mod cookie; @@ -73,6 +73,7 @@ pub mod fetch { /// A module for re-exports of items used in unit tests. pub mod test { + pub use chrome_loader::resolve_chrome_url; pub use http_loader::{HttpRequest, HttpRequestFactory, HttpResponse, HttpState}; pub use http_loader::{LoadError, LoadErrorType, UIProvider, load}; } diff --git a/tests/unit/net/chrome_loader.rs b/tests/unit/net/chrome_loader.rs index 5008fe67fc8..72776d248f7 100644 --- a/tests/unit/net/chrome_loader.rs +++ b/tests/unit/net/chrome_loader.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use net::chrome_loader::resolve_chrome_url; +use net::test::resolve_chrome_url; use url::Url; fn c(s: &str) -> Result {