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 "apps/ui/native_app_window.h" | 5 #include "apps/ui/native_app_window.h" |
6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
10 #include "chrome/browser/apps/app_browsertest_util.h" | 10 #include "chrome/browser/apps/app_browsertest_util.h" |
(...skipping 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1958 TestHelper("testDeny", "web_view/filesystem/worker", NEEDS_TEST_SERVER); | 1958 TestHelper("testDeny", "web_view/filesystem/worker", NEEDS_TEST_SERVER); |
1959 } | 1959 } |
1960 | 1960 |
1961 // FileSystemAPIRequestFromWorker* test 3 of 3. | 1961 // FileSystemAPIRequestFromWorker* test 3 of 3. |
1962 IN_PROC_BROWSER_TEST_F(WebViewTest, | 1962 IN_PROC_BROWSER_TEST_F(WebViewTest, |
1963 FileSystemAPIRequestFromWorkerDefaultAllow) { | 1963 FileSystemAPIRequestFromWorkerDefaultAllow) { |
1964 TestHelper( | 1964 TestHelper( |
1965 "testDefaultAllow", "web_view/filesystem/worker", NEEDS_TEST_SERVER); | 1965 "testDefaultAllow", "web_view/filesystem/worker", NEEDS_TEST_SERVER); |
1966 } | 1966 } |
1967 | 1967 |
| 1968 // In following FilesystemAPIRequestFromSharedWorkerOfSingleWebViewGuest* tests, |
| 1969 // embedder contains a single webview guest. The guest creates a shared worker |
| 1970 // to request filesystem access from worker thread. |
| 1971 // FileSystemAPIRequestFromSharedWorkerOfSingleWebViewGuest* test 1 of 3 |
| 1972 IN_PROC_BROWSER_TEST_F( |
| 1973 WebViewTest, |
| 1974 FileSystemAPIRequestFromSharedWorkerOfSingleWebViewGuestAllow) { |
| 1975 TestHelper("testAllow", |
| 1976 "web_view/filesystem/shared_worker/single", |
| 1977 NEEDS_TEST_SERVER); |
| 1978 } |
| 1979 |
| 1980 // FileSystemAPIRequestFromSharedWorkerOfSingleWebViewGuest* test 2 of 3. |
| 1981 IN_PROC_BROWSER_TEST_F( |
| 1982 WebViewTest, |
| 1983 FileSystemAPIRequestFromSharedWorkerOfSingleWebViewGuestDeny) { |
| 1984 TestHelper("testDeny", |
| 1985 "web_view/filesystem/shared_worker/single", |
| 1986 NEEDS_TEST_SERVER); |
| 1987 } |
| 1988 |
| 1989 // FileSystemAPIRequestFromSharedWorkerOfSingleWebViewGuest* test 3 of 3. |
| 1990 IN_PROC_BROWSER_TEST_F( |
| 1991 WebViewTest, |
| 1992 FileSystemAPIRequestFromSharedWorkerOfSingleWebViewGuestDefaultAllow) { |
| 1993 TestHelper( |
| 1994 "testDefaultAllow", |
| 1995 "web_view/filesystem/shared_worker/single", |
| 1996 NEEDS_TEST_SERVER); |
| 1997 } |
| 1998 |
| 1999 // In following FilesystemAPIRequestFromSharedWorkerOfMultiWebViewGuests* tests, |
| 2000 // embedder contains mutiple webview guests. Each guest creates a shared worker |
| 2001 // to request filesystem access from worker thread. |
| 2002 // FileSystemAPIRequestFromSharedWorkerOfMultiWebViewGuests* test 1 of 3 |
| 2003 IN_PROC_BROWSER_TEST_F( |
| 2004 WebViewTest, |
| 2005 FileSystemAPIRequestFromSharedWorkerOfMultiWebViewGuestsAllow) { |
| 2006 TestHelper("testAllow", |
| 2007 "web_view/filesystem/shared_worker/multiple", |
| 2008 NEEDS_TEST_SERVER); |
| 2009 } |
| 2010 |
| 2011 // FileSystemAPIRequestFromSharedWorkerOfMultiWebViewGuests* test 2 of 3. |
| 2012 IN_PROC_BROWSER_TEST_F( |
| 2013 WebViewTest, |
| 2014 FileSystemAPIRequestFromSharedWorkerOfMultiWebViewGuestsDeny) { |
| 2015 TestHelper("testDeny", |
| 2016 "web_view/filesystem/shared_worker/multiple", |
| 2017 NEEDS_TEST_SERVER); |
| 2018 } |
| 2019 |
| 2020 // FileSystemAPIRequestFromSharedWorkerOfMultiWebViewGuests* test 3 of 3. |
| 2021 IN_PROC_BROWSER_TEST_F( |
| 2022 WebViewTest, |
| 2023 FileSystemAPIRequestFromSharedWorkerOfMultiWebViewGuestsDefaultAllow) { |
| 2024 TestHelper( |
| 2025 "testDefaultAllow", |
| 2026 "web_view/filesystem/shared_worker/multiple", |
| 2027 NEEDS_TEST_SERVER); |
| 2028 } |
| 2029 |
1968 IN_PROC_BROWSER_TEST_F(WebViewTest, ClearData) { | 2030 IN_PROC_BROWSER_TEST_F(WebViewTest, ClearData) { |
1969 #if defined(OS_WIN) | 2031 #if defined(OS_WIN) |
1970 // Flaky on XP bot http://crbug.com/282674 | 2032 // Flaky on XP bot http://crbug.com/282674 |
1971 if (base::win::GetVersion() <= base::win::VERSION_XP) | 2033 if (base::win::GetVersion() <= base::win::VERSION_XP) |
1972 return; | 2034 return; |
1973 #endif | 2035 #endif |
1974 | 2036 |
1975 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. | 2037 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. |
1976 ASSERT_TRUE(RunPlatformAppTestWithArg( | 2038 ASSERT_TRUE(RunPlatformAppTestWithArg( |
1977 "platform_apps/web_view/common", "cleardata")) | 2039 "platform_apps/web_view/common", "cleardata")) |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2177 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestFindAPI_findupdate) { | 2239 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestFindAPI_findupdate) { |
2178 TestHelper("testFindAPI_findupdate", "web_view/shim", NO_TEST_SERVER); | 2240 TestHelper("testFindAPI_findupdate", "web_view/shim", NO_TEST_SERVER); |
2179 } | 2241 } |
2180 | 2242 |
2181 // <webview> screenshot capture fails with ubercomp. | 2243 // <webview> screenshot capture fails with ubercomp. |
2182 // See http://crbug.com/327035. | 2244 // See http://crbug.com/327035. |
2183 IN_PROC_BROWSER_TEST_F(WebViewCaptureTest, | 2245 IN_PROC_BROWSER_TEST_F(WebViewCaptureTest, |
2184 DISABLED_Shim_ScreenshotCapture) { | 2246 DISABLED_Shim_ScreenshotCapture) { |
2185 TestHelper("testScreenshotCapture", "web_view/shim", NO_TEST_SERVER); | 2247 TestHelper("testScreenshotCapture", "web_view/shim", NO_TEST_SERVER); |
2186 } | 2248 } |
OLD | NEW |