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

Unified Diff: content/child/blob_storage/blob_transport_controller_unittest.cc

Issue 1997623002: Revert of [BlobAsync] Fixed race between IPC messages and IO task queue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « content/child/blob_storage/blob_transport_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/blob_storage/blob_transport_controller_unittest.cc
diff --git a/content/child/blob_storage/blob_transport_controller_unittest.cc b/content/child/blob_storage/blob_transport_controller_unittest.cc
index 063d4db31b46d3f87606b3083a517db0e84fa513..08120fcaca7c23a4809d5c3410fbaed9240baf77 100644
--- a/content/child/blob_storage/blob_transport_controller_unittest.cc
+++ b/content/child/blob_storage/blob_transport_controller_unittest.cc
@@ -280,16 +280,16 @@
// Check that we have the 'increase ref' pending task.
EXPECT_TRUE(main_thread_runner_->HasPendingTask());
// Check that we have the 'store' pending task.
- EXPECT_FALSE(holder->IsTransporting(kBlobUUID));
EXPECT_TRUE(io_thread_runner_->HasPendingTask());
- io_thread_runner_->RunPendingTasks();
- EXPECT_TRUE(holder->IsTransporting(kBlobUUID));
// Check that we've sent the data.
ExpectRegisterAndStartMessage(kBlobUUID, kBlobContentType,
&message_descriptions);
main_thread_runner_->ClearPendingTasks();
// Check that we got the correct start message.
+ EXPECT_FALSE(holder->IsTransporting(kBlobUUID));
+ io_thread_runner_->RunPendingTasks();
+ EXPECT_TRUE(holder->IsTransporting(kBlobUUID));
base::Tuple<std::string, std::vector<DataElement>> message_contents;
EXPECT_EQ(MakeBlobElement(KRefBlobUUID, 10, 10), message_descriptions[0]);
« no previous file with comments | « content/child/blob_storage/blob_transport_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698