OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_WEB_PUBLIC_TEST_HTTP_SERVER_UTIL_H_ |
| 6 #define IOS_WEB_PUBLIC_TEST_HTTP_SERVER_UTIL_H_ |
| 7 |
| 8 #import <map> |
| 9 |
| 10 #import "ios/web/public/test/http_server.h" |
| 11 #include "ios/web/public/test/response_providers/html_response_provider.h" |
| 12 |
| 13 namespace web { |
| 14 namespace test { |
| 15 namespace http_server_util { |
| 16 |
| 17 // Sets up a web::test::HttpServer with a simple HtmlResponseProvider. The |
| 18 // HtmlResponseProvider will use the |responses| map to resolve URLs. |
| 19 void SetUpSimpleHttpServer(std::map<GURL, std::string> responses); |
| 20 |
| 21 } // namespace web |
| 22 } // namespace test |
| 23 } // namespace http_server_util |
| 24 |
| 25 #endif // IOS_WEB_PUBLIC_TEST_HTTP_SERVER_UTIL_H_ |
OLD | NEW |