| Index: third_party/zlib/google/zip_reader_unittest.cc
|
| diff --git a/third_party/zlib/google/zip_reader_unittest.cc b/third_party/zlib/google/zip_reader_unittest.cc
|
| index 09fc241bd6fc5fdcdf82449ed7953fa636d0a45e..d6fd76e19423557407520052af8259dd8912e210 100644
|
| --- a/third_party/zlib/google/zip_reader_unittest.cc
|
| +++ b/third_party/zlib/google/zip_reader_unittest.cc
|
| @@ -180,8 +180,8 @@ TEST_F(ZipReaderTest, Open_ValidZipFile) {
|
| }
|
|
|
| TEST_F(ZipReaderTest, Open_ValidZipPlatformFile) {
|
| - ZipReader reader;
|
| FileWrapper zip_fd_wrapper(test_zip_file_, FileWrapper::READ_ONLY);
|
| + ZipReader reader;
|
| ASSERT_TRUE(reader.OpenFromPlatformFile(zip_fd_wrapper.platform_file()));
|
| }
|
|
|
| @@ -573,4 +573,13 @@ TEST_F(ZipReaderTest, ExtractCurrentEntryToString) {
|
| reader.Close();
|
| }
|
|
|
| +// This test exposes http://crbug.com/430959, at least on OS X
|
| +TEST_F(ZipReaderTest, DISABLED_LeakDetectionTest) {
|
| + for (int i = 0; i < 2557; ++i) {
|
| + FileWrapper zip_fd_wrapper(test_zip_file_, FileWrapper::READ_ONLY);
|
| + ZipReader reader;
|
| + ASSERT_TRUE(reader.OpenFromPlatformFile(zip_fd_wrapper.platform_file()));
|
| + }
|
| +}
|
| +
|
| } // namespace zip
|
|
|