summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_response_unittest.cc
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 18:38:51 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 18:38:51 +0000
commitdda06f8f233dcc895085d219b58355137d8fa3b1 (patch)
treea49c5f88ff5b3a6d3fca3e961030cad744ea39a6 /webkit/appcache/appcache_response_unittest.cc
parent90ec688b31c845ad75cc95d164f331fe5146a1cc (diff)
downloadchromium_src-dda06f8f233dcc895085d219b58355137d8fa3b1.zip
chromium_src-dda06f8f233dcc895085d219b58355137d8fa3b1.tar.gz
chromium_src-dda06f8f233dcc895085d219b58355137d8fa3b1.tar.bz2
Some more, release link error fix
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29676 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_response_unittest.cc')
-rw-r--r--webkit/appcache/appcache_response_unittest.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/webkit/appcache/appcache_response_unittest.cc b/webkit/appcache/appcache_response_unittest.cc
index 8ee6600f..854ac01 100644
--- a/webkit/appcache/appcache_response_unittest.cc
+++ b/webkit/appcache/appcache_response_unittest.cc
@@ -15,6 +15,10 @@ using net::IOBuffer;
namespace appcache {
+static const int kNumBlocks = 4;
+static const int kBlockSize = 1024;
+static const int kNoSuchResponseId = 123;
+
class AppCacheResponseTest : public testing::Test {
public:
@@ -330,7 +334,7 @@ class AppCacheResponseTest : public testing::Test {
// 2. Attempt to ReadData
reader_.reset(service_->storage()->CreateResponseReader(
- GURL(), 123));
+ GURL(), kNoSuchResponseId));
// Push tasks in reverse order
PushNextTask(method_factory_.NewRunnableMethod(
@@ -360,12 +364,12 @@ class AppCacheResponseTest : public testing::Test {
void LoadResponseInfo_Miss() {
PushNextTask(method_factory_.NewRunnableMethod(
&AppCacheResponseTest::LoadResponseInfo_Miss_Verify));
- service_->storage()->LoadResponseInfo(GURL(), 123,
+ service_->storage()->LoadResponseInfo(GURL(), kNoSuchResponseId,
storage_delegate_.get());
}
void LoadResponseInfo_Miss_Verify() {
- EXPECT_EQ(123, storage_delegate_->loaded_info_id_);
+ EXPECT_EQ(kNoSuchResponseId, storage_delegate_->loaded_info_id_);
EXPECT_TRUE(!storage_delegate_->loaded_info_.get());
TestFinished();
}
@@ -402,8 +406,6 @@ class AppCacheResponseTest : public testing::Test {
}
// WriteThenVariouslyReadResponse -------------------------------------------
- static const int kNumBlocks = 4;
- static const int kBlockSize = 1024;
void WriteThenVariouslyReadResponse() {
// This tests involves multiple async steps.