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

Unified Diff: content/test/net/url_request_mock_http_job.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « content/test/content_browser_test_utils.h ('k') | content/test/net/url_request_prepackaged_interceptor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/net/url_request_mock_http_job.h
diff --git a/content/test/net/url_request_mock_http_job.h b/content/test/net/url_request_mock_http_job.h
index 9beb63adb151f15307ee89cc165a5a81f5cb1ee3..53e69b51c554dc374ff8bb87c8c9759242eeb209 100644
--- a/content/test/net/url_request_mock_http_job.h
+++ b/content/test/net/url_request_mock_http_job.h
@@ -12,7 +12,9 @@
#include "net/url_request/url_request_file_job.h"
#include "net/url_request/url_request_job_factory.h"
+namespace base {
class FilePath;
+}
namespace content {
@@ -20,7 +22,7 @@ class URLRequestMockHTTPJob : public net::URLRequestFileJob {
public:
URLRequestMockHTTPJob(net::URLRequest* request,
net::NetworkDelegate* network_delegate,
- const FilePath& file_path);
+ const base::FilePath& file_path);
virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
virtual int GetResponseCode() const OVERRIDE;
@@ -30,27 +32,27 @@ class URLRequestMockHTTPJob : public net::URLRequestFileJob {
int* http_status_code) OVERRIDE;
// Adds the testing URLs to the net::URLRequestFilter.
- static void AddUrlHandler(const FilePath& base_path);
+ static void AddUrlHandler(const base::FilePath& base_path);
// Respond to all HTTP requests of |hostname| with contents of the file
// located at |file_path|.
static void AddHostnameToFileHandler(const std::string& hostname,
- const FilePath& file_path);
+ const base::FilePath& file_path);
// Given the path to a file relative to the path passed to AddUrlHandler(),
// construct a mock URL.
- static GURL GetMockUrl(const FilePath& path);
+ static GURL GetMockUrl(const base::FilePath& path);
// Given the path to a file relative to the path passed to AddUrlHandler(),
// construct a mock URL for view source.
- static GURL GetMockViewSourceUrl(const FilePath& path);
+ static GURL GetMockViewSourceUrl(const base::FilePath& path);
// Returns a net::URLRequestJobFactory::ProtocolHandler that serves
// URLRequestMockHTTPJob's responding like an HTTP server. |base_path| is the
// file path leading to the root of the directory to use as the root of the
// HTTP server.
static scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
- CreateProtocolHandler(const FilePath& base_path);
+ CreateProtocolHandler(const base::FilePath& base_path);
private:
virtual ~URLRequestMockHTTPJob();
« no previous file with comments | « content/test/content_browser_test_utils.h ('k') | content/test/net/url_request_prepackaged_interceptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698