OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <queue> | 5 #include <queue> |
6 #include <set> | 6 #include <set> |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 2387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2398 WebViewTest, | 2398 WebViewTest, |
2399 FileSystemAPIRequestFromSharedWorkerOfMultiWebViewGuestsDefaultAllow) { | 2399 FileSystemAPIRequestFromSharedWorkerOfMultiWebViewGuestsDefaultAllow) { |
2400 TestHelper( | 2400 TestHelper( |
2401 "testDefaultAllow", | 2401 "testDefaultAllow", |
2402 "web_view/filesystem/shared_worker/multiple", | 2402 "web_view/filesystem/shared_worker/multiple", |
2403 NEEDS_TEST_SERVER); | 2403 NEEDS_TEST_SERVER); |
2404 } | 2404 } |
2405 | 2405 |
2406 IN_PROC_BROWSER_TEST_P(WebViewTest, ClearData) { | 2406 IN_PROC_BROWSER_TEST_P(WebViewTest, ClearData) { |
2407 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. | 2407 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. |
2408 ASSERT_TRUE(RunPlatformAppTestWithArg( | 2408 ASSERT_TRUE( |
2409 "platform_apps/web_view/common", "cleardata")) | 2409 RunPlatformAppTestWithArg("platform_apps/web_view/common", "cleardata")) |
2410 << message_; | 2410 << message_; |
| 2411 } |
| 2412 |
| 2413 IN_PROC_BROWSER_TEST_P(WebViewTest, ClearSessionCookies) { |
| 2414 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. |
| 2415 ASSERT_TRUE(RunPlatformAppTestWithArg("platform_apps/web_view/common", |
| 2416 "cleardata_session")) |
| 2417 << message_; |
| 2418 } |
| 2419 |
| 2420 IN_PROC_BROWSER_TEST_P(WebViewTest, ClearPersistentCookies) { |
| 2421 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. |
| 2422 ASSERT_TRUE(RunPlatformAppTestWithArg("platform_apps/web_view/common", |
| 2423 "cleardata_persistent")) |
| 2424 << message_; |
2411 } | 2425 } |
2412 | 2426 |
2413 // Regression test for https://crbug.com/615429. | 2427 // Regression test for https://crbug.com/615429. |
2414 IN_PROC_BROWSER_TEST_P(WebViewTest, ClearDataTwice) { | 2428 IN_PROC_BROWSER_TEST_P(WebViewTest, ClearDataTwice) { |
2415 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. | 2429 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. |
2416 ASSERT_TRUE(RunPlatformAppTestWithArg("platform_apps/web_view/common", | 2430 ASSERT_TRUE(RunPlatformAppTestWithArg("platform_apps/web_view/common", |
2417 "cleardata_twice")) | 2431 "cleardata_twice")) |
2418 << message_; | 2432 << message_; |
2419 } | 2433 } |
2420 | 2434 |
(...skipping 1469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3890 ClosingChromeSignInShouldNotCrash) { | 3904 ClosingChromeSignInShouldNotCrash) { |
3891 GURL signin_url{"chrome://chrome-signin"}; | 3905 GURL signin_url{"chrome://chrome-signin"}; |
3892 | 3906 |
3893 AddTabAtIndex(0, signin_url, ui::PAGE_TRANSITION_TYPED); | 3907 AddTabAtIndex(0, signin_url, ui::PAGE_TRANSITION_TYPED); |
3894 AddTabAtIndex(1, signin_url, ui::PAGE_TRANSITION_TYPED); | 3908 AddTabAtIndex(1, signin_url, ui::PAGE_TRANSITION_TYPED); |
3895 WaitForWebViewInDom(); | 3909 WaitForWebViewInDom(); |
3896 | 3910 |
3897 chrome::CloseTab(browser()); | 3911 chrome::CloseTab(browser()); |
3898 } | 3912 } |
3899 #endif | 3913 #endif |
OLD | NEW |