Lines Matching refs:trans
708 void ReadAndVerifyTransaction(net::HttpTransaction* trans,
711 int rv = ReadTransaction(trans, &content);
727 scoped_ptr<net::HttpTransaction> trans;
728 int rv = cache->CreateTransaction(&trans);
730 ASSERT_TRUE(trans.get());
732 rv = trans->Start(&request, &callback, net_log);
737 const net::HttpResponseInfo* response = trans->GetResponseInfo();
743 ReadAndVerifyTransaction(trans.get(), trans_info);
1011 // Set this response into |trans|.
1012 void AssignTo(MockTransaction* trans) const {
1013 trans->status = status;
1014 trans->response_headers = headers;
1015 trans->data = body;
1032 scoped_ptr<net::HttpTransaction> trans;
1044 trans;
1045 int rv = cache.http_cache()->CreateTransaction(&trans);
1047 ASSERT_TRUE(trans.get());
1149 int rv = cache.http_cache()->CreateTransaction(&c->trans);
1152 rv = c->trans->Start(&request, &c->callback, net::BoundNetLog());
1164 ReadAndVerifyTransaction(c->trans.get(), kSimpleGET_Transaction);
1194 int rv = cache.http_cache()->CreateTransaction(&c->trans);
1198 rv = c->trans->Start(&request, &c->callback, net::BoundNetLog());
1280 scoped_ptr<net::HttpTransaction> trans;
1281 int rv = cache.http_cache()->CreateTransaction(&trans);
1283 ASSERT_TRUE(trans.get());
1285 rv = trans->Start(&request, &callback, net::BoundNetLog());
1290 trans.reset();
1507 c->result = cache.http_cache()->CreateTransaction(&c->trans);
1509 EXPECT_EQ(net::LOAD_STATE_IDLE, c->trans->GetLoadState());
1511 c->result = c->trans->Start(&request, &c->callback, net::BoundNetLog());
1517 EXPECT_EQ(net::LOAD_STATE_WAITING_FOR_CACHE, c->trans->GetLoadState());
1534 EXPECT_EQ(net::LOAD_STATE_IDLE, c->trans->GetLoadState());
1541 ReadAndVerifyTransaction(c->trans.get(), kSimpleGET_Transaction);
1574 c->result = cache.http_cache()->CreateTransaction(&c->trans);
1581 c->result = c->trans->Start(this_request, &c->callback, net::BoundNetLog());
1597 ReadAndVerifyTransaction(c->trans.get(), kSimpleGET_Transaction);
1602 context_list[2]->trans->GetLoadState());
1604 context_list[3]->trans->GetLoadState());
1610 ReadAndVerifyTransaction(c->trans.get(), kSimpleGET_Transaction);
1618 c->trans.reset();
1625 ReadAndVerifyTransaction(c->trans.get(), kSimpleGET_Transaction);
1658 c->result = cache.http_cache()->CreateTransaction(&c->trans);
1665 c->result = c->trans->Start(this_request, &c->callback, net::BoundNetLog());
1683 ReadAndVerifyTransaction(c->trans.get(), kSimpleGET_Transaction);
1705 c->result = cache.http_cache()->CreateTransaction(&c->trans);
1708 c->result = c->trans->Start(&request, &c->callback, net::BoundNetLog());
1728 ReadAndVerifyTransaction(c->trans.get(), kFastNoStoreGET_Transaction);
1751 c->result = cache.http_cache()->CreateTransaction(&c->trans);
1754 c->result = c->trans->Start(&request, &c->callback, net::BoundNetLog());
1781 ReadAndVerifyTransaction(c->trans.get(), kSimpleGET_Transaction);
1810 c->result = cache.http_cache()->CreateTransaction(&c->trans);
1813 c->result = c->trans->Start(&request, &c->callback, net::BoundNetLog());
1837 ReadAndVerifyTransaction(c->trans.get(), kSimpleGET_Transaction);
1860 c->result = cache.http_cache()->CreateTransaction(&c->trans);
1863 c->result = c->trans->Start(&request, &c->callback, net::BoundNetLog());
1889 c->result = cache.http_cache()->CreateTransaction(&c->trans);
1892 c->result = c->trans->Start(&request, &c->callback, net::BoundNetLog());
1906 ReadAndVerifyTransaction(c->trans.get(), kSimpleGET_Transaction);
1929 scoped_ptr<net::HttpTransaction> trans;
1930 int rv = cache.http_cache()->CreateTransaction(&trans);
1932 rv = trans->Start(&request, &callback, net::BoundNetLog());
1938 rv = trans->Read(buf, 256, &callback);
1943 trans.reset();
1965 c->result = cache->http_cache()->CreateTransaction(&c->trans);
1968 c->result = c->trans->Start(&request, &c->callback, net::BoundNetLog());
2003 c->result = cache.http_cache()->CreateTransaction(&c->trans);
2007 context_list[0]->result = context_list[0]->trans->Start(
2009 context_list[1]->result = context_list[1]->trans->Start(
2011 context_list[2]->result = context_list[2]->trans->Start(
2049 c->result = cache.http_cache()->CreateTransaction(&c->trans);
2053 context_list[0]->result = context_list[0]->trans->Start(
2055 context_list[1]->result = context_list[1]->trans->Start(
2057 context_list[2]->result = context_list[2]->trans->Start(
2079 ReadAndVerifyTransaction(context_list[2]->trans.get(), kETagGET_Transaction);
2095 c->result = cache->http_cache()->CreateTransaction(&c->trans);
2098 c->trans->Start(&request, &c->callback, net::BoundNetLog());
2133 c->result = cache->http_cache()->CreateTransaction(&c->trans);
2136 c->trans->Start(&request, &c->callback, net::BoundNetLog());
2734 MockTransaction trans(kTypicalGET_Transaction);
2735 RunTransactionTest(cache.http_cache(), trans);
2743 std::string url_with_hash = std::string(trans.url) + "#multiple#hashes";
2744 trans.url = url_with_hash.c_str();
2745 trans.load_flags = net::LOAD_ONLY_FROM_CACHE;
2747 RunTransactionTest(cache.http_cache(), trans);
2767 scoped_ptr<net::HttpTransaction> trans;
2768 int rv = cache.http_cache()->CreateTransaction(&trans);
2770 ASSERT_TRUE(trans.get());
2772 rv = trans->Start(&request, &callback, net::BoundNetLog());
2777 trans.reset();
3674 int rv = cache.http_cache()->CreateTransaction(&c->trans);
3677 rv = c->trans->Start(&request, &c->callback, net::BoundNetLog());
3687 rv = c->trans->Read(buf, buf->size(), &c->callback);
3713 int rv = cache.http_cache()->CreateTransaction(&c->trans);
3716 rv = c->trans->Start(&request, &c->callback, net::BoundNetLog());
3727 rv = c->trans->Read(buf, buf->size(), &c->callback);
3729 rv = c->trans->Read(buf, buf->size(), &c->callback);
3758 int rv = cache.http_cache()->CreateTransaction(&c->trans);
3761 rv = c->trans->Start(&request, &c->callback, net::BoundNetLog());
3772 rv = c->trans->Read(buf, buf->size(), &c->callback);
3774 rv = c->trans->Read(buf, buf->size(), &c->callback);
3785 rv = cache.http_cache()->CreateTransaction(&c->trans);
3788 rv = c->trans->Start(&request, &c->callback, net::BoundNetLog());
4065 scoped_ptr<net::HttpTransaction> trans;
4066 int rv = cache.http_cache()->CreateTransaction(&trans);
4068 ASSERT_TRUE(trans.get());
4070 rv = trans->Start(&request, &callback, net::BoundNetLog());
4075 trans.reset();
4144 int rv = cache.http_cache()->CreateTransaction(&c->trans);
4147 rv = c->trans->Start(&request, &c->callback, net::BoundNetLog());
4174 int rv = cache.http_cache()->CreateTransaction(&c->trans);
4177 rv = c->trans->Start(&request, &c->callback, net::BoundNetLog());
4187 rv = c->trans->Read(buf, buf->size(), &c->callback);
4217 int rv = cache.http_cache()->CreateTransaction(&c->trans);
4220 rv = c->trans->Start(&request, &c->callback, net::BoundNetLog());
4230 rv = c->trans->Read(buf, buf->size(), &c->callback);
4260 int rv = cache.http_cache()->CreateTransaction(&c->trans);
4263 rv = c->trans->Start(&request, &c->callback, net::BoundNetLog());
4273 rv = c->trans->Read(buf, buf->size(), &c->callback);
4279 rv = c->trans->Read(buf, buf->size(), &c->callback);
4286 c->trans.reset();
4412 EXPECT_EQ(net::OK, cache.http_cache()->CreateTransaction(&c->trans));
4415 int rv = c->trans->Start(&request, &c->callback, net::BoundNetLog());
4483 EXPECT_EQ(net::OK, cache.http_cache()->CreateTransaction(&c->trans));
4485 int rv = c->trans->Start(&request, &c->callback, net::BoundNetLog());
4490 rv = c->trans->Read(buf, 20, &c->callback);
4492 rv = c->trans->Read(buf, 10, &c->callback);
4609 scoped_ptr<net::HttpTransaction> trans;
4610 int rv = cache.http_cache()->CreateTransaction(&trans);
4612 ASSERT_TRUE(trans.get());
4614 rv = trans->Start(&request, &callback, net::BoundNetLog());
4619 const net::HttpResponseInfo* info = trans->GetResponseInfo();
4637 scoped_ptr<net::HttpTransaction> trans;
4638 int rv = cache.http_cache()->CreateTransaction(&trans);
4640 ASSERT_TRUE(trans.get());
4642 rv = trans->Start(&request, &callback, net::BoundNetLog());
4647 const net::HttpResponseInfo* info = trans->GetResponseInfo();
4762 scoped_ptr<net::HttpTransaction> trans;
4763 int rv = cache.http_cache()->CreateTransaction(&trans);
4765 ASSERT_TRUE(trans.get());
4767 rv = trans->Start(&request, &callback, net::BoundNetLog());
4777 scoped_ptr<net::HttpTransaction> trans;
4778 int rv = cache->http_cache()->CreateTransaction(&trans);
4782 trans.reset();