| Index: net/http/http_cache_unittest.cc
|
| diff --git a/net/http/http_cache_unittest.cc b/net/http/http_cache_unittest.cc
|
| index 62269b7952c8b89bc3d66dc773b42c22f62311fb..53cca65ca05c75d0b34c45faa89421678075791f 100644
|
| --- a/net/http/http_cache_unittest.cc
|
| +++ b/net/http/http_cache_unittest.cc
|
| @@ -1328,8 +1328,8 @@ TEST(HttpCache, SimpleGET_PreserveRequestHeaders) {
|
| RunTransactionTest(cache.http_cache(), transaction);
|
|
|
| EXPECT_EQ(2, cache.network_layer()->transaction_count());
|
| - EXPECT_EQ(1, cache.disk_cache()->open_count());
|
| - EXPECT_EQ(1, cache.disk_cache()->create_count());
|
| + EXPECT_EQ(0, cache.disk_cache()->open_count());
|
| + EXPECT_EQ(2, cache.disk_cache()->create_count());
|
| RemoveMockTransaction(&transaction);
|
| }
|
|
|
| @@ -4950,8 +4950,8 @@ TEST(HttpCache, GET_NoConditionalization) {
|
| // The last response was saved.
|
| RunTransactionTest(cache.http_cache(), transaction);
|
| EXPECT_EQ(3, cache.network_layer()->transaction_count());
|
| - EXPECT_EQ(2, cache.disk_cache()->open_count());
|
| - EXPECT_EQ(2, cache.disk_cache()->create_count());
|
| + EXPECT_EQ(1, cache.disk_cache()->open_count());
|
| + EXPECT_EQ(3, cache.disk_cache()->create_count());
|
| }
|
|
|
| // Verifies that conditionalization failures when asking for a range that would
|
| @@ -7384,8 +7384,8 @@ TEST(HttpCache, CacheControlNoCacheNormalLoad) {
|
| RunTransactionTest(cache.http_cache(), transaction);
|
|
|
| EXPECT_EQ(2, cache.network_layer()->transaction_count());
|
| - EXPECT_EQ(1, cache.disk_cache()->open_count());
|
| - EXPECT_EQ(1, cache.disk_cache()->create_count());
|
| + EXPECT_EQ(0, cache.disk_cache()->open_count());
|
| + EXPECT_EQ(2, cache.disk_cache()->create_count());
|
|
|
| disk_cache::Entry* entry;
|
| EXPECT_TRUE(cache.OpenBackendEntry(transaction.url, &entry));
|
|
|