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

Unified Diff: net/test/url_request/url_request_failed_job.h

Issue 567563002: Move url_request_failed_job to net/test/url_request/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile error Created 6 years, 3 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/net.gyp ('k') | net/test/url_request/url_request_failed_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/url_request/url_request_failed_job.h
diff --git a/content/test/net/url_request_failed_job.h b/net/test/url_request/url_request_failed_job.h
similarity index 70%
rename from content/test/net/url_request_failed_job.h
rename to net/test/url_request/url_request_failed_job.h
index a6c5a07a3dd3511e40ebf4b3f7f5941c8665bc97..6d3cf2dd0665a1f211886c7acf1da7d7b3f11db1 100644
--- a/content/test/net/url_request_failed_job.h
+++ b/net/test/url_request/url_request_failed_job.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_TEST_NET_URL_REQUEST_FAILED_JOB_H_
-#define CONTENT_TEST_NET_URL_REQUEST_FAILED_JOB_H_
+#ifndef NET_TEST_URL_REQUEST_URL_REQUEST_FAILED_JOB_H_
+#define NET_TEST_URL_REQUEST_URL_REQUEST_FAILED_JOB_H_
#include <string>
@@ -12,19 +12,19 @@
#include "net/url_request/url_request_job.h"
#include "url/gurl.h"
-namespace content {
+namespace net {
// This class simulates a URLRequestJob failing with a given error code while
// trying to connect.
-class URLRequestFailedJob : public net::URLRequestJob {
+class URLRequestFailedJob : public URLRequestJob {
public:
- URLRequestFailedJob(net::URLRequest* request,
- net::NetworkDelegate* network_delegate,
+ URLRequestFailedJob(URLRequest* request,
+ NetworkDelegate* network_delegate,
int net_error);
virtual void Start() OVERRIDE;
- // Adds the testing URLs to the net::URLRequestFilter.
+ // Adds the testing URLs to the URLRequestFilter.
static void AddUrlHandler();
static void AddUrlHandlerForHostname(const std::string& hostname);
@@ -45,9 +45,9 @@ class URLRequestFailedJob : public net::URLRequestJob {
virtual ~URLRequestFailedJob();
private:
- static net::URLRequestJob* Factory(net::URLRequest* request,
- net::NetworkDelegate* network_delegate,
- const std::string& scheme);
+ static URLRequestJob* Factory(URLRequest* request,
+ NetworkDelegate* network_delegate,
+ const std::string& scheme);
// Simulate a failure.
void StartAsync();
@@ -59,6 +59,6 @@ class URLRequestFailedJob : public net::URLRequestJob {
DISALLOW_COPY_AND_ASSIGN(URLRequestFailedJob);
};
-} // namespace content
+} // namespace net
-#endif // CONTENT_TEST_NET_URL_REQUEST_FAILED_JOB_H_
+#endif // NET_TEST_URL_REQUEST_URL_REQUEST_FAILED_JOB_H_
« no previous file with comments | « net/net.gyp ('k') | net/test/url_request/url_request_failed_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698