Home | History | Annotate | Download | only in http

Lines Matching refs:HttpCache

538 class MockBackendFactory : public net::HttpCache::BackendFactory {
554 explicit MockHttpCache(net::HttpCache::BackendFactory* disk_cache_factory)
558 net::HttpCache* http_cache() { return &http_cache_; }
583 return net::HttpCache::ParseResponseInfo(buffer->data(), size,
623 net::HttpCache http_cache_;
634 class MockBackendNoCbFactory : public net::HttpCache::BackendFactory {
645 class MockBlockingBackendFactory : public net::HttpCache::BackendFactory {
718 void RunTransactionTestWithRequestAndLog(net::HttpCache* cache,
746 void RunTransactionTestWithRequest(net::HttpCache* cache,
754 void RunTransactionTestWithLog(net::HttpCache* cache,
761 void RunTransactionTest(net::HttpCache* cache,
766 void RunTransactionTestWithResponseInfo(net::HttpCache* cache,
773 void RunTransactionTestWithResponse(net::HttpCache* cache,
1041 TEST(HttpCache, CreateThenDestroy) {
1050 TEST(HttpCache, GetBackend) {
1051 MockHttpCache cache(net::HttpCache::DefaultBackend::InMemory(0));
1060 TEST(HttpCache, SimpleGET) {
1071 TEST(HttpCache, SimpleGETNoDiskCache) {
1107 TEST(HttpCache, SimpleGETNoDiskCache2) {
1121 TEST(HttpCache, SimpleGETWithDiskFailures) {
1143 TEST(HttpCache, SimpleGETWithDiskFailures2) {
1180 TEST(HttpCache, SimpleGETWithDiskFailures3) {
1202 TEST(HttpCache, SimpleGET_LoadOnlyFromCache_Hit) {
1270 TEST(HttpCache, SimpleGET_LoadOnlyFromCache_Miss) {
1297 TEST(HttpCache, SimpleGET_LoadPreferringCache_Hit) {
1314 TEST(HttpCache, SimpleGET_LoadPreferringCache_Miss) {
1328 TEST(HttpCache, SimpleGET_LoadBypassCache) {
1372 TEST(HttpCache, SimpleGET_LoadBypassCache_Implicit) {
1389 TEST(HttpCache, SimpleGET_LoadBypassCache_Implicit2) {
1406 TEST(HttpCache, SimpleGET_LoadValidateCache) {
1426 TEST(HttpCache, SimpleGET_LoadValidateCache_Implicit) {
1455 TEST(HttpCache, SimpleGET_PreserveRequestHeaders) {
1475 TEST(HttpCache, ConditionalizedGET_PreserveRequestHeaders) {
1495 TEST(HttpCache, SimpleGET_ManyReaders) {
1560 TEST(HttpCache, SimpleGET_RacingReaders) {
1643 TEST(HttpCache, SimpleGET_DoomWithPending) {
1645 MockHttpCache cache(net::HttpCache::DefaultBackend::InMemory(1024 * 1024));
1690 TEST(HttpCache, FastNoStoreGET_DoneWithPending) {
1739 TEST(HttpCache, SimpleGET_ManyWriters_CancelFirst) {
1798 TEST(HttpCache, SimpleGET_ManyWriters_CancelCreate) {
1853 TEST(HttpCache, SimpleGET_CancelCreate) {
1876 TEST(HttpCache, SimpleGET_ManyWriters_BypassCache) {
1920 TEST(HttpCache, SimpleGET_AbandonedCacheRead) {
1946 // HttpCache::Transaction::OnCacheReadCompleted.
1950 // Tests that we can delete the HttpCache and deal with queued transactions
1952 TEST(HttpCache, SimpleGET_ManyWriters_DeleteCache) {
1988 TEST(HttpCache, SimpleGET_WaitForBackend) {
2034 TEST(HttpCache, SimpleGET_WaitForBackend_CancelCreate) {
2088 TEST(HttpCache, DeleteCacheWaitingForBackend) {
2120 TEST(HttpCache, DeleteCacheWaitingForBackend2) {
2159 TEST(HttpCache, TypicalGET_ConditionalRequest) {
2190 TEST(HttpCache, ETagGET_ConditionalRequest_304) {
2225 TEST(HttpCache, ETagGET_ConditionalRequest_304_NoStore) {
2257 TEST(HttpCache, SimplePOST_SkipsCache) {
2270 // Helper that does 4 requests using HttpCache:
2380 TEST(HttpCache, ConditionalizedRequestUpdatesCache1) {
2406 TEST(HttpCache, ConditionalizedRequestUpdatesCache2) {
2434 TEST(HttpCache, ConditionalizedRequestUpdatesCache3) {
2471 TEST(HttpCache, ConditionalizedRequestUpdatesCache4) {
2515 TEST(HttpCache, ConditionalizedRequestUpdatesCache5) {
2560 TEST(HttpCache, ConditionalizedRequestUpdatesCache6) {
2590 TEST(HttpCache, ConditionalizedRequestUpdatesCache7) {
2617 TEST(HttpCache, ConditionalizedRequestUpdatesCache8) {
2645 TEST(HttpCache, ConditionalizedRequestUpdatesCache9) {
2674 TEST(HttpCache, ConditionalizedRequestUpdatesCache10) {
2703 TEST(HttpCache, ConditionalizedRequestUpdatesCache11) {
2730 TEST(HttpCache, UrlContainingHash) {
2754 TEST(HttpCache, SimplePOST_LoadOnlyFromCache_Miss) {
2784 TEST(HttpCache, SimplePOST_LoadOnlyFromCache_Hit) {
2814 TEST(HttpCache, RangeGET_SkipsCache) {
2846 TEST(HttpCache, RangeGET_SkipsCache2) {
2880 TEST(HttpCache, GET_Crazy206) {
2904 TEST(HttpCache, RangeGET_NoStrongValidators) {
2934 TEST(HttpCache, RangeGET_OK) {
2989 TEST(HttpCache, RangeGET_SyncOK) {
3043 TEST(HttpCache, RangeGET_Revalidate1) {
3084 TEST(HttpCache, RangeGET_Revalidate2) {
3116 TEST(HttpCache, RangeGET_304) {
3146 TEST(HttpCache, RangeGET_ModifiedResult) {
3183 TEST(HttpCache, UnknownRangeGET_1) {
3218 TEST(HttpCache, UnknownRangeGET_2) {
3256 TEST(HttpCache, UnknownRangeGET_304) {
3284 TEST(HttpCache, GET_Previous206) {
3315 TEST(HttpCache, GET_Previous206_NotModified) {
3355 TEST(HttpCache, GET_Previous206_NewContent) {
3396 TEST(HttpCache, GET_Previous206_NotSparse) {
3439 TEST(HttpCache, RangeGET_Previous206_NotSparse_2) {
3481 TEST(HttpCache, GET_Previous206_NotValidation) {
3524 TEST(HttpCache, RangeGET_Previous200) {
3594 TEST(HttpCache, RangeRequestResultsIn200) {
3634 TEST(HttpCache, RangeGET_MoreThanCurrentSize) {
3667 TEST(HttpCache, RangeGET_Cancel) {
3704 TEST(HttpCache, RangeGET_Cancel2) {
3749 TEST(HttpCache, RangeGET_Cancel3) {
3808 TEST(HttpCache, RangeGET_InvalidResponse1) {
3836 TEST(HttpCache, RangeGET_InvalidResponse2) {
3865 TEST(HttpCache, RangeGET_InvalidResponse3) {
3911 TEST(HttpCache, RangeGET_LargeValues) {
3913 MockHttpCache cache(net::HttpCache::DefaultBackend::InMemory(1024 * 1024));
3944 TEST(HttpCache, RangeGET_NoDiskCache) {
3959 TEST(HttpCache, RangeHEAD) {
3981 TEST(HttpCache, RangeGET_FastFlakyServer) {
4008 TEST(HttpCache, RangeGET_FastFlakyServer2) {
4048 TEST(HttpCache, RangeGET_OK_LoadOnlyFromCache) {
4086 TEST(HttpCache, WriteResponseInfo_Truncated) {
4112 TEST(HttpCache, PersistHttpResponseInfo) {
4138 TEST(HttpCache, DoomOnDestruction) {
4168 TEST(HttpCache, DoomOnDestruction2) {
4204 TEST(HttpCache, DoomOnDestruction3) {
4248 TEST(HttpCache, Set_Truncated_Flag) {
4308 TEST(HttpCache, GET_IncompleteResource) {
4354 TEST(HttpCache, GET_IncompleteResource2) {
4391 TEST(HttpCache, GET_IncompleteResource3) {
4427 TEST(HttpCache, GET_IncompleteResource4) {
4466 TEST(HttpCache, GET_CancelIncompleteResource) {
4516 TEST(HttpCache, RangeGET_IncompleteResource) {
4541 TEST(HttpCache, SyncRead) {
4579 TEST(HttpCache, ValidationResultsIn200) {
4597 TEST(HttpCache, CachedRedirect) {
4664 TEST(HttpCache, CacheControlNoStore) {
4688 TEST(HttpCache, CacheControlNoStore2) {
4716 TEST(HttpCache, CacheControlNoStore3) {
4746 TEST(HttpCache, SimpleGET_SSLError) {
4774 TEST(HttpCache, OutlivedTransactions) {
4786 TEST(HttpCache, CacheDisabledMode) {
4793 cache.http_cache()->set_mode(net::HttpCache::DISABLE);
4810 TEST(HttpCache, UpdatesRequestResponseTimeOn304) {
4880 TEST(HttpCache, WriteMetadata_OK) {
4917 TEST(HttpCache, WriteMetadata_Fail) {
4949 TEST(HttpCache, ReadMetadata) {