diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-09 02:35:24 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-09 02:35:24 +0000 |
commit | 5147c47289ff5694f7bad0ef2dda3cedc524e635 (patch) | |
tree | 49c77eb1a903871f9927572fa30083a01a80b0ea /net/disk_cache/disk_cache_test_util.cc | |
parent | 0ef6505463da88209fae979b265b599f1dec08fb (diff) | |
download | chromium_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_test_util.cc')
-rw-r--r-- | net/disk_cache/disk_cache_test_util.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/disk_cache/disk_cache_test_util.cc b/net/disk_cache/disk_cache_test_util.cc index 99c4500..b05f59d 100644 --- a/net/disk_cache/disk_cache_test_util.cc +++ b/net/disk_cache/disk_cache_test_util.cc @@ -105,17 +105,13 @@ ScopedTestCache::~ScopedTestCache() { // ----------------------------------------------------------------------- -int g_cache_tests_max_id = 0; volatile int g_cache_tests_received = 0; volatile bool g_cache_tests_error = 0; // On the actual callback, increase the number of tests received and check for // errors (an unexpected test received) void CallbackTest::RunWithParams(const Tuple1<int>& params) { - if (id_ > g_cache_tests_max_id) { - NOTREACHED(); - g_cache_tests_error = true; - } else if (reuse_) { + if (reuse_) { DCHECK(1 == reuse_); if (2 == reuse_) g_cache_tests_error = true; |