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 1938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1949 TestHelper("testDeny", "web_view/filesystem/worker", NEEDS_TEST_SERVER); | 1949 TestHelper("testDeny", "web_view/filesystem/worker", NEEDS_TEST_SERVER); |
1950 } | 1950 } |
1951 | 1951 |
1952 // FileSystemAPIRequestFromWorker* test 3 of 3. | 1952 // FileSystemAPIRequestFromWorker* test 3 of 3. |
1953 IN_PROC_BROWSER_TEST_F(WebViewTest, | 1953 IN_PROC_BROWSER_TEST_F(WebViewTest, |
1954 FileSystemAPIRequestFromWorkerDefaultAllow) { | 1954 FileSystemAPIRequestFromWorkerDefaultAllow) { |
1955 TestHelper( | 1955 TestHelper( |
1956 "testDefaultAllow", "web_view/filesystem/worker", NEEDS_TEST_SERVER); | 1956 "testDefaultAllow", "web_view/filesystem/worker", NEEDS_TEST_SERVER); |
1957 } | 1957 } |
1958 | 1958 |
| 1959 // In following FilesystemAPIRequestFromSharedWorker* tests, guest create a |
| 1960 // shared worker to request filesystem access from worker thread. |
| 1961 // FileSystemAPIRequestFromSharedWorker* test 1 of 3 |
| 1962 IN_PROC_BROWSER_TEST_F(WebViewTest, FileSystemAPIRequestFromSharedWorkerAllow) { |
| 1963 TestHelper("testAllow", |
| 1964 "web_view/filesystem/shared_worker", |
| 1965 NEEDS_TEST_SERVER); |
| 1966 } |
| 1967 |
| 1968 // FileSystemAPIRequestFromSharedWorker* test 2 of 3. |
| 1969 IN_PROC_BROWSER_TEST_F(WebViewTest, FileSystemAPIRequestFromSharedWorkerDeny) { |
| 1970 TestHelper("testDeny", |
| 1971 "web_view/filesystem/shared_worker", |
| 1972 NEEDS_TEST_SERVER); |
| 1973 } |
| 1974 |
| 1975 // FileSystemAPIRequestFromSharedWorker* test 3 of 3. |
| 1976 IN_PROC_BROWSER_TEST_F(WebViewTest, |
| 1977 FileSystemAPIRequestFromSharedWorkerDefaultAllow) { |
| 1978 TestHelper( |
| 1979 "testDefaultAllow", |
| 1980 "web_view/filesystem/shared_worker", |
| 1981 NEEDS_TEST_SERVER); |
| 1982 } |
| 1983 |
1959 IN_PROC_BROWSER_TEST_F(WebViewTest, ClearData) { | 1984 IN_PROC_BROWSER_TEST_F(WebViewTest, ClearData) { |
1960 #if defined(OS_WIN) | 1985 #if defined(OS_WIN) |
1961 // Flaky on XP bot http://crbug.com/282674 | 1986 // Flaky on XP bot http://crbug.com/282674 |
1962 if (base::win::GetVersion() <= base::win::VERSION_XP) | 1987 if (base::win::GetVersion() <= base::win::VERSION_XP) |
1963 return; | 1988 return; |
1964 #endif | 1989 #endif |
1965 | 1990 |
1966 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. | 1991 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. |
1967 ASSERT_TRUE(RunPlatformAppTestWithArg( | 1992 ASSERT_TRUE(RunPlatformAppTestWithArg( |
1968 "platform_apps/web_view/common", "cleardata")) | 1993 "platform_apps/web_view/common", "cleardata")) |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2168 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestFindAPI_findupdate) { | 2193 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestFindAPI_findupdate) { |
2169 TestHelper("testFindAPI_findupdate", "web_view/shim", NO_TEST_SERVER); | 2194 TestHelper("testFindAPI_findupdate", "web_view/shim", NO_TEST_SERVER); |
2170 } | 2195 } |
2171 | 2196 |
2172 // <webview> screenshot capture fails with ubercomp. | 2197 // <webview> screenshot capture fails with ubercomp. |
2173 // See http://crbug.com/327035. | 2198 // See http://crbug.com/327035. |
2174 IN_PROC_BROWSER_TEST_F(WebViewCaptureTest, | 2199 IN_PROC_BROWSER_TEST_F(WebViewCaptureTest, |
2175 DISABLED_Shim_ScreenshotCapture) { | 2200 DISABLED_Shim_ScreenshotCapture) { |
2176 TestHelper("testScreenshotCapture", "web_view/shim", NO_TEST_SERVER); | 2201 TestHelper("testScreenshotCapture", "web_view/shim", NO_TEST_SERVER); |
2177 } | 2202 } |
OLD | NEW |