Disable broken Android rtc_unittests.

After disabling all of these, the rest of the tests pass, at least on
my Nexus 7 device.

BUG=webrtc:4364

Review-Url: https://codereview.webrtc.org/2151823002
Cr-Commit-Position: refs/heads/master@{#13485}
diff --git a/webrtc/base/filerotatingstream_unittest.cc b/webrtc/base/filerotatingstream_unittest.cc
index bac2a3a..2a0e858 100644
--- a/webrtc/base/filerotatingstream_unittest.cc
+++ b/webrtc/base/filerotatingstream_unittest.cc
@@ -19,7 +19,14 @@
 
 namespace rtc {
 
-class FileRotatingStreamTest : public ::testing::Test {
+#if defined (WEBRTC_ANDROID)
+// Fails on Android: https://bugs.chromium.org/p/webrtc/issues/detail?id=4364.
+#define MAYBE_FileRotatingStreamTest DISABLED_FileRotatingStreamTest
+#else
+#define MAYBE_FileRotatingStreamTest FileRotatingStreamTest
+#endif
+
+class MAYBE_FileRotatingStreamTest : public ::testing::Test {
  protected:
   static const char* kFilePrefix;
   static const size_t kMaxFileSize;
@@ -94,11 +101,12 @@
   std::string dir_path_;
 };
 
-const char* FileRotatingStreamTest::kFilePrefix = "FileRotatingStreamTest";
-const size_t FileRotatingStreamTest::kMaxFileSize = 2;
+const char* MAYBE_FileRotatingStreamTest::kFilePrefix =
+    "FileRotatingStreamTest";
+const size_t MAYBE_FileRotatingStreamTest::kMaxFileSize = 2;
 
 // Tests that stream state is correct before and after Open / Close.
-TEST_F(FileRotatingStreamTest, State) {
+TEST_F(MAYBE_FileRotatingStreamTest, State) {
   Init("FileRotatingStreamTestState", kFilePrefix, kMaxFileSize, 3);
 
   EXPECT_EQ(SS_CLOSED, stream_->GetState());
@@ -109,7 +117,7 @@
 }
 
 // Tests that nothing is written to file when data of length zero is written.
-TEST_F(FileRotatingStreamTest, EmptyWrite) {
+TEST_F(MAYBE_FileRotatingStreamTest, EmptyWrite) {
   Init("FileRotatingStreamTestEmptyWrite", kFilePrefix, kMaxFileSize, 3);
 
   ASSERT_TRUE(stream_->Open());
@@ -124,7 +132,7 @@
 
 // Tests that a write operation followed by a read returns the expected data
 // and writes to the expected files.
-TEST_F(FileRotatingStreamTest, WriteAndRead) {
+TEST_F(MAYBE_FileRotatingStreamTest, WriteAndRead) {
   Init("FileRotatingStreamTestWriteAndRead", kFilePrefix, kMaxFileSize, 3);
 
   ASSERT_TRUE(stream_->Open());
@@ -158,7 +166,7 @@
 
 // Tests that writing data greater than the total capacity of the files
 // overwrites the files correctly and is read correctly after.
-TEST_F(FileRotatingStreamTest, WriteOverflowAndRead) {
+TEST_F(MAYBE_FileRotatingStreamTest, WriteOverflowAndRead) {
   Init("FileRotatingStreamTestWriteOverflowAndRead", kFilePrefix, kMaxFileSize,
        3);
   ASSERT_TRUE(stream_->Open());
@@ -175,7 +183,7 @@
 }
 
 // Tests that the returned file paths have the right folder and prefix.
-TEST_F(FileRotatingStreamTest, GetFilePath) {
+TEST_F(MAYBE_FileRotatingStreamTest, GetFilePath) {
   Init("FileRotatingStreamTestGetFilePath", kFilePrefix, kMaxFileSize, 20);
   for (auto i = 0; i < 20; ++i) {
     Pathname path(stream_->GetFilePath(i));
@@ -184,7 +192,16 @@
   }
 }
 
-class CallSessionFileRotatingStreamTest : public ::testing::Test {
+#if defined (WEBRTC_ANDROID)
+// Fails on Android: https://bugs.chromium.org/p/webrtc/issues/detail?id=4364.
+#define MAYBE_CallSessionFileRotatingStreamTest \
+    DISABLED_CallSessionFileRotatingStreamTest
+#else
+#define MAYBE_CallSessionFileRotatingStreamTest \
+    CallSessionFileRotatingStreamTest
+#endif
+
+class MAYBE_CallSessionFileRotatingStreamTest : public ::testing::Test {
  protected:
   void Init(const std::string& dir_name, size_t max_total_log_size) {
     Pathname test_path;
@@ -237,7 +254,7 @@
 
 // Tests that writing and reading to a stream with the smallest possible
 // capacity works.
-TEST_F(CallSessionFileRotatingStreamTest, WriteAndReadSmallest) {
+TEST_F(MAYBE_CallSessionFileRotatingStreamTest, WriteAndReadSmallest) {
   Init("CallSessionFileRotatingStreamTestWriteAndReadSmallest", 4);
 
   ASSERT_TRUE(stream_->Open());
@@ -250,7 +267,7 @@
 
 // Tests that writing and reading to a stream with capacity lesser than 4MB
 // behaves correctly.
-TEST_F(CallSessionFileRotatingStreamTest, WriteAndReadSmall) {
+TEST_F(MAYBE_CallSessionFileRotatingStreamTest, WriteAndReadSmall) {
   Init("CallSessionFileRotatingStreamTestWriteAndReadSmall", 8);
 
   ASSERT_TRUE(stream_->Open());
@@ -263,7 +280,7 @@
 
 // Tests that writing and reading to a stream with capacity greater than 4MB
 // behaves correctly.
-TEST_F(CallSessionFileRotatingStreamTest, WriteAndReadLarge) {
+TEST_F(MAYBE_CallSessionFileRotatingStreamTest, WriteAndReadLarge) {
   Init("CallSessionFileRotatingStreamTestWriteAndReadLarge", 6 * 1024 * 1024);
 
   ASSERT_TRUE(stream_->Open());
@@ -290,7 +307,7 @@
 
 // Tests that writing and reading to a stream where only the first file is
 // written to behaves correctly.
-TEST_F(CallSessionFileRotatingStreamTest, WriteAndReadFirstHalf) {
+TEST_F(MAYBE_CallSessionFileRotatingStreamTest, WriteAndReadFirstHalf) {
   Init("CallSessionFileRotatingStreamTestWriteAndReadFirstHalf",
        6 * 1024 * 1024);
   ASSERT_TRUE(stream_->Open());