diff options
Diffstat (limited to 'net/disk_cache/entry_unittest.cc')
-rw-r--r-- | net/disk_cache/entry_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/disk_cache/entry_unittest.cc b/net/disk_cache/entry_unittest.cc index afe93ac..803f98f 100644 --- a/net/disk_cache/entry_unittest.cc +++ b/net/disk_cache/entry_unittest.cc @@ -1617,10 +1617,10 @@ TEST_F(DiskCacheEntryTest, MemoryOnlyEnumerationWithSparseEntries) { parent_entry->Close(); // Perform the enumerations. - scoped_ptr<TestIterator> iter = CreateIterator(); + void* iter = NULL; disk_cache::Entry* entry = NULL; int count = 0; - while (iter->OpenNextEntry(&entry) == net::OK) { + while (OpenNextEntry(&iter, &entry) == net::OK) { ASSERT_TRUE(entry != NULL); ++count; disk_cache::MemEntryImpl* mem_entry = @@ -2217,10 +2217,10 @@ TEST_F(DiskCacheEntryTest, CleanupSparseEntry) { entry->Close(); EXPECT_EQ(4, cache_->GetEntryCount()); - scoped_ptr<TestIterator> iter = CreateIterator(); + void* iter = NULL; int count = 0; std::string child_key[2]; - while (iter->OpenNextEntry(&entry) == net::OK) { + while (OpenNextEntry(&iter, &entry) == net::OK) { ASSERT_TRUE(entry != NULL); // Writing to an entry will alter the LRU list and invalidate the iterator. if (entry->GetKey() != key && count < 2) |