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

Unified Diff: net/base/cookie_monster_unittest.cc

Issue 8533013: SessionRestore: Store session cookies and restore them if chrome crashes or auto-restarts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 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
« net/base/cookie_monster.cc ('K') | « net/base/cookie_monster_store_test.cc ('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_unittest.cc
diff --git a/net/base/cookie_monster_unittest.cc b/net/base/cookie_monster_unittest.cc
index ce8d9ae29c5d4095e413c0149af5a019d2a8132e..491fdf66088a4c3d361b6004637a1915a59c0fe7 100644
--- a/net/base/cookie_monster_unittest.cc
+++ b/net/base/cookie_monster_unittest.cc
@@ -47,6 +47,7 @@ class NewMockPersistentCookieStore
MOCK_METHOD1(DeleteCookie, void(const CookieMonster::CanonicalCookie& cc));
MOCK_METHOD1(SetClearLocalStateOnExit, void(bool clear_local_state));
MOCK_METHOD1(Flush, void(Task* completion_task));
+ MOCK_METHOD0(DeleteSessionCookies, void());
};
const int kTimeout = 1000;
@@ -3028,6 +3029,8 @@ class FlushablePersistentStore : public CookieMonster::PersistentCookieStore {
void DeleteCookie(const CookieMonster::CanonicalCookie&) {}
void SetClearLocalStateOnExit(bool clear_local_state) {}
+ void DeleteSessionCookies() {}
+
void Flush(Task* completion_callback) {
++flush_count_;
if (completion_callback) {
« net/base/cookie_monster.cc ('K') | « net/base/cookie_monster_store_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698