Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: chrome/browser/apps/web_view_browsertest.cc

Issue 338353007: Implementation of shared worker code path for WebView file system permission. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_sharedworker
Patch Set: Initial patch Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1970 matching lines...) Expand 10 before | Expand all | Expand 10 after
1981 TestHelper("testDeny", "web_view/filesystem/worker", NEEDS_TEST_SERVER); 1981 TestHelper("testDeny", "web_view/filesystem/worker", NEEDS_TEST_SERVER);
1982 } 1982 }
1983 1983
1984 // FileSystemAPIRequestFromWorker* test 3 of 3. 1984 // FileSystemAPIRequestFromWorker* test 3 of 3.
1985 IN_PROC_BROWSER_TEST_F(WebViewTest, 1985 IN_PROC_BROWSER_TEST_F(WebViewTest,
1986 FileSystemAPIRequestFromWorkerDefaultAllow) { 1986 FileSystemAPIRequestFromWorkerDefaultAllow) {
1987 TestHelper( 1987 TestHelper(
1988 "testDefaultAllow", "web_view/filesystem/worker", NEEDS_TEST_SERVER); 1988 "testDefaultAllow", "web_view/filesystem/worker", NEEDS_TEST_SERVER);
1989 } 1989 }
1990 1990
1991 // In following FilesystemAPIRequestFromSharedWorker* tests, guest create a
1992 // shared worker to request filesystem access from worker thread.
1993 // FileSystemAPIRequestFromSharedWorker* test 1 of 3
1994 IN_PROC_BROWSER_TEST_F(WebViewTest, FileSystemAPIRequestFromSharedWorkerAllow) {
1995 TestHelper("testAllow",
1996 "web_view/filesystem/shared_worker",
1997 NEEDS_TEST_SERVER);
1998 }
1999
2000 // FileSystemAPIRequestFromSharedWorker* test 2 of 3.
2001 IN_PROC_BROWSER_TEST_F(WebViewTest, FileSystemAPIRequestFromSharedWorkerDeny) {
2002 TestHelper("testDeny",
2003 "web_view/filesystem/shared_worker",
2004 NEEDS_TEST_SERVER);
2005 }
2006
2007 // FileSystemAPIRequestFromSharedWorker* test 3 of 3.
2008 IN_PROC_BROWSER_TEST_F(WebViewTest,
2009 FileSystemAPIRequestFromSharedWorkerDefaultAllow) {
2010 TestHelper(
2011 "testDefaultAllow",
2012 "web_view/filesystem/shared_worker",
2013 NEEDS_TEST_SERVER);
2014 }
2015
1991 IN_PROC_BROWSER_TEST_F(WebViewTest, ClearData) { 2016 IN_PROC_BROWSER_TEST_F(WebViewTest, ClearData) {
1992 #if defined(OS_WIN) 2017 #if defined(OS_WIN)
1993 // Flaky on XP bot http://crbug.com/282674 2018 // Flaky on XP bot http://crbug.com/282674
1994 if (base::win::GetVersion() <= base::win::VERSION_XP) 2019 if (base::win::GetVersion() <= base::win::VERSION_XP)
1995 return; 2020 return;
1996 #endif 2021 #endif
1997 2022
1998 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. 2023 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages.
1999 ASSERT_TRUE(RunPlatformAppTestWithArg( 2024 ASSERT_TRUE(RunPlatformAppTestWithArg(
2000 "platform_apps/web_view/common", "cleardata")) 2025 "platform_apps/web_view/common", "cleardata"))
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
2201 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestFindAPI_findupdate) { 2226 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestFindAPI_findupdate) {
2202 TestHelper("testFindAPI_findupdate", "web_view/shim", NO_TEST_SERVER); 2227 TestHelper("testFindAPI_findupdate", "web_view/shim", NO_TEST_SERVER);
2203 } 2228 }
2204 2229
2205 // <webview> screenshot capture fails with ubercomp. 2230 // <webview> screenshot capture fails with ubercomp.
2206 // See http://crbug.com/327035. 2231 // See http://crbug.com/327035.
2207 IN_PROC_BROWSER_TEST_F(WebViewCaptureTest, 2232 IN_PROC_BROWSER_TEST_F(WebViewCaptureTest,
2208 DISABLED_Shim_ScreenshotCapture) { 2233 DISABLED_Shim_ScreenshotCapture) {
2209 TestHelper("testScreenshotCapture", "web_view/shim", NO_TEST_SERVER); 2234 TestHelper("testScreenshotCapture", "web_view/shim", NO_TEST_SERVER);
2210 } 2235 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698