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

Unified Diff: net/base/cookie_monster_store_test.h

Issue 7833042: Finalize a CL originally by departed intern ycxiao@ that detaches the loading of cookies from the... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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/base/cookie_monster_store_test.h
===================================================================
--- net/base/cookie_monster_store_test.h (revision 99705)
+++ net/base/cookie_monster_store_test.h (working copy)
@@ -7,6 +7,14 @@
// that need to test out CookieMonster interactions with the backing store.
// It should only be included by test code.
+#ifndef NET_BASE_COOKIE_MONSTER_STORE_TEST_H_
+#define NET_BASE_COOKIE_MONSTER_STORE_TEST_H_
+#pragma once
+
+#include <map>
+#include <utility>
+#include <string>
+#include <vector>
#include "net/base/cookie_monster.h"
namespace base {
@@ -51,21 +59,20 @@
return commands_;
}
- virtual bool Load(
- std::vector<CookieMonster::CanonicalCookie*>* out_cookies);
+ virtual bool Load(const LoadedCallback& loaded_callback) OVERRIDE;
- virtual void AddCookie(const CookieMonster::CanonicalCookie& cookie);
+ virtual void AddCookie(const CookieMonster::CanonicalCookie& cookie) OVERRIDE;
virtual void UpdateCookieAccessTime(
- const CookieMonster::CanonicalCookie& cookie);
+ const CookieMonster::CanonicalCookie& cookie) OVERRIDE;
virtual void DeleteCookie(
- const CookieMonster::CanonicalCookie& cookie);
+ const CookieMonster::CanonicalCookie& cookie) OVERRIDE;
- virtual void Flush(Task* completion_task);
+ virtual void Flush(Task* completion_task) OVERRIDE;
// No files are created so nothing to clear either
- virtual void SetClearLocalStateOnExit(bool clear_local_state);
+ virtual void SetClearLocalStateOnExit(bool clear_local_state) OVERRIDE;
private:
CommandList commands_;
@@ -117,8 +124,7 @@
MockSimplePersistentCookieStore();
virtual ~MockSimplePersistentCookieStore();
- virtual bool Load(
- std::vector<CookieMonster::CanonicalCookie*>* out_cookies);
+ virtual bool Load(const LoadedCallback& loaded_callback);
virtual void AddCookie(
const CookieMonster::CanonicalCookie& cookie);
@@ -154,3 +160,5 @@
int days_old);
} // namespace net
+
+#endif // NET_BASE_COOKIE_MONSTER_STORE_TEST_H_

Powered by Google App Engine
This is Rietveld 408576698