| 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 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1944 "platform_apps/web_view/geolocation/cancel_request")) << message_; | 1944 "platform_apps/web_view/geolocation/cancel_request")) << message_; |
| 1945 } | 1945 } |
| 1946 | 1946 |
| 1947 IN_PROC_BROWSER_TEST_F(WebViewTest, DISABLED_GeolocationRequestGone) { | 1947 IN_PROC_BROWSER_TEST_F(WebViewTest, DISABLED_GeolocationRequestGone) { |
| 1948 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. | 1948 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. |
| 1949 ASSERT_TRUE(RunPlatformAppTest( | 1949 ASSERT_TRUE(RunPlatformAppTest( |
| 1950 "platform_apps/web_view/geolocation/geolocation_request_gone")) | 1950 "platform_apps/web_view/geolocation/geolocation_request_gone")) |
| 1951 << message_; | 1951 << message_; |
| 1952 } | 1952 } |
| 1953 | 1953 |
| 1954 // In following FilesystemAPIRequestFromMainThread* tests, guest request |
| 1955 // filesystem access from main thread of the guest. |
| 1956 // FileSystemAPIRequestFromMainThread* test 1 of 3 |
| 1957 IN_PROC_BROWSER_TEST_F(WebViewTest, FileSystemAPIRequestFromMainThreadAllow) { |
| 1958 TestHelper("testAllow", "web_view/filesystem/main", NEEDS_TEST_SERVER); |
| 1959 } |
| 1960 |
| 1961 // FileSystemAPIRequestFromMainThread* test 2 of 3. |
| 1962 IN_PROC_BROWSER_TEST_F(WebViewTest, FileSystemAPIRequestFromMainThreadDeny) { |
| 1963 TestHelper("testDeny", "web_view/filesystem/main", NEEDS_TEST_SERVER); |
| 1964 } |
| 1965 |
| 1966 // FileSystemAPIRequestFromMainThread* test 3 of 3. |
| 1967 IN_PROC_BROWSER_TEST_F(WebViewTest, |
| 1968 FileSystemAPIRequestFromMainThreadDefaultAllow) { |
| 1969 TestHelper("testDefaultAllow", "web_view/filesystem/main", NEEDS_TEST_SERVER); |
| 1970 } |
| 1971 |
| 1972 // In following FilesystemAPIRequestFromWorker* tests, guest create a worker |
| 1973 // to request filesystem access from worker thread. |
| 1974 // FileSystemAPIRequestFromWorker* test 1 of 3 |
| 1975 IN_PROC_BROWSER_TEST_F(WebViewTest, FileSystemAPIRequestFromWorkerAllow) { |
| 1976 TestHelper("testAllow", "web_view/filesystem/worker", NEEDS_TEST_SERVER); |
| 1977 } |
| 1978 |
| 1979 // FileSystemAPIRequestFromWorker* test 2 of 3. |
| 1980 IN_PROC_BROWSER_TEST_F(WebViewTest, FileSystemAPIRequestFromWorkerDeny) { |
| 1981 TestHelper("testDeny", "web_view/filesystem/worker", NEEDS_TEST_SERVER); |
| 1982 } |
| 1983 |
| 1984 // FileSystemAPIRequestFromWorker* test 3 of 3. |
| 1985 IN_PROC_BROWSER_TEST_F(WebViewTest, |
| 1986 FileSystemAPIRequestFromWorkerDefaultAllow) { |
| 1987 TestHelper( |
| 1988 "testDefaultAllow", "web_view/filesystem/worker", NEEDS_TEST_SERVER); |
| 1989 } |
| 1990 |
| 1954 IN_PROC_BROWSER_TEST_F(WebViewTest, ClearData) { | 1991 IN_PROC_BROWSER_TEST_F(WebViewTest, ClearData) { |
| 1955 #if defined(OS_WIN) | 1992 #if defined(OS_WIN) |
| 1956 // Flaky on XP bot http://crbug.com/282674 | 1993 // Flaky on XP bot http://crbug.com/282674 |
| 1957 if (base::win::GetVersion() <= base::win::VERSION_XP) | 1994 if (base::win::GetVersion() <= base::win::VERSION_XP) |
| 1958 return; | 1995 return; |
| 1959 #endif | 1996 #endif |
| 1960 | 1997 |
| 1961 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. | 1998 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. |
| 1962 ASSERT_TRUE(RunPlatformAppTestWithArg( | 1999 ASSERT_TRUE(RunPlatformAppTestWithArg( |
| 1963 "platform_apps/web_view/common", "cleardata")) | 2000 "platform_apps/web_view/common", "cleardata")) |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2164 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestFindAPI_findupdate) { | 2201 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestFindAPI_findupdate) { |
| 2165 TestHelper("testFindAPI_findupdate", "web_view/shim", NO_TEST_SERVER); | 2202 TestHelper("testFindAPI_findupdate", "web_view/shim", NO_TEST_SERVER); |
| 2166 } | 2203 } |
| 2167 | 2204 |
| 2168 // <webview> screenshot capture fails with ubercomp. | 2205 // <webview> screenshot capture fails with ubercomp. |
| 2169 // See http://crbug.com/327035. | 2206 // See http://crbug.com/327035. |
| 2170 IN_PROC_BROWSER_TEST_F(WebViewCaptureTest, | 2207 IN_PROC_BROWSER_TEST_F(WebViewCaptureTest, |
| 2171 DISABLED_Shim_ScreenshotCapture) { | 2208 DISABLED_Shim_ScreenshotCapture) { |
| 2172 TestHelper("testScreenshotCapture", "web_view/shim", NO_TEST_SERVER); | 2209 TestHelper("testScreenshotCapture", "web_view/shim", NO_TEST_SERVER); |
| 2173 } | 2210 } |
| OLD | NEW |