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_ |