OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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_VIEW_TEST_TEST_SERVER_H_ | |
6 #define IOS_WEB_VIEW_TEST_TEST_SERVER_H_ | |
7 | |
8 #include <string> | |
9 | |
10 namespace ios_web_view { | |
11 | |
12 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.
| |
13 public: | |
14 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
| |
15 static void Shutdown(); | |
16 | |
17 // Returns URL to an html page with title set to |title|. | |
18 static std::string GetPageTitleURL(const std::string& title); | |
19 | |
20 // Returns URL to an html page with |html| within page's body tags. | |
21 static std::string GetPageWithHTMLBody(const std::string& html); | |
22 }; | |
23 | |
24 } // namespace ios_web_view | |
25 | |
26 #endif // IOS_WEB_VIEW_TEST_TEST_SERVER_H_ | |
OLD | NEW |