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 #include "net/cookies/cookie_store_unittest.h" | 5 #include "net/cookies/cookie_store_unittest.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 CookieList cookies_; | 82 CookieList cookies_; |
83 }; | 83 }; |
84 | 84 |
85 struct CookieMonsterTestTraits { | 85 struct CookieMonsterTestTraits { |
86 static scoped_refptr<CookieStore> Create() { | 86 static scoped_refptr<CookieStore> Create() { |
87 return new CookieMonster(NULL, NULL); | 87 return new CookieMonster(NULL, NULL); |
88 } | 88 } |
89 | 89 |
90 static const bool is_cookie_monster = true; | 90 static const bool is_cookie_monster = true; |
91 static const bool supports_http_only = true; | 91 static const bool supports_http_only = true; |
92 static const bool supports_cookies_with_info = true; | |
93 static const bool supports_non_dotted_domains = true; | 92 static const bool supports_non_dotted_domains = true; |
94 static const bool supports_trailing_dots = true; | 93 static const bool supports_trailing_dots = true; |
95 static const bool filters_schemes = true; | 94 static const bool filters_schemes = true; |
96 static const bool has_path_prefix_bug = false; | 95 static const bool has_path_prefix_bug = false; |
97 static const int creation_time_granularity_in_ms = 0; | 96 static const int creation_time_granularity_in_ms = 0; |
98 }; | 97 }; |
99 | 98 |
100 INSTANTIATE_TYPED_TEST_CASE_P(CookieMonster, | 99 INSTANTIATE_TYPED_TEST_CASE_P(CookieMonster, |
101 CookieStoreTest, | 100 CookieStoreTest, |
102 CookieMonsterTestTraits); | 101 CookieMonsterTestTraits); |
(...skipping 2617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2720 | 2719 |
2721 // Inject our initial cookies into the mock PersistentCookieStore. | 2720 // Inject our initial cookies into the mock PersistentCookieStore. |
2722 store->SetLoadExpectation(true, initial_cookies); | 2721 store->SetLoadExpectation(true, initial_cookies); |
2723 | 2722 |
2724 scoped_refptr<CookieMonster> cm(new CookieMonster(store.get(), NULL)); | 2723 scoped_refptr<CookieMonster> cm(new CookieMonster(store.get(), NULL)); |
2725 | 2724 |
2726 EXPECT_EQ("foo=bar; hello=world", GetCookies(cm.get(), url)); | 2725 EXPECT_EQ("foo=bar; hello=world", GetCookies(cm.get(), url)); |
2727 } | 2726 } |
2728 | 2727 |
2729 } // namespace net | 2728 } // namespace net |
OLD | NEW |