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 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1925 TestHelper("testDeny", "web_view/filesystem/worker", NEEDS_TEST_SERVER); | 1925 TestHelper("testDeny", "web_view/filesystem/worker", NEEDS_TEST_SERVER); |
1926 } | 1926 } |
1927 | 1927 |
1928 // FileSystemAPIRequestFromWorker* test 3 of 3. | 1928 // FileSystemAPIRequestFromWorker* test 3 of 3. |
1929 IN_PROC_BROWSER_TEST_F(WebViewTest, | 1929 IN_PROC_BROWSER_TEST_F(WebViewTest, |
1930 FileSystemAPIRequestFromWorkerDefaultAllow) { | 1930 FileSystemAPIRequestFromWorkerDefaultAllow) { |
1931 TestHelper( | 1931 TestHelper( |
1932 "testDefaultAllow", "web_view/filesystem/worker", NEEDS_TEST_SERVER); | 1932 "testDefaultAllow", "web_view/filesystem/worker", NEEDS_TEST_SERVER); |
1933 } | 1933 } |
1934 | 1934 |
| 1935 // In following FilesystemAPIRequestFromSharedWorker* tests, guest create a |
| 1936 // shared worker to request filesystem access from worker thread. |
| 1937 // FileSystemAPIRequestFromSharedWorker* test 1 of 3 |
| 1938 IN_PROC_BROWSER_TEST_F(WebViewTest, FileSystemAPIRequestFromSharedWorkerAllow) { |
| 1939 TestHelper("testAllow", |
| 1940 "web_view/filesystem/shared_worker", |
| 1941 NEEDS_TEST_SERVER); |
| 1942 } |
| 1943 |
| 1944 // FileSystemAPIRequestFromSharedWorker* test 2 of 3. |
| 1945 IN_PROC_BROWSER_TEST_F(WebViewTest, FileSystemAPIRequestFromSharedWorkerDeny) { |
| 1946 TestHelper("testDeny", |
| 1947 "web_view/filesystem/shared_worker", |
| 1948 NEEDS_TEST_SERVER); |
| 1949 } |
| 1950 |
| 1951 // FileSystemAPIRequestFromSharedWorker* test 3 of 3. |
| 1952 IN_PROC_BROWSER_TEST_F(WebViewTest, |
| 1953 FileSystemAPIRequestFromSharedWorkerDefaultAllow) { |
| 1954 TestHelper( |
| 1955 "testDefaultAllow", |
| 1956 "web_view/filesystem/shared_worker", |
| 1957 NEEDS_TEST_SERVER); |
| 1958 } |
| 1959 |
1935 IN_PROC_BROWSER_TEST_F(WebViewTest, ClearData) { | 1960 IN_PROC_BROWSER_TEST_F(WebViewTest, ClearData) { |
1936 #if defined(OS_WIN) | 1961 #if defined(OS_WIN) |
1937 // Flaky on XP bot http://crbug.com/282674 | 1962 // Flaky on XP bot http://crbug.com/282674 |
1938 if (base::win::GetVersion() <= base::win::VERSION_XP) | 1963 if (base::win::GetVersion() <= base::win::VERSION_XP) |
1939 return; | 1964 return; |
1940 #endif | 1965 #endif |
1941 | 1966 |
1942 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. | 1967 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. |
1943 ASSERT_TRUE(RunPlatformAppTestWithArg( | 1968 ASSERT_TRUE(RunPlatformAppTestWithArg( |
1944 "platform_apps/web_view/common", "cleardata")) | 1969 "platform_apps/web_view/common", "cleardata")) |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2144 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestFindAPI_findupdate) { | 2169 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestFindAPI_findupdate) { |
2145 TestHelper("testFindAPI_findupdate", "web_view/shim", NO_TEST_SERVER); | 2170 TestHelper("testFindAPI_findupdate", "web_view/shim", NO_TEST_SERVER); |
2146 } | 2171 } |
2147 | 2172 |
2148 // <webview> screenshot capture fails with ubercomp. | 2173 // <webview> screenshot capture fails with ubercomp. |
2149 // See http://crbug.com/327035. | 2174 // See http://crbug.com/327035. |
2150 IN_PROC_BROWSER_TEST_F(WebViewCaptureTest, | 2175 IN_PROC_BROWSER_TEST_F(WebViewCaptureTest, |
2151 DISABLED_Shim_ScreenshotCapture) { | 2176 DISABLED_Shim_ScreenshotCapture) { |
2152 TestHelper("testScreenshotCapture", "web_view/shim", NO_TEST_SERVER); | 2177 TestHelper("testScreenshotCapture", "web_view/shim", NO_TEST_SERVER); |
2153 } | 2178 } |
OLD | NEW |