| 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 "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "content/public/browser/render_process_host.h" | 10 #include "content/public/browser/render_process_host.h" |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestTerminateAfterExit) { | 441 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestTerminateAfterExit) { |
| 442 RunTest("testTerminateAfterExit", "web_view/apitest"); | 442 RunTest("testTerminateAfterExit", "web_view/apitest"); |
| 443 } | 443 } |
| 444 | 444 |
| 445 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPI) { | 445 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPI) { |
| 446 StartTestServer(); | 446 StartTestServer(); |
| 447 RunTest("testWebRequestAPI", "web_view/apitest"); | 447 RunTest("testWebRequestAPI", "web_view/apitest"); |
| 448 StopTestServer(); | 448 StopTestServer(); |
| 449 } | 449 } |
| 450 | 450 |
| 451 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIWithHeaders) { |
| 452 StartTestServer(); |
| 453 RunTest("testWebRequestAPI", "web_view/apitest"); |
| 454 StopTestServer(); |
| 455 } |
| 456 |
| 451 // Tests the existence of WebRequest API event objects on the request | 457 // Tests the existence of WebRequest API event objects on the request |
| 452 // object, on the webview element, and hanging directly off webview. | 458 // object, on the webview element, and hanging directly off webview. |
| 453 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIExistence) { | 459 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIExistence) { |
| 454 StartTestServer(); | 460 StartTestServer(); |
| 455 RunTest("testWebRequestAPIExistence", "web_view/apitest"); | 461 RunTest("testWebRequestAPIExistence", "web_view/apitest"); |
| 456 StopTestServer(); | 462 StopTestServer(); |
| 457 } | 463 } |
| 458 | 464 |
| 459 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIGoogleProperty) { | 465 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIGoogleProperty) { |
| 460 StartTestServer(); | 466 StartTestServer(); |
| 461 RunTest("testWebRequestAPIGoogleProperty", "web_view/apitest"); | 467 RunTest("testWebRequestAPIGoogleProperty", "web_view/apitest"); |
| 462 StopTestServer(); | 468 StopTestServer(); |
| 463 } | 469 } |
| 464 | 470 |
| 465 } // namespace extensions | 471 } // namespace extensions |
| OLD | NEW |