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

Unified Diff: net/url_request/view_cache_helper_unittest.cc

Issue 379293002: Add AssertNoURLRequests() to URLRequestContext subclass destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
Index: net/url_request/view_cache_helper_unittest.cc
diff --git a/net/url_request/view_cache_helper_unittest.cc b/net/url_request/view_cache_helper_unittest.cc
index 70bf201a507ee502dc60266055c2d2139ac693a1..31ad0ba872dfa0c7fc40934266b341a3c20e01a8 100644
--- a/net/url_request/view_cache_helper_unittest.cc
+++ b/net/url_request/view_cache_helper_unittest.cc
@@ -20,7 +20,10 @@ namespace {
class TestURLRequestContext : public URLRequestContext {
public:
TestURLRequestContext();
- virtual ~TestURLRequestContext() {}
+
+ virtual ~TestURLRequestContext() {
+ AssertNoURLRequests();
+ }
// Gets a pointer to the cache backend.
disk_cache::Backend* GetBackend();

Powered by Google App Engine
This is Rietveld 408576698