Disable CancelableSyncSocket.CancelReceiveShutdown on iOS 7 devices.
BUG=523296
R=droger@chromium.org,mark@chromium.org
Review URL: https://codereview.chromium.org/1306893002
Cr-Commit-Position: refs/heads/master@{#345365}
CrOS-Libchrome-Original-Commit: ed8af5cd9c7fe6d79a759d8e79e4a042c7b3d524
diff --git a/base/sync_socket_unittest.cc b/base/sync_socket_unittest.cc
index 7c8c97c..ff9b8bc 100644
--- a/base/sync_socket_unittest.cc
+++ b/base/sync_socket_unittest.cc
@@ -3,6 +3,10 @@
// found in the LICENSE file.
#include "base/basictypes.h"
+// TODO(ellyjones): Remove once http://crbug.com/523296 is fixed.
+#if defined(OS_IOS) && !TARGET_IPHONE_SIMULATOR
+#include "base/ios/ios_util.h"
+#endif
#include "base/sync_socket.h"
#include "base/threading/simple_thread.h"
#include "base/time/time.h"
@@ -114,6 +118,11 @@
}
TEST(CancelableSyncSocket, CancelReceiveShutdown) {
+// TODO(ellyjones): This test fails on iOS 7 devices. http://crbug.com/523296
+#if defined(OS_IOS) && !TARGET_IPHONE_SIMULATOR
+ if (!base::ios::IsRunningOnIOS8OrLater())
+ return;
+#endif
base::CancelableSyncSocket socket_a, socket_b;
ASSERT_TRUE(base::CancelableSyncSocket::CreatePair(&socket_a, &socket_b));