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

Unified Diff: content/browser/blob_storage/blob_storage_registry_unittest.cc

Issue 2055053003: [BlobAsync] Disk support for blob storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finished comments, added new pending enum state Created 4 years, 5 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/browser/blob_storage/blob_storage_registry_unittest.cc
diff --git a/content/browser/blob_storage/blob_storage_registry_unittest.cc b/content/browser/blob_storage/blob_storage_registry_unittest.cc
index 918554202b07f2430b1d3930093b6f5a6dc73802..9b8915710dddda16764fb13479afd7876d3236a1 100644
--- a/content/browser/blob_storage/blob_storage_registry_unittest.cc
+++ b/content/browser/blob_storage/blob_storage_registry_unittest.cc
@@ -11,7 +11,6 @@
namespace storage {
namespace {
using Entry = BlobStorageRegistry::Entry;
-using BlobState = BlobStorageRegistry::BlobState;
TEST(BlobStorageRegistry, UUIDRegistration) {
const std::string kBlob1 = "Blob1";
@@ -24,11 +23,10 @@ TEST(BlobStorageRegistry, UUIDRegistration) {
Entry* entry = registry.CreateEntry(kBlob1, kType, kDisposition);
ASSERT_NE(nullptr, entry);
- EXPECT_EQ(BlobState::PENDING, entry->state);
+ EXPECT_EQ(BlobStatus::PENDING_MEMORY_QUOTA, entry->status);
EXPECT_EQ(kType, entry->content_type);
EXPECT_EQ(kDisposition, entry->content_disposition);
- EXPECT_EQ(1u, entry->refcount);
- EXPECT_FALSE(entry->data.get() || entry->data_builder.get());
+ EXPECT_EQ(0u, entry->refcount);
EXPECT_EQ(0u, entry->build_completion_callbacks.size());
EXPECT_EQ(entry, registry.GetEntry(kBlob1));

Powered by Google App Engine
This is Rietveld 408576698