diff options
author | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-06 03:50:42 +0000 |
---|---|---|
committer | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-06 03:50:42 +0000 |
commit | ee3cd175f8592b2b1f2ccd14b071d56ca733a5c6 (patch) | |
tree | 87a1e45bb6e93e1140a8719681fb653464bcea5e /webkit/appcache/appcache_response_unittest.cc | |
parent | fd4882e6faab19e1de6d791acebfa3b34faf5701 (diff) | |
download | chromium_src-ee3cd175f8592b2b1f2ccd14b071d56ca733a5c6.zip chromium_src-ee3cd175f8592b2b1f2ccd14b071d56ca733a5c6.tar.gz chromium_src-ee3cd175f8592b2b1f2ccd14b071d56ca733a5c6.tar.bz2 |
Revert 35609 - AppCache quota tracking groundwork, store response sizes in the SQL database.
TEST=updated existing unittests
BUG=none
Review URL: http://codereview.chromium.org/523046
TBR=michaeln@chromium.org
Review URL: http://codereview.chromium.org/525059
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35610 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_response_unittest.cc')
-rw-r--r-- | webkit/appcache/appcache_response_unittest.cc | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/webkit/appcache/appcache_response_unittest.cc b/webkit/appcache/appcache_response_unittest.cc index 2989592..824e73c 100644 --- a/webkit/appcache/appcache_response_unittest.cc +++ b/webkit/appcache/appcache_response_unittest.cc @@ -371,37 +371,6 @@ class AppCacheResponseTest : public testing::Test { TestFinished(); } - // AmountWritten ---------------------------------------------------- - - void AmountWritten() { - static const char kHttpHeaders[] = - "HTTP/1.0 200 OK\0\0"; - std::string raw_headers(kHttpHeaders, arraysize(kHttpHeaders)); - net::HttpResponseInfo* head = MakeHttpResponseInfo(raw_headers); - int expected_amount_written = - GetHttpResponseInfoSize(head) + kNumBlocks * kBlockSize; - - // Push tasks in reverse order. - PushNextTask(method_factory_.NewRunnableMethod( - &AppCacheResponseTest::Verify_AmountWritten, expected_amount_written)); - for (int i = 0; i < kNumBlocks; ++i) { - PushNextTask(method_factory_.NewRunnableMethod( - &AppCacheResponseTest::WriteOneBlock, kNumBlocks - i)); - } - PushNextTask(method_factory_.NewRunnableMethod( - &AppCacheResponseTest::WriteResponseHead, head)); - - writer_.reset(service_->storage()->CreateResponseWriter(GURL())); - written_response_id_ = writer_->response_id(); - ScheduleNextTask(); - } - - void Verify_AmountWritten(int expected_amount_written) { - EXPECT_EQ(expected_amount_written, writer_->amount_written()); - TestFinished(); - } - - // WriteThenVariouslyReadResponse ------------------------------------------- void WriteThenVariouslyReadResponse() { @@ -689,10 +658,6 @@ TEST_F(AppCacheResponseTest, LoadResponseInfo_Hit) { RunTestOnIOThread(&AppCacheResponseTest::LoadResponseInfo_Hit); } -TEST_F(AppCacheResponseTest, AmountWritten) { - RunTestOnIOThread(&AppCacheResponseTest::AmountWritten); -} - TEST_F(AppCacheResponseTest, WriteThenVariouslyReadResponse) { RunTestOnIOThread(&AppCacheResponseTest::WriteThenVariouslyReadResponse); } |