Chromium Code Reviews| Index: ios/web_view/test/chrome_web_view_test.h |
| diff --git a/ios/web_view/test/chrome_web_view_test.h b/ios/web_view/test/chrome_web_view_test.h |
| index 5605a64976d6fb15cf8f0f8ef1a0975d9c3cc571..ed99d32ca9c5c2f5828bbb188f0f7f24ed0d52d4 100644 |
| --- a/ios/web_view/test/chrome_web_view_test.h |
| +++ b/ios/web_view/test/chrome_web_view_test.h |
| @@ -23,9 +23,8 @@ class GURL; |
| namespace ios_web_view { |
| // A test fixture for testing CWVWebView. A test server is also created to |
| -// support loading content. The server supports the urls defined by |
| -// RegisterDefaultHandlers in net/test/embedded_test_server/default_handlers.h |
| -// as well as urls returned by the GetUrl* methods below. |
| +// support loading content. The server supports the urls returned by the GetUrl* |
| +// methods below. |
| class ChromeWebViewTest : public PlatformTest { |
| protected: |
| ChromeWebViewTest(); |
| @@ -37,6 +36,11 @@ class ChromeWebViewTest : public PlatformTest { |
| // Returns URL to an html page with |html| within page's body tags. |
| GURL GetUrlForPageWithHTMLBody(const std::string& html); |
|
Eugene But (OOO till 7-30)
2017/05/31 22:10:01
Could you please s/HTML/Html
michaeldo
2017/06/01 15:45:53
Done.
|
| + // Returns URL to an html page with title set to |title| and |body| within |
| + // the page's body tags. |
| + GURL GetUrlForPageWithTitleAndBody(const std::string& title, |
| + const std::string& body); |
| + |
| // Loads |URL| in |web_view| and waits until the load completes. Asserts if |
| // loading does not complete. |
| void LoadUrl(CWVWebView* web_view, NSURL* url); |
| @@ -47,9 +51,8 @@ class ChromeWebViewTest : public PlatformTest { |
| // PlatformTest methods. |
| void SetUp() override; |
| - // Embedded server for handling responses to urls as registered by |
| - // net/test/embedded_test_server/default_handlers.h and the GetURLForPageWith* |
| - // methods. |
| + // Embedded server for handling requests sent to the URLs returned by the |
| + // GetURL* methods. |
| std::unique_ptr<net::test_server::EmbeddedTestServer> test_server_; |
| }; |