summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/mapped_file_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/disk_cache/mapped_file_unittest.cc')
-rw-r--r--net/disk_cache/mapped_file_unittest.cc22
1 files changed, 0 insertions, 22 deletions
diff --git a/net/disk_cache/mapped_file_unittest.cc b/net/disk_cache/mapped_file_unittest.cc
index 8b01a7d..5802671 100644
--- a/net/disk_cache/mapped_file_unittest.cc
+++ b/net/disk_cache/mapped_file_unittest.cc
@@ -36,28 +36,6 @@ void FileCallbackTest::OnFileIOComplete(int bytes_copied) {
g_cache_tests_received++;
}
-// Wait up to 2 secs without callbacks, or until we receive expected callbacks.
-void WaitForCallbacks(int expected) {
- if (!expected)
- return;
-
-#if defined(OS_WIN)
- int iterations = 0;
- int last = 0;
- while (iterations < 40) {
- SleepEx(50, TRUE);
- if (expected == g_cache_tests_received)
- return;
- if (last == g_cache_tests_received)
- iterations++;
- else
- iterations = 0;
- }
-#elif defined(OS_POSIX)
- // TODO(rvargas): Do something when async IO is implemented.
-#endif
-}
-
} // namespace
TEST_F(DiskCacheTest, MappedFile_SyncIO) {