Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Unified Diff: net/url_request/url_request_unittest.cc

Issue 501082: Implement delaying resource requests until privacy blacklists are ready. (Closed)
Patch Set: don't get stuck on errors Created 10 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_request_unittest.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_unittest.cc
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc
index ca4a6b20b4e3703eccebcb9b2bc4540211556b4f..5e9f253485a03daf31c579996057c185c1c4b92b 100644
--- a/net/url_request/url_request_unittest.cc
+++ b/net/url_request/url_request_unittest.cc
@@ -49,39 +49,6 @@ using base::Time;
namespace {
-class URLRequestTestContext : public URLRequestContext {
- public:
- URLRequestTestContext() {
- host_resolver_ = net::CreateSystemHostResolver();
- proxy_service_ = net::ProxyService::CreateNull();
- ftp_transaction_factory_ = new net::FtpNetworkLayer(host_resolver_);
- ssl_config_service_ = new net::SSLConfigServiceDefaults;
- http_transaction_factory_ =
- new net::HttpCache(
- net::HttpNetworkLayer::CreateFactory(host_resolver_, proxy_service_,
- ssl_config_service_),
- disk_cache::CreateInMemoryCacheBackend(0));
- // In-memory cookie store.
- cookie_store_ = new net::CookieMonster();
- accept_language_ = "en-us,fr";
- accept_charset_ = "iso-8859-1,*,utf-8";
- }
-
- private:
- virtual ~URLRequestTestContext() {
- delete ftp_transaction_factory_;
- delete http_transaction_factory_;
- }
-};
-
-class TestURLRequest : public URLRequest {
- public:
- TestURLRequest(const GURL& url, Delegate* delegate)
- : URLRequest(url, delegate) {
- set_context(new URLRequestTestContext());
- }
-};
-
base::StringPiece TestNetResourceProvider(int key) {
return "header";
}
« no previous file with comments | « net/url_request/url_request_unittest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698