Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1559)

Unified Diff: content/browser/loader/mojo_async_resource_handler_unittest.cc

Issue 2484933002: MojoAsyncResourceHandler: Ignore Resume/OnWritable calls after error. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/loader/mojo_async_resource_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/mojo_async_resource_handler_unittest.cc
diff --git a/content/browser/loader/mojo_async_resource_handler_unittest.cc b/content/browser/loader/mojo_async_resource_handler_unittest.cc
index 616f30482b5173d7b377545b4e424c2d2c7a51b9..58a48c8712e941d5b2f73256781c003052297297 100644
--- a/content/browser/loader/mojo_async_resource_handler_unittest.cc
+++ b/content/browser/loader/mojo_async_resource_handler_unittest.cc
@@ -184,6 +184,10 @@ class TestResourceController : public ResourceController {
}
void CancelWithError(int error_code) override {
+ // While cancelling more than once is legal, none of these tests should do
+ // it.
+ EXPECT_FALSE(is_cancel_with_error_called_);
+
is_cancel_with_error_called_ = true;
error_ = error_code;
if (quit_closure_)
« no previous file with comments | « content/browser/loader/mojo_async_resource_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698