summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/disk_cache_perftest.cc
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-09 02:35:24 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-09 02:35:24 +0000
commit5147c47289ff5694f7bad0ef2dda3cedc524e635 (patch)
tree49c77eb1a903871f9927572fa30083a01a80b0ea /net/disk_cache/disk_cache_perftest.cc
parent0ef6505463da88209fae979b265b599f1dec08fb (diff)
downloadchromium_src-5147c47289ff5694f7bad0ef2dda3cedc524e635.zip
chromium_src-5147c47289ff5694f7bad0ef2dda3cedc524e635.tar.gz
chromium_src-5147c47289ff5694f7bad0ef2dda3cedc524e635.tar.bz2
Disk Cache: Simplify CallbackTest.
Remove the callback id... it's not useful anymore. BUG=none TEST=current unit tests. Review URL: http://codereview.chromium.org/118407 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17924 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/disk_cache_perftest.cc')
-rw-r--r--net/disk_cache/disk_cache_perftest.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/disk_cache/disk_cache_perftest.cc b/net/disk_cache/disk_cache_perftest.cc
index b9997c4..34b69d7 100644
--- a/net/disk_cache/disk_cache_perftest.cc
+++ b/net/disk_cache/disk_cache_perftest.cc
@@ -22,7 +22,6 @@
using base::Time;
-extern int g_cache_tests_max_id;
extern volatile int g_cache_tests_received;
extern volatile bool g_cache_tests_error;
@@ -49,9 +48,8 @@ int TimeWrite(int num_entries, disk_cache::Backend* cache,
CacheTestFillBuffer(buffer1->data(), kSize1, false);
CacheTestFillBuffer(buffer2->data(), kMaxSize, false);
- CallbackTest callback(1);
+ CallbackTest callback(true);
g_cache_tests_error = false;
- g_cache_tests_max_id = 1;
g_cache_tests_received = 0;
int expected = 0;
@@ -99,9 +97,8 @@ int TimeRead(int num_entries, disk_cache::Backend* cache,
CacheTestFillBuffer(buffer1->data(), kSize1, false);
CacheTestFillBuffer(buffer2->data(), kMaxSize, false);
- CallbackTest callback(1);
+ CallbackTest callback(true);
g_cache_tests_error = false;
- g_cache_tests_max_id = 1;
g_cache_tests_received = 0;
int expected = 0;