diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-04 00:34:04 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-04 00:34:04 +0000 |
commit | 34f40946dab92acf2c0b25c067e14bc438c1e676 (patch) | |
tree | 236343b5e718f6f88a88946c1b8a2c4697b790f8 /net/disk_cache | |
parent | 74e3af7013e7fb3ae9a9cbd98a7fcaf8469b1b0d (diff) | |
download | chromium_src-34f40946dab92acf2c0b25c067e14bc438c1e676.zip chromium_src-34f40946dab92acf2c0b25c067e14bc438c1e676.tar.gz chromium_src-34f40946dab92acf2c0b25c067e14bc438c1e676.tar.bz2 |
clang/mac: Fix almost all problems when building all.xcodeproj.
BUG=None
TEST=None
TBR=hans
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61344 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache')
-rw-r--r-- | net/disk_cache/mapped_file_unittest.cc | 22 |
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) { |