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

Unified Diff: net/base/cookie_monster_store_test.h

Issue 5430004: Refactored cookies persistent store clean-up on shutdown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added unit test and moved flag to the persistence store itself. Created 10 years 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
« net/base/cookie_monster.h ('K') | « net/base/cookie_monster.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/cookie_monster_store_test.h
diff --git a/net/base/cookie_monster_store_test.h b/net/base/cookie_monster_store_test.h
index 8a21930f1426fa3c7384920cbab6e6fe7a290264..ad32ce41b19d50e73a682da15c311bbf754fcc83 100644
--- a/net/base/cookie_monster_store_test.h
+++ b/net/base/cookie_monster_store_test.h
@@ -18,7 +18,7 @@ struct CookieStoreCommand {
enum Type {
ADD,
UPDATE_ACCESS_TIME,
- REMOVE,
+ REMOVE
jochen (gone - plz use gerrit) 2010/12/02 15:09:51 please leave the ,
pastarmovj 2010/12/02 16:29:07 Done.
};
CookieStoreCommand(Type type,
@@ -66,6 +66,9 @@ class MockPersistentCookieStore
CookieStoreCommand(CookieStoreCommand::REMOVE, cookie));
}
+ // No files are created so nothing to clear either
+ virtual void SetClearLocalStateOnExit(bool clear_local_state) {}
+
void SetLoadExpectation(
bool return_value,
const std::vector<net::CookieMonster::CanonicalCookie*>& result) {
@@ -185,6 +188,8 @@ class MockSimplePersistentCookieStore
cookies_.erase(it);
}
+ virtual void SetClearLocalStateOnExit(bool clear_local_state) {}
+
private:
CanonicalCookieMap cookies_;
};
« net/base/cookie_monster.h ('K') | « net/base/cookie_monster.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698