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

Unified Diff: net/disk_cache/simple/simple_index_file_unittest.cc

Issue 1460053003: SimpleCache: Fix race condition in simple_index_file_unittest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove the suppression Created 5 years, 1 month 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 | « build/sanitizers/tsan_suppressions.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_index_file_unittest.cc
diff --git a/net/disk_cache/simple/simple_index_file_unittest.cc b/net/disk_cache/simple/simple_index_file_unittest.cc
index ede04176c3ce28e4fd7c414015ea98effa72b67a..a2603d8b911387d2f90b33791d6972dda8129048 100644
--- a/net/disk_cache/simple/simple_index_file_unittest.cc
+++ b/net/disk_cache/simple/simple_index_file_unittest.cc
@@ -292,8 +292,8 @@ TEST_F(SimpleIndexFileTest, SimpleCacheUpgrade) {
// thread after that.
MessageLoopHelper helper;
CallbackTest cb_shutdown(&helper, false);
- cache_thread.task_runner()->PostTask(
- FROM_HERE,
+ cache_thread.task_runner()->PostTaskAndReply(
+ FROM_HERE, base::Bind(&base::DoNothing),
base::Bind(&CallbackTest::Run, base::Unretained(&cb_shutdown), net::OK));
helper.WaitUntilCacheIoFinished(1);
« no previous file with comments | « build/sanitizers/tsan_suppressions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698