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

Unified Diff: net/cookies/cookie_monster_store_test.h

Issue 1701063002: CookieStore: Remove reference counting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@threadsafe
Patch Set: Fix leak Created 4 years, 10 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_store_test.h
diff --git a/net/cookies/cookie_monster_store_test.h b/net/cookies/cookie_monster_store_test.h
index 686bb07afdb67a751601fedce2ae4b41bc7e0fb1..5511972ce79307c52bf61951c3e62f4d55328ebf 100644
--- a/net/cookies/cookie_monster_store_test.h
+++ b/net/cookies/cookie_monster_store_test.h
@@ -18,6 +18,7 @@
#include <vector>
#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
#include "net/cookies/canonical_cookie.h"
#include "net/cookies/cookie_monster.h"
@@ -188,11 +189,12 @@ class MockSimplePersistentCookieStore
// will be marked secure and non-secure, respectively. Do two SetCookies().
// Return whether each of the two SetCookies() took longer than |gc_perf_micros|
// to complete, and how many cookie were left in the store afterwards.
-CookieMonster* CreateMonsterFromStoreForGC(int num_secure_cookies,
- int num_old_secure_cookies,
- int num_non_secure_cookies,
- int num_old_non_secure_cookies,
- int days_old);
+scoped_ptr<CookieMonster> CreateMonsterFromStoreForGC(
+ int num_secure_cookies,
+ int num_old_secure_cookies,
+ int num_non_secure_cookies,
+ int num_old_non_secure_cookies,
+ int days_old);
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698