OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file contains test infrastructure for multiple files | 5 // This file contains test infrastructure for multiple files |
6 // (current cookie_monster_unittest.cc and cookie_monster_perftest.cc) | 6 // (current cookie_monster_unittest.cc and cookie_monster_perftest.cc) |
7 // that need to test out CookieMonster interactions with the backing store. | 7 // that need to test out CookieMonster interactions with the backing store. |
8 // It should only be included by test code. | 8 // It should only be included by test code. |
9 | 9 |
10 #ifndef NET_BASE_COOKIE_MONSTER_STORE_TEST_H_ | 10 #ifndef NET_COOKIES_COOKIE_MONSTER_STORE_TEST_H_ |
11 #define NET_BASE_COOKIE_MONSTER_STORE_TEST_H_ | 11 #define NET_COOKIES_COOKIE_MONSTER_STORE_TEST_H_ |
12 #pragma once | 12 #pragma once |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 #include <string> | 15 #include <string> |
16 #include <utility> | 16 #include <utility> |
17 #include <vector> | 17 #include <vector> |
18 #include "net/base/cookie_monster.h" | 18 #include "net/cookies/cookie_monster.h" |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class Time; | 21 class Time; |
22 } | 22 } |
23 | 23 |
24 namespace net { | 24 namespace net { |
25 | 25 |
26 // Wrapper class for posting a loaded callback. Since the Callback class is not | 26 // Wrapper class for posting a loaded callback. Since the Callback class is not |
27 // reference counted, we cannot post a callback to the message loop directly, | 27 // reference counted, we cannot post a callback to the message loop directly, |
28 // instead we post a LoadedCallbackTask. | 28 // instead we post a LoadedCallbackTask. |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 // Do two SetCookies(). Return whether each of the two SetCookies() took | 196 // Do two SetCookies(). Return whether each of the two SetCookies() took |
197 // longer than |gc_perf_micros| to complete, and how many cookie were | 197 // longer than |gc_perf_micros| to complete, and how many cookie were |
198 // left in the store afterwards. | 198 // left in the store afterwards. |
199 CookieMonster* CreateMonsterFromStoreForGC( | 199 CookieMonster* CreateMonsterFromStoreForGC( |
200 int num_cookies, | 200 int num_cookies, |
201 int num_old_cookies, | 201 int num_old_cookies, |
202 int days_old); | 202 int days_old); |
203 | 203 |
204 } // namespace net | 204 } // namespace net |
205 | 205 |
206 #endif // NET_BASE_COOKIE_MONSTER_STORE_TEST_H_ | 206 #endif // NET_COOKIES_COOKIE_MONSTER_STORE_TEST_H_ |
OLD | NEW |