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

Unified Diff: content/public/test/browser_test_base.h

Issue 2376083002: BlobUrlBrowserTest: Add a test exercising blob: URLs from file:// documents.
Patch Set: With fix Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/site_instance_impl.cc ('k') | content/public/test/browser_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/browser_test_base.h
diff --git a/content/public/test/browser_test_base.h b/content/public/test/browser_test_base.h
index fa14d40fcce454ad576c12492533e74964668c2c..f5ef43b933aaa4817c4f84ace46f0fecf360bd49 100644
--- a/content/public/test/browser_test_base.h
+++ b/content/public/test/browser_test_base.h
@@ -121,6 +121,9 @@ class BrowserTestBase : public testing::Test {
// instead.
void UseSoftwareCompositing();
+ // Call this before SetUp to run without kAllowFileAccessFromFiles.
+ void RevokeFileAccessFromFiles();
+
// Returns true if the test will be using GL acceleration via OSMesa.
bool UsingOSMesa() const;
@@ -146,6 +149,9 @@ class BrowserTestBase : public testing::Test {
// When true, do compositing with the software backend instead of using GL.
bool use_software_compositing_;
+ // Controls the presence of the kAllowFileAccessFromFiles command line switch.
+ bool allow_file_access_from_files_;
+
// Whether SetUp was called. This value is checked in the destructor of this
// class to ensure that SetUp was called. If it's not called, the test will
// not run and report a false positive result.
« no previous file with comments | « content/browser/site_instance_impl.cc ('k') | content/public/test/browser_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698