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 1926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1937 "platform_apps/web_view/geolocation/cancel_request")) << message_; | 1937 "platform_apps/web_view/geolocation/cancel_request")) << message_; |
1938 } | 1938 } |
1939 | 1939 |
1940 IN_PROC_BROWSER_TEST_F(WebViewTest, DISABLED_GeolocationRequestGone) { | 1940 IN_PROC_BROWSER_TEST_F(WebViewTest, DISABLED_GeolocationRequestGone) { |
1941 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. | 1941 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. |
1942 ASSERT_TRUE(RunPlatformAppTest( | 1942 ASSERT_TRUE(RunPlatformAppTest( |
1943 "platform_apps/web_view/geolocation/geolocation_request_gone")) | 1943 "platform_apps/web_view/geolocation/geolocation_request_gone")) |
1944 << message_; | 1944 << message_; |
1945 } | 1945 } |
1946 | 1946 |
| 1947 // In following FilesystemAPIRequestFromMainThread* tests, guest request |
| 1948 // filesystem access from main thread of the guest. |
| 1949 // FileSystemAPIRequestFromMainThread* test 1 of 3 |
| 1950 IN_PROC_BROWSER_TEST_F(WebViewTest, FileSystemAPIRequestFromMainThreadAllow) { |
| 1951 TestHelper("testAllow", "web_view/filesystem/main", NEEDS_TEST_SERVER); |
| 1952 } |
| 1953 |
| 1954 // FileSystemAPIRequestFromMainThread* test 2 of 3. |
| 1955 IN_PROC_BROWSER_TEST_F(WebViewTest, FileSystemAPIRequestFromMainThreadDeny) { |
| 1956 TestHelper("testDeny", "web_view/filesystem/main", NEEDS_TEST_SERVER); |
| 1957 } |
| 1958 |
| 1959 // FileSystemAPIRequestFromMainThread* test 3 of 3. |
| 1960 IN_PROC_BROWSER_TEST_F(WebViewTest, |
| 1961 FileSystemAPIRequestFromMainThreadDefaultAllow) { |
| 1962 TestHelper("testDefaultAllow", "web_view/filesystem/main", NEEDS_TEST_SERVER); |
| 1963 } |
| 1964 |
| 1965 // In following FilesystemAPIRequestFromWorker* tests, guest create a worker |
| 1966 // to request filesystem access from worker thread. |
| 1967 // FileSystemAPIRequestFromWorker* test 1 of 3 |
| 1968 IN_PROC_BROWSER_TEST_F(WebViewTest, FileSystemAPIRequestFromWorkerAllow) { |
| 1969 TestHelper("testAllow", "web_view/filesystem/worker", NEEDS_TEST_SERVER); |
| 1970 } |
| 1971 |
| 1972 // FileSystemAPIRequestFromWorker* test 2 of 3. |
| 1973 IN_PROC_BROWSER_TEST_F(WebViewTest, FileSystemAPIRequestFromWorkerDeny) { |
| 1974 TestHelper("testDeny", "web_view/filesystem/worker", NEEDS_TEST_SERVER); |
| 1975 } |
| 1976 |
| 1977 // FileSystemAPIRequestFromWorker* test 3 of 3. |
| 1978 IN_PROC_BROWSER_TEST_F(WebViewTest, |
| 1979 FileSystemAPIRequestFromWorkerDefaultAllow) { |
| 1980 TestHelper( |
| 1981 "testDefaultAllow", "web_view/filesystem/worker", NEEDS_TEST_SERVER); |
| 1982 } |
| 1983 |
1947 IN_PROC_BROWSER_TEST_F(WebViewTest, ClearData) { | 1984 IN_PROC_BROWSER_TEST_F(WebViewTest, ClearData) { |
1948 #if defined(OS_WIN) | 1985 #if defined(OS_WIN) |
1949 // Flaky on XP bot http://crbug.com/282674 | 1986 // Flaky on XP bot http://crbug.com/282674 |
1950 if (base::win::GetVersion() <= base::win::VERSION_XP) | 1987 if (base::win::GetVersion() <= base::win::VERSION_XP) |
1951 return; | 1988 return; |
1952 #endif | 1989 #endif |
1953 | 1990 |
1954 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. | 1991 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. |
1955 ASSERT_TRUE(RunPlatformAppTestWithArg( | 1992 ASSERT_TRUE(RunPlatformAppTestWithArg( |
1956 "platform_apps/web_view/common", "cleardata")) | 1993 "platform_apps/web_view/common", "cleardata")) |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2157 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestFindAPI_findupdate) { | 2194 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestFindAPI_findupdate) { |
2158 TestHelper("testFindAPI_findupdate", "web_view/shim", NO_TEST_SERVER); | 2195 TestHelper("testFindAPI_findupdate", "web_view/shim", NO_TEST_SERVER); |
2159 } | 2196 } |
2160 | 2197 |
2161 // <webview> screenshot capture fails with ubercomp. | 2198 // <webview> screenshot capture fails with ubercomp. |
2162 // See http://crbug.com/327035. | 2199 // See http://crbug.com/327035. |
2163 IN_PROC_BROWSER_TEST_F(WebViewCaptureTest, | 2200 IN_PROC_BROWSER_TEST_F(WebViewCaptureTest, |
2164 DISABLED_Shim_ScreenshotCapture) { | 2201 DISABLED_Shim_ScreenshotCapture) { |
2165 TestHelper("testScreenshotCapture", "web_view/shim", NO_TEST_SERVER); | 2202 TestHelper("testScreenshotCapture", "web_view/shim", NO_TEST_SERVER); |
2166 } | 2203 } |
OLD | NEW |