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

Side by Side Diff: content/test/net/url_request_mock_http_job.h

Issue 11346016: Move remaining content test code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // A net::URLRequestJob class that pulls the content and http headers from disk. 5 // A net::URLRequestJob class that pulls the content and http headers from disk.
6 6
7 #ifndef CONTENT_TEST_NET_URL_REQUEST_MOCK_HTTP_JOB_H_ 7 #ifndef CONTENT_TEST_NET_URL_REQUEST_MOCK_HTTP_JOB_H_
8 #define CONTENT_TEST_NET_URL_REQUEST_MOCK_HTTP_JOB_H_ 8 #define CONTENT_TEST_NET_URL_REQUEST_MOCK_HTTP_JOB_H_
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "net/url_request/url_request_file_job.h" 12 #include "net/url_request/url_request_file_job.h"
13 13
14 class FilePath; 14 class FilePath;
15 15
16 namespace content {
17
16 class URLRequestMockHTTPJob : public net::URLRequestFileJob { 18 class URLRequestMockHTTPJob : public net::URLRequestFileJob {
17 public: 19 public:
18 URLRequestMockHTTPJob(net::URLRequest* request, 20 URLRequestMockHTTPJob(net::URLRequest* request,
19 net::NetworkDelegate* network_delegate, 21 net::NetworkDelegate* network_delegate,
20 const FilePath& file_path); 22 const FilePath& file_path);
21 23
22 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE; 24 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
23 virtual int GetResponseCode() const OVERRIDE; 25 virtual int GetResponseCode() const OVERRIDE;
24 virtual bool GetCharset(std::string* charset) OVERRIDE; 26 virtual bool GetCharset(std::string* charset) OVERRIDE;
25 virtual void GetResponseInfo(net::HttpResponseInfo* info) OVERRIDE; 27 virtual void GetResponseInfo(net::HttpResponseInfo* info) OVERRIDE;
(...skipping 17 matching lines...) Expand all
43 virtual ~URLRequestMockHTTPJob() { } 45 virtual ~URLRequestMockHTTPJob() { }
44 46
45 static FilePath GetOnDiskPath(const FilePath& base_path, 47 static FilePath GetOnDiskPath(const FilePath& base_path,
46 net::URLRequest* request, 48 net::URLRequest* request,
47 const std::string& scheme); 49 const std::string& scheme);
48 50
49 private: 51 private:
50 void GetResponseInfoConst(net::HttpResponseInfo* info) const; 52 void GetResponseInfoConst(net::HttpResponseInfo* info) const;
51 }; 53 };
52 54
55 } // namespace content
56
53 #endif // CONTENT_TEST_NET_URL_REQUEST_MOCK_HTTP_JOB_H_ 57 #endif // CONTENT_TEST_NET_URL_REQUEST_MOCK_HTTP_JOB_H_
OLDNEW
« no previous file with comments | « content/test/net/url_request_failed_job.cc ('k') | content/test/net/url_request_mock_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698