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

Unified Diff: content/browser/loader/resource_dispatcher_host_unittest.cc

Issue 310883002: Cleanup and fix ResourceDispatcherHostTests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_dispatcher_host_unittest.cc
diff --git a/content/browser/loader/resource_dispatcher_host_unittest.cc b/content/browser/loader/resource_dispatcher_host_unittest.cc
index df02f58866853182c7226df8405cb82dfec5daf8..0610a75dfba7a91ff5acf7727759ed5bf19ab6fe 100644
--- a/content/browser/loader/resource_dispatcher_host_unittest.cc
+++ b/content/browser/loader/resource_dispatcher_host_unittest.cc
@@ -45,6 +45,7 @@
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_job.h"
+#include "net/url_request/url_request_job_factory.h"
#include "net/url_request/url_request_simple_job.h"
#include "net/url_request/url_request_test_job.h"
#include "net/url_request/url_request_test_util.h"
@@ -460,14 +461,16 @@ class URLRequestBigJob : public net::URLRequestSimpleJob {
}
};
+class ResourceDispatcherHostTest;
+
class TestURLRequestJobFactory : public net::URLRequestJobFactory {
public:
- explicit TestURLRequestJobFactory(ResourceDispatcherHostTest* test_fixture) :
- test_fixture_(test_fixture),
- delay_start_(false),
- delay_complete_(false),
- network_start_notification_(false),
- url_request_jobs_created_count_(0) {
+ explicit TestURLRequestJobFactory(ResourceDispatcherHostTest* test_fixture)
+ : test_fixture_(test_fixture),
+ delay_start_(false),
+ delay_complete_(false),
+ network_start_notification_(false),
+ url_request_jobs_created_count_(0) {
}
void HandleScheme(const std::string& scheme) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698