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

Unified Diff: ios/web/public/test/http_server_util.h

Issue 2898733003: Split up ios/web:test_support. (Closed)
Patch Set: don't break downstream clients Created 3 years, 7 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 | « ios/web/public/test/http_server_inttest.mm ('k') | ios/web/public/test/http_server_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/http_server_util.h
diff --git a/ios/web/public/test/http_server_util.h b/ios/web/public/test/http_server_util.h
index b66356983795e34f89f4f85d475ff2df8bbf43f1..909b48a52ab21e516ca1ff3a5e384ab94063428e 100644
--- a/ios/web/public/test/http_server_util.h
+++ b/ios/web/public/test/http_server_util.h
@@ -1,46 +1,10 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
+// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_WEB_PUBLIC_TEST_HTTP_SERVER_UTIL_H_
#define IOS_WEB_PUBLIC_TEST_HTTP_SERVER_UTIL_H_
-#include <map>
-
-#include "url/gurl.h"
-
-namespace web {
-
-class ResponseProvider;
-
-namespace test {
-
-// Sets up a web::test::HttpServer with a simple HtmlResponseProvider. The
-// HtmlResponseProvider will use the |responses| map to resolve URLs.
-void SetUpSimpleHttpServer(const std::map<GURL, std::string>& responses);
-
-// Sets up a web::test::HttpServer with a simple HtmlResponseProvider. The
-// HtmlResponseProvider will use the |responses| map to resolve URLs. The value
-// of |responses| is the cookie and response body pair where the first string is
-// the cookie and the second string is the response body. Set the cookie string
-// as empty string if cookie is not needed in the response headers.
-void SetUpSimpleHttpServerWithSetCookies(
- const std::map<GURL, std::pair<std::string, std::string>>& responses);
-
-// Sets up a web::test::HttpServer with a FileBasedResponseProvider. The
-// server will try to resolve URLs as file paths relative to the application
-// bundle path. web::test::MakeUrl should be used to rewrite URLs before doing
-// a request.
-void SetUpFileBasedHttpServer();
-
-// Sets up a web::test::HttpServer with a single custom provider.
-// Takes ownership of the provider.
-void SetUpHttpServer(std::unique_ptr<web::ResponseProvider> provider);
-
-// Adds a single custom provider.
-// Takes ownership of the provider.
-void AddResponseProvider(std::unique_ptr<web::ResponseProvider> provider);
-} // namespace test
-} // namespace web
+#include "ios/web/public/test/http_server/http_server_util.h"
#endif // IOS_WEB_PUBLIC_TEST_HTTP_SERVER_UTIL_H_
« no previous file with comments | « ios/web/public/test/http_server_inttest.mm ('k') | ios/web/public/test/http_server_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698