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

Unified Diff: net/filter/mock_filter_context.h

Issue 380003002: Improve testing for SDCH. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed Isolation test for ChromeOS. Created 6 years, 4 months 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 | « net/base/sdch_manager.cc ('k') | net/filter/mock_filter_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/filter/mock_filter_context.h
diff --git a/net/filter/mock_filter_context.h b/net/filter/mock_filter_context.h
index 9bb6235a3a9ab161c08880e1421c9b574078d33b..91a64d22ac584e5e9b83a5a09e4c3c5150ec664a 100644
--- a/net/filter/mock_filter_context.h
+++ b/net/filter/mock_filter_context.h
@@ -36,6 +36,11 @@ class MockFilterContext : public FilterContext {
return context_.get();
}
+ // After a URLRequest's destructor is called, some interfaces may become
+ // unstable. This method is used to signal that state, so we can tag use
+ // of those interfaces as coding errors.
+ void NukeUnstableInterfaces();
+
virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
// What URL was used to access this data?
@@ -77,6 +82,7 @@ class MockFilterContext : public FilterContext {
bool is_cached_content_;
bool is_download_;
bool is_sdch_response_;
+ bool ok_to_call_get_url_;
int response_code_;
scoped_ptr<URLRequestContext> context_;
« no previous file with comments | « net/base/sdch_manager.cc ('k') | net/filter/mock_filter_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698