Lines Matching defs:http_cache
5 #include "net/http/http_cache.h"
558 net::HttpCache* http_cache() { return &http_cache_; }
1045 int rv = cache.http_cache()->CreateTransaction(&trans);
1056 int rv = cache.http_cache()->GetBackend(&backend, &cb);
1064 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
1080 RunTransactionTestWithLog(cache.http_cache(), kSimpleGET_Transaction,
1115 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
1118 EXPECT_FALSE(cache.http_cache()->GetCurrentBackend());
1127 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
1134 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
1149 int rv = cache.http_cache()->CreateTransaction(&c->trans);
1172 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
1184 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
1194 int rv = cache.http_cache()->CreateTransaction(&c->trans);
1211 RunTransactionTestWithLog(cache.http_cache(), kSimpleGET_Transaction,
1242 RunTransactionTestWithLog(cache.http_cache(), transaction, log.bound());
1281 int rv = cache.http_cache()->CreateTransaction(&trans);
1301 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
1307 RunTransactionTest(cache.http_cache(), transaction);
1321 RunTransactionTest(cache.http_cache(), transaction);
1332 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
1343 RunTransactionTestWithLog(cache.http_cache(), transaction, log.bound());
1376 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
1382 RunTransactionTest(cache.http_cache(), transaction);
1393 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
1399 RunTransactionTest(cache.http_cache(), transaction);
1410 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
1413 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
1419 RunTransactionTest(cache.http_cache(), transaction);
1430 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
1433 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
1439 RunTransactionTest(cache.http_cache(), transaction);
1465 RunTransactionTest(cache.http_cache(), transaction);
1466 RunTransactionTest(cache.http_cache(), transaction);
1479 RunTransactionTest(cache.http_cache(), kETagGET_Transaction);
1487 RunTransactionTest(cache.http_cache(), transaction);
1507 c->result = cache.http_cache()->CreateTransaction(&c->trans);
1574 c->result = cache.http_cache()->CreateTransaction(&c->trans);
1658 c->result = cache.http_cache()->CreateTransaction(&c->trans);
1705 c->result = cache.http_cache()->CreateTransaction(&c->trans);
1751 c->result = cache.http_cache()->CreateTransaction(&c->trans);
1810 c->result = cache.http_cache()->CreateTransaction(&c->trans);
1860 c->result = cache.http_cache()->CreateTransaction(&c->trans);
1889 c->result = cache.http_cache()->CreateTransaction(&c->trans);
1924 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
1930 int rv = cache.http_cache()->CreateTransaction(&trans);
1965 c->result = cache->http_cache()->CreateTransaction(&c->trans);
2003 c->result = cache.http_cache()->CreateTransaction(&c->trans);
2049 c->result = cache.http_cache()->CreateTransaction(&c->trans);
2095 c->result = cache->http_cache()->CreateTransaction(&c->trans);
2126 int rv = cache->http_cache()->GetBackend(&backend, &cb);
2133 c->result = cache->http_cache()->CreateTransaction(&c->trans);
2140 rv = cache->http_cache()->GetBackend(&backend, &cb2);
2163 RunTransactionTest(cache.http_cache(), kTypicalGET_Transaction);
2171 RunTransactionTest(cache.http_cache(), kTypicalGET_Transaction);
2196 RunTransactionTest(cache.http_cache(), transaction);
2206 RunTransactionTest(cache.http_cache(), transaction);
2231 RunTransactionTest(cache.http_cache(), transaction);
2241 RunTransactionTest(cache.http_cache(), transaction);
2250 RunTransactionTest(cache.http_cache(), transaction2);
2263 RunTransactionTest(cache.http_cache(), kSimplePOST_Transaction);
2314 cache.http_cache(), request, &response_headers);
2330 cache.http_cache(), request, &response_headers);
2349 cache.http_cache(), request, &response_headers);
2368 cache.http_cache(), request, &response_headers);
2502 cache.http_cache(), request, &response_headers);
2546 cache.http_cache(), request, &response_headers);
2735 RunTransactionTest(cache.http_cache(), trans);
2747 RunTransactionTest(cache.http_cache(), trans);
2768 int rv = cache.http_cache()->CreateTransaction(&trans);
2799 RunTransactionTestWithRequest(cache.http_cache(), transaction, request, NULL);
2807 RunTransactionTestWithRequest(cache.http_cache(), transaction, request, NULL);
2821 RunTransactionTest(cache.http_cache(), kRangeGET_Transaction);
2829 RunTransactionTest(cache.http_cache(), transaction);
2837 RunTransactionTest(cache.http_cache(), transaction);
2853 RunTransactionTest(cache.http_cache(), transaction);
2863 RunTransactionTest(cache.http_cache(), transaction);
2872 RunTransactionTest(cache.http_cache(), transaction);
2888 RunTransactionTest(cache.http_cache(), transaction);
2895 RunTransactionTest(cache.http_cache(), transaction);
2913 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
2921 RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK,
2940 http_cache(), kRangeGET_TransactionOK,
2949 RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK,
2964 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
2977 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
2998 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3006 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3019 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3032 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3056 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3064 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3073 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3097 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3105 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3122 RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK,
3135 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3152 RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK,
3165 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3173 RunTransactionTest(cache.http_cache(), kRangeGET_TransactionOK);
3192 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3205 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3231 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3244 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3269 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3277 RunTransactionTest(cache.http_cache(), transaction);
3290 RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK,
3303 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3325 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3331 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3343 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3364 http_cache(), transaction, &headers);
3381 RunTransactionTestWithResponse(cache.http_cache(), transaction2, &headers);
3389 RunTransactionTest(cache.http_cache(), transaction);
3424 RunTransactionTestWithResponse(cache.http_cache(), kSimpleGET_Transaction,
3468 RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK,
3510 RunTransactionTestWithResponse(cache.http_cache(), kSimpleGET_Transaction,
3533 RunTransactionTest(cache.http_cache(), transaction);
3546 RunTransactionTestWithResponse(cache.http_cache(), transaction2, &headers);
3562 RunTransactionTestWithResponse(cache.http_cache(), transaction3, &headers);
3572 RunTransactionTest(cache.http_cache(), transaction2);
3581 RunTransactionTestWithResponse(cache.http_cache(), transaction2, &headers);
3587 RunTransactionTest(cache.http_cache(), transaction2);
3603 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3619 RunTransactionTestWithResponse(cache.http_cache(), transaction2, &headers);
3640 RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK,
3652 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3659 RunTransactionTest(cache.http_cache(), kRangeGET_TransactionOK);
3674 int rv = cache.http_cache()->CreateTransaction(&c->trans);
3708 RunTransactionTest(cache.http_cache(), kRangeGET_TransactionOK);
3713 int rv = cache.http_cache()->CreateTransaction(&c->trans);
3739 RunTransactionTest(cache.http_cache(), kRangeGET_TransactionOK);
3753 RunTransactionTest(cache.http_cache(), kRangeGET_TransactionOK);
3758 int rv = cache.http_cache()->CreateTransaction(&c->trans);
3785 rv = cache.http_cache()->CreateTransaction(&c->trans);
3817 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3845 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3876 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3888 RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK,
3925 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3952 RunTransactionTest(cache.http_cache(), kRangeGET_TransactionOK);
3969 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
3991 RunTransactionTest(cache.http_cache(), kRangeGET_TransactionOK);
3997 RunTransactionTest(cache.http_cache(), transaction);
4023 RunTransactionTest(cache.http_cache(), transaction);
4037 RunTransactionTest(cache.http_cache(), transaction);
4053 RunTransactionTest(cache.http_cache(), kRangeGET_TransactionOK);
4066 int rv = cache.http_cache()->CreateTransaction(&trans);
4144 int rv = cache.http_cache()->CreateTransaction(&c->trans);
4159 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
4174 int rv = cache.http_cache()->CreateTransaction(&c->trans);
4195 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
4217 int rv = cache.http_cache()->CreateTransaction(&c->trans);
4238 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
4260 int rv = cache.http_cache()->CreateTransaction(&c->trans);
4325 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
4372 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
4412 EXPECT_EQ(net::OK, cache.http_cache()->CreateTransaction(&c->trans));
4445 RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers);
4483 EXPECT_EQ(net::OK, cache.http_cache()->CreateTransaction(&c->trans));
4530 RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK,
4556 TestTransactionConsumer c1(cache.http_cache()),
4557 c2(cache.http_cache()),
4558 c3(cache.http_cache());
4586 RunTransactionTest(cache.http_cache(), kETagGET_Transaction);
4591 RunTransactionTest(cache.http_cache(), transaction);
4594 RunTransactionTest(cache.http_cache(), kETagGET_Transaction);
4610 int rv = cache.http_cache()->CreateTransaction(&trans);
4638 int rv = cache.http_cache()->CreateTransaction(&trans);
4671 RunTransactionTest(cache.http_cache(), transaction);
4678 RunTransactionTest(cache.http_cache(), transaction);
4697 RunTransactionTest(cache.http_cache(), transaction);
4706 RunTransactionTest(cache.http_cache(), transaction);
4725 RunTransactionTest(cache.http_cache(), transaction);
4735 RunTransactionTest(cache.http_cache(), transaction);
4754 RunTransactionTest(cache.http_cache(), transaction);
4763 int rv = cache.http_cache()->CreateTransaction(&trans);
4778 int rv = cache->http_cache()->CreateTransaction(&trans);
4790 RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction);
4793 cache.http_cache()->set_mode(net::HttpCache::DISABLE);
4798 RunTransactionTest(cache.http_cache(), transaction);
4838 RunTransactionTest(cache.http_cache(), request);
4860 RunTransactionTestWithResponseInfo(cache.http_cache(), request, &response);
4885 RunTransactionTestWithResponseInfo(cache.http_cache(), kSimpleGET_Transaction,
4890 cache.http_cache()->WriteMetadata(GURL("foo"), Time::Now(), NULL, 0);
4896 cache.http_cache()->WriteMetadata(GURL(kSimpleGET_Transaction.url),
4905 RunTransactionTestWithResponseInfo(cache.http_cache(), kSimpleGET_Transaction,
4922 RunTransactionTestWithResponseInfo(cache.http_cache(), kSimpleGET_Transaction,
4932 cache.http_cache()->WriteMetadata(GURL(kSimpleGET_Transaction.url),
4938 RunTransactionTestWithResponseInfo(cache.http_cache(), kSimpleGET_Transaction,
4954 RunTransactionTestWithResponseInfo(cache.http_cache(),
4962 cache.http_cache()->WriteMetadata(GURL(kTypicalGET_Transaction.url),
4972 RunTransactionTestWithResponseInfo(cache.http_cache(), trans1, &response);
4988 RunTransactionTestWithResponseInfo(cache.http_cache(), trans1, &response);
5000 RunTransactionTestWithResponseInfo(cache.http_cache(), trans2, &response);