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

Unified Diff: components/safe_browsing_db/v4_update_protocol_manager_unittest.cc

Issue 1835833003: Disable V4UpdateProtocolManagerTests on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/v4_update_protocol_manager_unittest.cc
diff --git a/components/safe_browsing_db/v4_update_protocol_manager_unittest.cc b/components/safe_browsing_db/v4_update_protocol_manager_unittest.cc
index 2a9a239b91223114672146658b75da52fc257d36..abe90870fb7bb4e6a1e8404bb39d418ac3f0a3d4 100644
--- a/components/safe_browsing_db/v4_update_protocol_manager_unittest.cc
+++ b/components/safe_browsing_db/v4_update_protocol_manager_unittest.cc
@@ -123,8 +123,15 @@ void ValidateGetUpdatesResults(
}
// TODO(vakh): Add many more tests.
-
-TEST_F(V4UpdateProtocolManagerTest, TestGetUpdatesErrorHandlingNetwork) {
+#if defined(OS_ANDROID)
+// Flakes on Android: https://crbug.com/598412
+#define MAYBE_TestGetUpdatesErrorHandlingNetwork \
+ DISABLED_TestGetUpdatesErrorHandlingNetwork
+#else
+#define MAYBE_TestGetUpdatesErrorHandlingNetwork \
+ TestGetUpdatesErrorHandlingNetwork
+#endif
+TEST_F(V4UpdateProtocolManagerTest, MAYBE_TestGetUpdatesErrorHandlingNetwork) {
net::TestURLFetcherFactory factory;
scoped_ptr<V4UpdateProtocolManager> pm(CreateProtocolManager());
@@ -146,7 +153,16 @@ TEST_F(V4UpdateProtocolManagerTest, TestGetUpdatesErrorHandlingNetwork) {
EXPECT_EQ(1ul, pm->update_back_off_mult_);
}
-TEST_F(V4UpdateProtocolManagerTest, TestGetUpdatesErrorHandlingResponseCode) {
+#if defined(OS_ANDROID)
+// Flakes on Android: https://crbug.com/598412
+#define MAYBE_TestGetUpdatesErrorHandlingResponseCode \
+ DISABLED_TestGetUpdatesErrorHandlingResponseCode
+#else
+#define MAYBE_TestGetUpdatesErrorHandlingResponseCode \
+ TestGetUpdatesErrorHandlingResponseCode
+#endif
+TEST_F(V4UpdateProtocolManagerTest, \
+ MAYBE_TestGetUpdatesErrorHandlingResponseCode) {
net::TestURLFetcherFactory factory;
scoped_ptr<V4UpdateProtocolManager> pm(CreateProtocolManager());
@@ -170,7 +186,16 @@ TEST_F(V4UpdateProtocolManagerTest, TestGetUpdatesErrorHandlingResponseCode) {
EXPECT_EQ(1ul, pm->update_back_off_mult_);
}
-TEST_F(V4UpdateProtocolManagerTest, TestGetUpdatesNoError) {
+
+#if defined(OS_ANDROID)
+// Flakes on Android: https://crbug.com/598412
+#define MAYBE_TestGetUpdatesNoError \
+ DISABLED_TestGetUpdatesNoError
+#else
+#define MAYBE_TestGetUpdatesNoError \
+ TestGetUpdatesNoError
+#endif
+TEST_F(V4UpdateProtocolManagerTest, MAYBE_TestGetUpdatesNoError) {
net::TestURLFetcherFactory factory;
scoped_ptr<V4UpdateProtocolManager> pm(CreateProtocolManager());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698