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

Side by Side Diff: ios/web/public/test/http_server/response_provider.h

Issue 2898733003: Split up ios/web:test_support. (Closed)
Patch Set: don't break downstream clients Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 IOS_WEB_PUBLIC_TEST_RESPONSE_PROVIDERS_RESPONSE_PROVIDER_H_ 5 #ifndef IOS_WEB_PUBLIC_TEST_HTTP_SERVER_RESPONSE_PROVIDER_H_
6 #define IOS_WEB_PUBLIC_TEST_RESPONSE_PROVIDERS_RESPONSE_PROVIDER_H_ 6 #define IOS_WEB_PUBLIC_TEST_HTTP_SERVER_RESPONSE_PROVIDER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "net/http/http_request_headers.h" 13 #include "net/http/http_request_headers.h"
14 #include "net/http/http_response_headers.h" 14 #include "net/http/http_response_headers.h"
15 #include "net/http/http_status_code.h" 15 #include "net/http/http_status_code.h"
16 #include "url/gurl.h" 16 #include "url/gurl.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 static scoped_refptr<net::HttpResponseHeaders> GetResponseHeaders( 68 static scoped_refptr<net::HttpResponseHeaders> GetResponseHeaders(
69 const std::string& content_type, 69 const std::string& content_type,
70 net::HttpStatusCode response_code); 70 net::HttpStatusCode response_code);
71 // Gets configurable response based on |http_status| headers for redirecting 71 // Gets configurable response based on |http_status| headers for redirecting
72 // to |destination|. 72 // to |destination|.
73 static scoped_refptr<net::HttpResponseHeaders> GetRedirectResponseHeaders( 73 static scoped_refptr<net::HttpResponseHeaders> GetRedirectResponseHeaders(
74 const std::string& destination, 74 const std::string& destination,
75 const net::HttpStatusCode& http_status); 75 const net::HttpStatusCode& http_status);
76 76
77 ResponseProvider(); 77 ResponseProvider();
78 virtual ~ResponseProvider() {}; 78 virtual ~ResponseProvider() {}
79
79 private: 80 private:
80 DISALLOW_COPY_AND_ASSIGN(ResponseProvider); 81 DISALLOW_COPY_AND_ASSIGN(ResponseProvider);
81 }; 82 };
82 83
83 } // namspace web 84 } // namspace web
84 85
85 #endif // IOS_WEB_PUBLIC_TEST_RESPONSE_PROVIDERS_RESPONSE_PROVIDER_H_ 86 #endif // IOS_WEB_PUBLIC_TEST_HTTP_SERVER_RESPONSE_PROVIDER_H_
OLDNEW
« no previous file with comments | « ios/web/public/test/http_server/http_server_util.mm ('k') | ios/web/public/test/http_server/response_provider.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698