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

Unified Diff: content/common/quarantine/quarantine_unittest.cc

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/common/quarantine/quarantine_unittest.cc
diff --git a/content/common/quarantine/quarantine_unittest.cc b/content/common/quarantine/quarantine_unittest.cc
index 9e4f3bc51b9e279308acd92b93876899abd77791..726aa292687b0226e99d5ade26601ebb20966124 100644
--- a/content/common/quarantine/quarantine_unittest.cc
+++ b/content/common/quarantine/quarantine_unittest.cc
@@ -26,6 +26,12 @@ const char kTestGUID[] = "69f8621d-c46a-4e88-b915-1ce5415cb008";
} // namespace
TEST(QuarantineTest, FileCanBeOpenedForReadAfterAnnotation) {
+ if (!IsQuarantineSupportedForTesting()) {
+ LOG(WARNING) << "Test will be skipped because quarantining is "
+ "not supported on this OS/file system.";
+ return;
+ }
+
base::ScopedTempDir test_dir;
ASSERT_TRUE(test_dir.CreateUniqueTempDir());
@@ -43,6 +49,12 @@ TEST(QuarantineTest, FileCanBeOpenedForReadAfterAnnotation) {
}
TEST(QuarantineTest, FileCanBeAnnotatedWithNoGUID) {
+ if (!IsQuarantineSupportedForTesting()) {
+ LOG(WARNING) << "Test will be skipped because quarantining is "
+ "not supported on this OS/file system.";
+ return;
+ }
+
base::ScopedTempDir test_dir;
ASSERT_TRUE(test_dir.CreateUniqueTempDir());

Powered by Google App Engine
This is Rietveld 408576698