diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-18 01:31:04 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-18 01:31:04 +0000 |
commit | 21e743205216812e6ca165313b7999f94f0fdc3e (patch) | |
tree | 5573b0793a03996eeed1fc01050ca33258061afe /net/http/http_transaction_unittest.h | |
parent | abfef857b0e4f5cad1da9ce0f751283292a4aab6 (diff) | |
download | chromium_src-21e743205216812e6ca165313b7999f94f0fdc3e.zip chromium_src-21e743205216812e6ca165313b7999f94f0fdc3e.tar.gz chromium_src-21e743205216812e6ca165313b7999f94f0fdc3e.tar.bz2 |
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
Diffstat (limited to 'net/http/http_transaction_unittest.h')
-rw-r--r-- | net/http/http_transaction_unittest.h | 3 |
1 files changed, 3 insertions, 0 deletions
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, |