Chromium Code Reviews| Index: ios/web_view/test/test_server.h |
| diff --git a/ios/web_view/test/test_server.h b/ios/web_view/test/test_server.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7ad197d34bdbf18d4c38ba9fa8860e7169be0071 |
| --- /dev/null |
| +++ b/ios/web_view/test/test_server.h |
| @@ -0,0 +1,26 @@ |
| +// 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_VIEW_TEST_TEST_SERVER_H_ |
| +#define IOS_WEB_VIEW_TEST_TEST_SERVER_H_ |
| + |
| +#include <string> |
| + |
| +namespace ios_web_view { |
| + |
| +class TestServer { |
|
Eugene But (OOO till 7-30)
2017/05/19 18:39:49
I think we should be consistent with other tests i
michaeldo
2017/05/23 16:20:52
Acknowledged.
|
| + public: |
| + static bool Start(); |
|
Eugene But (OOO till 7-30)
2017/05/19 18:39:49
Generally there is no need to create a class which
michaeldo
2017/05/23 16:20:52
Good point, I removed this class and followed exam
|
| + static void Shutdown(); |
| + |
| + // Returns URL to an html page with title set to |title|. |
| + static std::string GetPageTitleURL(const std::string& title); |
| + |
| + // Returns URL to an html page with |html| within page's body tags. |
| + static std::string GetPageWithHTMLBody(const std::string& html); |
| +}; |
| + |
| +} // namespace ios_web_view |
| + |
| +#endif // IOS_WEB_VIEW_TEST_TEST_SERVER_H_ |