| 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_BASE_COOKIE_STORE_UNITTEST_H_ | 5 #ifndef NET_COOKIES_COOKIE_STORE_UNITTEST_H_ |
| 6 #define NET_BASE_COOKIE_STORE_UNITTEST_H_ | 6 #define NET_COOKIES_COOKIE_STORE_UNITTEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/string_tokenizer.h" | 11 #include "base/string_tokenizer.h" |
| 12 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
| 13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 #include "net/base/cookie_monster.h" | 14 #include "net/cookies/cookie_monster.h" |
| 15 #include "net/base/cookie_store.h" | 15 #include "net/cookies/cookie_store.h" |
| 16 #include "net/base/cookie_store_test_callbacks.h" | 16 #include "net/cookies/cookie_store_test_callbacks.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 18 |
| 19 // This file declares unittest templates that can be used to test common | 19 // This file declares unittest templates that can be used to test common |
| 20 // behavior of any CookieStore implementation. | 20 // behavior of any CookieStore implementation. |
| 21 // See cookie_monster_unittest.cc for an example of an implementation. | 21 // See cookie_monster_unittest.cc for an example of an implementation. |
| 22 | 22 |
| 23 namespace net { | 23 namespace net { |
| 24 | 24 |
| 25 using base::Thread; | 25 using base::Thread; |
| 26 | 26 |
| (...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1045 EXPECT_TRUE(callback.did_run()); | 1045 EXPECT_TRUE(callback.did_run()); |
| 1046 } | 1046 } |
| 1047 | 1047 |
| 1048 REGISTER_TYPED_TEST_CASE_P(MultiThreadedCookieStoreTest, | 1048 REGISTER_TYPED_TEST_CASE_P(MultiThreadedCookieStoreTest, |
| 1049 ThreadCheckGetCookies, ThreadCheckGetCookiesWithOptions, | 1049 ThreadCheckGetCookies, ThreadCheckGetCookiesWithOptions, |
| 1050 ThreadCheckGetCookiesWithInfo, ThreadCheckSetCookieWithOptions, | 1050 ThreadCheckGetCookiesWithInfo, ThreadCheckSetCookieWithOptions, |
| 1051 ThreadCheckDeleteCookie); | 1051 ThreadCheckDeleteCookie); |
| 1052 | 1052 |
| 1053 } // namespace net | 1053 } // namespace net |
| 1054 | 1054 |
| 1055 #endif // NET_BASE_COOKIE_STORE_UNITTEST_H_ | 1055 #endif // NET_COOKIES_COOKIE_STORE_UNITTEST_H_ |
| OLD | NEW |