| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "extensions/browser/guest_view/web_view/web_view_apitest.h" | 5 #include "extensions/browser/guest_view/web_view/web_view_apitest.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 StopTestServer(); | 715 StopTestServer(); |
| 716 } | 716 } |
| 717 | 717 |
| 718 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIWithHeaders) { | 718 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIWithHeaders) { |
| 719 StartTestServer(); | 719 StartTestServer(); |
| 720 RunTest("testWebRequestAPIWithHeaders", "web_view/apitest"); | 720 RunTest("testWebRequestAPIWithHeaders", "web_view/apitest"); |
| 721 StopTestServer(); | 721 StopTestServer(); |
| 722 } | 722 } |
| 723 | 723 |
| 724 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadEventsSamePageNavigation) { | 724 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadEventsSamePageNavigation) { |
| 725 std::string app_location = "web_view/apitest"; | 725 StartTestServer(); |
| 726 StartTestServer(app_location); | 726 RunTest("testLoadEventsSamePageNavigation", "web_view/apitest"); |
| 727 RunTest("testLoadEventsSamePageNavigation", app_location); | |
| 728 StopTestServer(); | 727 StopTestServer(); |
| 729 } | 728 } |
| 730 | 729 |
| 731 // Tests the existence of WebRequest API event objects on the request | 730 // Tests the existence of WebRequest API event objects on the request |
| 732 // object, on the webview element, and hanging directly off webview. | 731 // object, on the webview element, and hanging directly off webview. |
| 733 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIExistence) { | 732 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIExistence) { |
| 734 RunTest("testWebRequestAPIExistence", "web_view/apitest"); | 733 RunTest("testWebRequestAPIExistence", "web_view/apitest"); |
| 735 } | 734 } |
| 736 | 735 |
| 737 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIGoogleProperty) { | 736 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIGoogleProperty) { |
| 738 RunTest("testWebRequestAPIGoogleProperty", "web_view/apitest"); | 737 RunTest("testWebRequestAPIGoogleProperty", "web_view/apitest"); |
| 739 } | 738 } |
| 740 | 739 |
| 741 // This test verifies that webview.contentWindow works inside an iframe | 740 // This test verifies that webview.contentWindow works inside an iframe |
| 742 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) { | 741 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) { |
| 743 LaunchApp("web_view/inside_iframe"); | 742 LaunchApp("web_view/inside_iframe"); |
| 744 } | 743 } |
| 745 | 744 |
| 746 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) { | 745 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) { |
| 747 RunTest("testCaptureVisibleRegion", "web_view/apitest"); | 746 RunTest("testCaptureVisibleRegion", "web_view/apitest"); |
| 748 } | 747 } |
| 749 | 748 |
| 750 } // namespace extensions | 749 } // namespace extensions |
| OLD | NEW |