Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Unified Diff: net/disk_cache/backend_unittest.cc

Issue 8343048: Disk Cache: Supress tsan warnings for BackendTrimInvalidEntry2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/backend_unittest.cc
===================================================================
--- net/disk_cache/backend_unittest.cc (revision 107659)
+++ net/disk_cache/backend_unittest.cc (working copy)
@@ -784,6 +784,7 @@
// We'll be leaking memory from this test.
void DiskCacheBackendTest::BackendTrimInvalidEntry2() {
+ ANNOTATE_IGNORE_READS_AND_WRITES_BEGIN();
rvargas (doing something else) 2011/10/28 03:03:06 I'm assuming that it is fine if the test asserts a
kcc2 2011/10/28 03:15:32 If the test asserts and then exits -- fine. But i
Timur Iskhodzhanov 2011/10/28 12:14:02 Assert indeed interrupts the test. On 2011/10/28
// Use the implementation directly... we need to simulate a crash.
SetDirectMode();
SetMask(0xf); // 16-entry table.
@@ -829,6 +830,7 @@
MessageLoop::current()->RunAllPending();
FlushQueueForTest();
EXPECT_GE(30, cache_->GetEntryCount());
Timur Iskhodzhanov 2011/10/28 12:14:02 ANNOTATE_IGNORE_READS_AND_WRITES_BEGIN(); int cach
+ ANNOTATE_IGNORE_READS_AND_WRITES_END();
}
// We'll be leaking memory from this test.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698