From 21e743205216812e6ca165313b7999f94f0fdc3e Mon Sep 17 00:00:00 2001 From: "rvargas@google.com" Date: Fri, 18 Dec 2009 01:31:04 +0000 Subject: Http cache: Add a test to make sure that the cache works as expected with synchronous responses. As an added bonus, now changing the default test mode of kRangeGET_TransactionOK doesn't end up with some tests hanging, so it is easy to manually verify that all tests work as expected. BUG=26729 TEST=unittests Review URL: http://codereview.chromium.org/501099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34914 0039d316-1c4b-4281-b951-d872f2087c98 --- net/http/http_transaction_unittest.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net/http/http_transaction_unittest.h') diff --git a/net/http/http_transaction_unittest.h b/net/http/http_transaction_unittest.h index 2a93237..cffde7a 100644 --- a/net/http/http_transaction_unittest.h +++ b/net/http/http_transaction_unittest.h @@ -34,6 +34,9 @@ enum { TEST_MODE_SYNC_CACHE_START = 1 << 2, TEST_MODE_SYNC_CACHE_READ = 1 << 3, TEST_MODE_SYNC_CACHE_WRITE = 1 << 4, + TEST_MODE_SYNC_ALL = TEST_MODE_SYNC_NET_START | TEST_MODE_SYNC_NET_READ | + TEST_MODE_SYNC_CACHE_START | TEST_MODE_SYNC_CACHE_READ | + TEST_MODE_SYNC_CACHE_WRITE }; typedef void (*MockTransactionHandler)(const net::HttpRequestInfo* request, -- cgit v1.1