Index: content/browser/download/mhtml_generation_browsertest.cc |
diff --git a/content/browser/download/mhtml_generation_browsertest.cc b/content/browser/download/mhtml_generation_browsertest.cc |
index 6f684f9c44f8cb1c89d4d086cdd588c49037fd0d..0dbc08b523a034ec014f02aebd3e3e7091b9ab64 100644 |
--- a/content/browser/download/mhtml_generation_browsertest.cc |
+++ b/content/browser/download/mhtml_generation_browsertest.cc |
@@ -365,9 +365,22 @@ IN_PROC_BROWSER_TEST_F(MHTMLGenerationTest, GenerateMHTMLObeyNoStoreSubFrame) { |
EXPECT_THAT(mhtml, Not(ContainsRegex("Content-Location:.*nostore.jpg"))); |
} |
+// TODO(crbug.com/615291): These fail on Android under some circumstances. |
+#if defined(OS_ANDROID) |
+#define MAYBE_ViewedMHTMLContainsNoStoreContentIfNoCacheControlPolicy \ |
+ DISABLED_ViewedMHTMLContainsNoStoreContentIfNoCacheControlPolicy |
+#define MAYBE_ViewedMHTMLDoesNotContainNoStoreContent \ |
+ DISABLED_ViewedMHTMLDoesNotContainNoStoreContent |
+#else |
+#define MAYBE_ViewedMHTMLContainsNoStoreContentIfNoCacheControlPolicy \ |
+ ViewedMHTMLContainsNoStoreContentIfNoCacheControlPolicy |
+#define MAYBE_ViewedMHTMLDoesNotContainNoStoreContent \ |
+ ViewedMHTMLDoesNotContainNoStoreContent |
+#endif |
+ |
IN_PROC_BROWSER_TEST_F( |
MHTMLGenerationTest, |
- ViewedMHTMLContainsNoStoreContentIfNoCacheControlPolicy) { |
+ MAYBE_ViewedMHTMLContainsNoStoreContentIfNoCacheControlPolicy) { |
// Generate MHTML, specifying the FailForNoStoreMainFrame policy. |
base::FilePath path(temp_dir_.path()); |
path = path.Append(FILE_PATH_LITERAL("test.mht")); |
@@ -387,7 +400,7 @@ IN_PROC_BROWSER_TEST_F( |
} |
IN_PROC_BROWSER_TEST_F(MHTMLGenerationTest, |
- ViewedMHTMLDoesNotContainNoStoreContent) { |
+ MAYBE_ViewedMHTMLDoesNotContainNoStoreContent) { |
// Generate MHTML, specifying the FailForNoStoreMainFrame policy. |
base::FilePath path(temp_dir_.path()); |
path = path.Append(FILE_PATH_LITERAL("test.mht")); |