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

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

Issue 2055053003: [BlobAsync] Disk support for blob storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added back transport controller test, small cleanups Created 4 years, 6 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
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 c527a047800cebbec3d10ab793fa53df09d7893f..528fc31429d3b513a209b924c5250f4872c6087e 100644
--- a/content/child/blob_storage/blob_transport_controller_unittest.cc
+++ b/content/child/blob_storage/blob_transport_controller_unittest.cc
@@ -129,21 +129,15 @@ class BlobTransportControllerTest : public testing::Test {
const std::string& expected_content_type,
std::vector<DataElement>* descriptions) {
const IPC::Message* register_message =
- sink_.GetUniqueMessageMatching(BlobStorageMsg_RegisterBlobUUID::ID);
- const IPC::Message* start_message =
- sink_.GetUniqueMessageMatching(BlobStorageMsg_StartBuildingBlob::ID);
+ sink_.GetUniqueMessageMatching(BlobStorageMsg_RegisterBlob::ID);
ASSERT_TRUE(register_message);
- ASSERT_TRUE(start_message);
- std::tuple<std::string, std::string, std::string, std::set<std::string>>
+ std::tuple<std::string, std::string, std::string, std::vector<DataElement>>
register_contents;
- std::tuple<std::string, std::vector<DataElement>> start_contents;
- BlobStorageMsg_RegisterBlobUUID::Read(register_message, &register_contents);
- BlobStorageMsg_StartBuildingBlob::Read(start_message, &start_contents);
+ BlobStorageMsg_RegisterBlob::Read(register_message, &register_contents);
EXPECT_EQ(expected_uuid, std::get<0>(register_contents));
- EXPECT_EQ(expected_uuid, std::get<0>(start_contents));
EXPECT_EQ(expected_content_type, std::get<1>(register_contents));
if (descriptions)
- *descriptions = std::get<1>(start_contents);
+ *descriptions = std::get<3>(register_contents);
// We don't have dispositions from the renderer.
EXPECT_TRUE(std::get<2>(register_contents).empty());
sink_.ClearMessages();

Powered by Google App Engine
This is Rietveld 408576698