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

Unified Diff: net/cookies/cookie_monster_unittest.cc

Issue 10066045: RefCounted types should not have public destructors, net/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/cookies/cookie_monster_unittest.cc
diff --git a/net/cookies/cookie_monster_unittest.cc b/net/cookies/cookie_monster_unittest.cc
index 24390bc8dc6eff2ac355ff15468b178b8a9cd168..ec01da91e3d938235deef6ca1e436b31ed364065 100644
--- a/net/cookies/cookie_monster_unittest.cc
+++ b/net/cookies/cookie_monster_unittest.cc
@@ -45,6 +45,9 @@ class NewMockPersistentCookieStore
MOCK_METHOD1(DeleteCookie, void(const CookieMonster::CanonicalCookie& cc));
MOCK_METHOD1(SetClearLocalStateOnExit, void(bool clear_local_state));
MOCK_METHOD1(Flush, void(const base::Closure& callback));
+
+ private:
+ virtual ~NewMockPersistentCookieStore() {}
};
const char* kTopLevelDomainPlus1 = "http://www.harvard.edu";
@@ -2202,6 +2205,8 @@ class FlushablePersistentStore : public CookieMonster::PersistentCookieStore {
}
private:
+ virtual ~FlushablePersistentStore() {}
+
volatile int flush_count_;
};
@@ -2220,6 +2225,8 @@ class CallbackCounter : public base::RefCountedThreadSafe<CallbackCounter> {
private:
friend class base::RefCountedThreadSafe<CallbackCounter>;
+ ~CallbackCounter() {}
+
volatile int callback_count_;
};

Powered by Google App Engine
This is Rietveld 408576698