summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_update_job_unittest.cc
diff options
context:
space:
mode:
authortoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-13 23:57:27 +0000
committertoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-13 23:57:27 +0000
commit4a5aebb91b0784ef133a926773b0b9e517f288d9 (patch)
tree63e34b4e1b8d340b161c806c2b0bdae48dd430aa /webkit/appcache/appcache_update_job_unittest.cc
parent333ad2b08eec948f3d1e9089aa84174a84796f09 (diff)
downloadchromium_src-4a5aebb91b0784ef133a926773b0b9e517f288d9.zip
chromium_src-4a5aebb91b0784ef133a926773b0b9e517f288d9.tar.gz
chromium_src-4a5aebb91b0784ef133a926773b0b9e517f288d9.tar.bz2
net::URLRequest: rename Simulate*Error with CancelWith*Error
The method names SimulateError and SimulateSSLError are inconsistent with other Cancel methods. This CL renames these methods with CancelWithError and CancelWithSSLError. BUG=none TEST=test_shell_tests, net_unittests, and other existing unit tests Review URL: http://codereview.chromium.org/9694001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126511 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_update_job_unittest.cc')
-rw-r--r--webkit/appcache/appcache_update_job_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/webkit/appcache/appcache_update_job_unittest.cc b/webkit/appcache/appcache_update_job_unittest.cc
index 1d6a4ec..3bb3f03b 100644
--- a/webkit/appcache/appcache_update_job_unittest.cc
+++ b/webkit/appcache/appcache_update_job_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -703,7 +703,7 @@ class AppCacheUpdateJobTest : public testing::Test,
update->StartUpdate(host, GURL());
EXPECT_TRUE(update->manifest_fetcher_ != NULL);
- update->manifest_fetcher_->request()->SimulateError(-100);
+ update->manifest_fetcher_->request()->CancelWithError(-100);
// Set up checks for when update job finishes.
do_checks_after_update_finished_ = true;
@@ -735,7 +735,7 @@ class AppCacheUpdateJobTest : public testing::Test,
update->StartUpdate(NULL, GURL());
EXPECT_TRUE(update->manifest_fetcher_ != NULL);
- update->manifest_fetcher_->request()->SimulateError(-100);
+ update->manifest_fetcher_->request()->CancelWithError(-100);
// Set up checks for when update job finishes.
do_checks_after_update_finished_ = true;
@@ -1910,7 +1910,7 @@ class AppCacheUpdateJobTest : public testing::Test,
update->StartUpdate(host, host->new_master_entry_url_);
EXPECT_TRUE(update->manifest_fetcher_ != NULL);
- update->manifest_fetcher_->request()->SimulateError(-100);
+ update->manifest_fetcher_->request()->CancelWithError(-100);
// Set up checks for when update job finishes.
do_checks_after_update_finished_ = true;