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

Side by Side Diff: headless/public/util/testing/generic_url_request_mocks.h

Issue 2554863002: Cleanup remaining class/struct fwd declarations (Closed)
Patch Set: Style fixes Created 4 years 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
« no previous file with comments | « headless/public/util/in_memory_request_job.h ('k') | ipc/handle_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef HEADLESS_PUBLIC_UTIL_TESTING_GENERIC_URL_REQUEST_MOCKS_H_ 5 #ifndef HEADLESS_PUBLIC_UTIL_TESTING_GENERIC_URL_REQUEST_MOCKS_H_
6 #define HEADLESS_PUBLIC_UTIL_TESTING_GENERIC_URL_REQUEST_MOCKS_H_ 6 #define HEADLESS_PUBLIC_UTIL_TESTING_GENERIC_URL_REQUEST_MOCKS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "headless/public/util/generic_url_request_job.h" 12 #include "headless/public/util/generic_url_request_job.h"
13 #include "headless/public/util/testing/generic_url_request_mocks.h" 13 #include "headless/public/util/testing/generic_url_request_mocks.h"
14 #include "net/cookies/cookie_store.h" 14 #include "net/cookies/cookie_store.h"
15 #include "net/url_request/url_request.h" 15 #include "net/url_request/url_request.h"
16 #include "net/url_request/url_request_context.h" 16 #include "net/url_request/url_request_context.h"
17 #include "net/url_request/url_request_job_factory.h" 17 #include "net/url_request/url_request_job_factory.h"
18 18
19 namespace net {
20 class URLRequestJob;
21 } // namespace net
22
23 namespace htmlrender_webkit_headless_proto {
24 class Resource;
25 } // htmlrender_webkit_headless_proto net
26
27 namespace headless { 19 namespace headless {
28 20
29 class MockGenericURLRequestJobDelegate : public GenericURLRequestJob::Delegate { 21 class MockGenericURLRequestJobDelegate : public GenericURLRequestJob::Delegate {
30 public: 22 public:
31 MockGenericURLRequestJobDelegate(); 23 MockGenericURLRequestJobDelegate();
32 ~MockGenericURLRequestJobDelegate() override; 24 ~MockGenericURLRequestJobDelegate() override;
33 25
34 bool BlockOrRewriteRequest( 26 bool BlockOrRewriteRequest(
35 const GURL& url, 27 const GURL& url,
36 const std::string& method, 28 const std::string& method,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 138
147 private: 139 private:
148 std::string response_data_; 140 std::string response_data_;
149 141
150 DISALLOW_COPY_AND_ASSIGN(MockURLRequestDelegate); 142 DISALLOW_COPY_AND_ASSIGN(MockURLRequestDelegate);
151 }; 143 };
152 144
153 } // namespace headless 145 } // namespace headless
154 146
155 #endif // HEADLESS_PUBLIC_UTIL_TESTING_GENERIC_URL_REQUEST_MOCKS_H_ 147 #endif // HEADLESS_PUBLIC_UTIL_TESTING_GENERIC_URL_REQUEST_MOCKS_H_
OLDNEW
« no previous file with comments | « headless/public/util/in_memory_request_job.h ('k') | ipc/handle_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698