summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/disk_cache_perftest.cc
diff options
context:
space:
mode:
authordarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-27 04:58:51 +0000
committerdarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-27 04:58:51 +0000
commitb1d1c87e0639f237d9d19a4f3bc599a00121b89f (patch)
tree31412abf6ee463d1bd6ba743530479343a759659 /net/disk_cache/disk_cache_perftest.cc
parent6ebe3fc0530639459b70413724db71f734c99422 (diff)
downloadchromium_src-b1d1c87e0639f237d9d19a4f3bc599a00121b89f.zip
chromium_src-b1d1c87e0639f237d9d19a4f3bc599a00121b89f.tar.gz
chromium_src-b1d1c87e0639f237d9d19a4f3bc599a00121b89f.tar.bz2
Fix the net_perftests to work again.
Since only one test needed a MessageLoop, I decided to only give that single test a MessageLoop. I used a MessageLoopForIO (subclass of MessageLoop) for future use when the disk cache leverages MessageLoopForIO for asynchronous IO. TBR=rvargas git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1428 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/disk_cache_perftest.cc')
-rw-r--r--net/disk_cache/disk_cache_perftest.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/disk_cache/disk_cache_perftest.cc b/net/disk_cache/disk_cache_perftest.cc
index 483a824..e902ff0 100644
--- a/net/disk_cache/disk_cache_perftest.cc
+++ b/net/disk_cache/disk_cache_perftest.cc
@@ -176,6 +176,8 @@ TEST(DiskCacheTest, Hash) {
}
TEST(DiskCacheTest, CacheBackendPerformance) {
+ MessageLoopForIO message_loop;
+
std::wstring path = GetCachePath();
ASSERT_TRUE(DeleteCache(path.c_str()));
disk_cache::Backend* cache = disk_cache::CreateCacheBackend(path, false, 0);