| Index: net/disk_cache/backend_unittest.cc
|
| ===================================================================
|
| --- net/disk_cache/backend_unittest.cc (revision 244963)
|
| +++ net/disk_cache/backend_unittest.cc (working copy)
|
| @@ -518,9 +518,13 @@
|
|
|
| base::MessageLoop::current()->RunUntilIdle();
|
|
|
| +#if !defined(OS_IOS)
|
| // Wait for the actual operation to complete, or we'll keep a file handle that
|
| - // may cause issues later.
|
| + // may cause issues later. Note that on iOS systems even though this test
|
| + // uses a single thread, the actual IO is posted to a worker thread and the
|
| + // cache destructor breaks the link to reach cb when the operation completes.
|
| rv = cb.GetResult(rv);
|
| +#endif
|
| }
|
|
|
| TEST_F(DiskCacheBackendTest, ShutdownWithPendingFileIO) {
|
| @@ -543,6 +547,8 @@
|
| }
|
| #endif
|
|
|
| +// See crbug.com/330074
|
| +#if !defined(OS_IOS)
|
| // Tests that one cache instance is not affected by another one going away.
|
| TEST_F(DiskCacheBackendTest, MultipleInstancesWithPendingFileIO) {
|
| base::ScopedTempDir store;
|
| @@ -576,6 +582,7 @@
|
| // may cause issues later.
|
| rv = cb.GetResult(rv);
|
| }
|
| +#endif
|
|
|
| // Tests that we deal with background-thread pending operations.
|
| void DiskCacheBackendTest::BackendShutdownWithPendingIO(bool fast) {
|
|
|