| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef NET_COOKIES_COOKIE_STORE_UNITTEST_H_ | 5 #ifndef NET_COOKIES_COOKIE_STORE_UNITTEST_H_ |
| 6 #define NET_COOKIES_COOKIE_STORE_UNITTEST_H_ | 6 #define NET_COOKIES_COOKIE_STORE_UNITTEST_H_ |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/strings/string_tokenizer.h" | 10 #include "base/strings/string_tokenizer.h" |
| 11 #include "base/threading/thread.h" | 11 #include "base/threading/thread.h" |
| 12 #include "googleurl/src/gurl.h" | |
| 13 #include "net/cookies/cookie_monster.h" | 12 #include "net/cookies/cookie_monster.h" |
| 14 #include "net/cookies/cookie_store.h" | 13 #include "net/cookies/cookie_store.h" |
| 15 #include "net/cookies/cookie_store_test_callbacks.h" | 14 #include "net/cookies/cookie_store_test_callbacks.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "url/gurl.h" |
| 17 | 17 |
| 18 // This file declares unittest templates that can be used to test common | 18 // This file declares unittest templates that can be used to test common |
| 19 // behavior of any CookieStore implementation. | 19 // behavior of any CookieStore implementation. |
| 20 // See cookie_monster_unittest.cc for an example of an implementation. | 20 // See cookie_monster_unittest.cc for an example of an implementation. |
| 21 | 21 |
| 22 namespace net { | 22 namespace net { |
| 23 | 23 |
| 24 using base::Thread; | 24 using base::Thread; |
| 25 | 25 |
| 26 const int kTimeout = 1000; | 26 const int kTimeout = 1000; |
| (...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1151 REGISTER_TYPED_TEST_CASE_P(MultiThreadedCookieStoreTest, | 1151 REGISTER_TYPED_TEST_CASE_P(MultiThreadedCookieStoreTest, |
| 1152 ThreadCheckGetCookies, | 1152 ThreadCheckGetCookies, |
| 1153 ThreadCheckGetCookiesWithOptions, | 1153 ThreadCheckGetCookiesWithOptions, |
| 1154 ThreadCheckSetCookieWithOptions, | 1154 ThreadCheckSetCookieWithOptions, |
| 1155 ThreadCheckDeleteCookie, | 1155 ThreadCheckDeleteCookie, |
| 1156 ThreadCheckDeleteSessionCookies); | 1156 ThreadCheckDeleteSessionCookies); |
| 1157 | 1157 |
| 1158 } // namespace net | 1158 } // namespace net |
| 1159 | 1159 |
| 1160 #endif // NET_COOKIES_COOKIE_STORE_UNITTEST_H_ | 1160 #endif // NET_COOKIES_COOKIE_STORE_UNITTEST_H_ |
| OLD | NEW |