summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/disk_cache_test_base.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-29 18:58:37 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-29 18:58:37 +0000
commit05f8087de3f9aecb476983fe2db85fd19e48650e (patch)
tree7558839b846774c4f9b7248e7ad0ecb31726c898 /net/disk_cache/disk_cache_test_base.h
parentd53e403f3380ffa77b87114fa803a7f533d4abdd (diff)
downloadchromium_src-05f8087de3f9aecb476983fe2db85fd19e48650e.zip
chromium_src-05f8087de3f9aecb476983fe2db85fd19e48650e.tar.gz
chromium_src-05f8087de3f9aecb476983fe2db85fd19e48650e.tar.bz2
Disk cache: Wait until time actually moves forward, to
avoid a possible issue with the high resolution timer going back due to clock skew. BUG=133052 TEST=none Review URL: https://chromiumcodereview.appspot.com/10684007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144944 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/disk_cache_test_base.h')
-rw-r--r--net/disk_cache/disk_cache_test_base.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/disk_cache/disk_cache_test_base.h b/net/disk_cache/disk_cache_test_base.h
index ed3d8bd..1d621d3 100644
--- a/net/disk_cache/disk_cache_test_base.h
+++ b/net/disk_cache/disk_cache_test_base.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -130,6 +130,10 @@ class DiskCacheTestWithCache : public DiskCacheTest {
// true, the whole list is deleted.
void TrimDeletedListForTest(bool empty);
+ // Makes sure that some time passes before continuing the test. Time::Now()
+ // before and after this method will not be the same.
+ void AddDelay();
+
// DiskCacheTest:
virtual void TearDown() OVERRIDE;