| Index: net/http/http_cache_unittest.cc
|
| diff --git a/net/http/http_cache_unittest.cc b/net/http/http_cache_unittest.cc
|
| index a0225e87d0a809a36f87031e66eb73f55c65eb71..519936829b735347b954a8506a88a24891391e0a 100644
|
| --- a/net/http/http_cache_unittest.cc
|
| +++ b/net/http/http_cache_unittest.cc
|
| @@ -2741,6 +2741,18 @@ TEST(HttpCache, SimplePOST_SkipsCache) {
|
| EXPECT_EQ(0, cache.disk_cache()->create_count());
|
| }
|
|
|
| +// Tests POST handling with a disabled cache (no DCHECK).
|
| +TEST(HttpCache, SimplePOST_DisabledCache) {
|
| + MockHttpCache cache;
|
| + cache.http_cache()->set_mode(net::HttpCache::Mode::DISABLE);
|
| +
|
| + RunTransactionTest(cache.http_cache(), kSimplePOST_Transaction);
|
| +
|
| + EXPECT_EQ(1, cache.network_layer()->transaction_count());
|
| + EXPECT_EQ(0, cache.disk_cache()->open_count());
|
| + EXPECT_EQ(0, cache.disk_cache()->create_count());
|
| +}
|
| +
|
| TEST(HttpCache, SimplePOST_LoadOnlyFromCache_Miss) {
|
| MockHttpCache cache;
|
|
|
|
|