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

Unified Diff: content/public/common/quarantine.h

Issue 2618083002: Disable Quarantine tests on platforms its not supported. (Closed)
Patch Set: Created 3 years, 11 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
Index: content/public/common/quarantine.h
diff --git a/content/public/common/quarantine.h b/content/public/common/quarantine.h
index 5f28fb421ca5e7db2ef31c91b888f71efa446044..8295082f728b9fc30800204bd2753f28564346fe 100644
--- a/content/public/common/quarantine.h
+++ b/content/public/common/quarantine.h
@@ -101,6 +101,13 @@ CONTENT_EXPORT bool IsFileQuarantined(const base::FilePath& file,
const GURL& source_url,
const GURL& referrer_url);
+// Determine if quarantining is supported. For exapmle, quarantining would not
+// be supported on a linux system that disabled extended attributes or that uses
+// tmpfs.
+//
+// Only to be used in tests.
+CONTENT_EXPORT bool IsQuarantineSupportedForTesting();
+
} // namespace content
#endif // CONTENT_PUBLIC_COMMON_QUARANTINE_H_
« content/common/quarantine/quarantine_linux.cc ('K') | « content/common/quarantine/quarantine_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698