| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #import "ios/net/cookies/cookie_store_ios_persistent.h" | 5 #import "ios/net/cookies/cookie_store_ios_persistent.h" |
| 6 | 6 |
| 7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 static std::unique_ptr<net::CookieStore> Create() { | 23 static std::unique_ptr<net::CookieStore> Create() { |
| 24 return base::MakeUnique<CookieStoreIOSPersistent>(nullptr); | 24 return base::MakeUnique<CookieStoreIOSPersistent>(nullptr); |
| 25 } | 25 } |
| 26 | 26 |
| 27 static const bool is_cookie_monster = false; | 27 static const bool is_cookie_monster = false; |
| 28 static const bool supports_http_only = false; | 28 static const bool supports_http_only = false; |
| 29 static const bool supports_non_dotted_domains = true; | 29 static const bool supports_non_dotted_domains = true; |
| 30 static const bool preserves_trailing_dots = true; | 30 static const bool preserves_trailing_dots = true; |
| 31 static const bool filters_schemes = false; | 31 static const bool filters_schemes = false; |
| 32 static const bool has_path_prefix_bug = false; | 32 static const bool has_path_prefix_bug = false; |
| 33 static const bool forbids_setting_empty_name = false; |
| 33 static const int creation_time_granularity_in_ms = 0; | 34 static const int creation_time_granularity_in_ms = 0; |
| 34 static const int enforces_prefixes = true; | 35 static const int enforces_prefixes = true; |
| 35 static const bool enforce_strict_secure = false; | 36 static const bool enforce_strict_secure = false; |
| 36 | 37 |
| 37 base::MessageLoop loop_; | 38 base::MessageLoop loop_; |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 INSTANTIATE_TYPED_TEST_CASE_P(InactiveCookieStoreIOS, | 41 INSTANTIATE_TYPED_TEST_CASE_P(InactiveCookieStoreIOS, |
| 41 CookieStoreTest, | 42 CookieStoreTest, |
| 42 InactiveCookieStoreIOSTestTraits); | 43 InactiveCookieStoreIOSTestTraits); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 TEST_F(CookieStoreIOSPersistentTest, NotSynchronized) { | 119 TEST_F(CookieStoreIOSPersistentTest, NotSynchronized) { |
| 119 // Start fetching the cookie. | 120 // Start fetching the cookie. |
| 120 GetCookieCallback callback; | 121 GetCookieCallback callback; |
| 121 GetCookies(base::Bind(&GetCookieCallback::Run, base::Unretained(&callback))); | 122 GetCookies(base::Bind(&GetCookieCallback::Run, base::Unretained(&callback))); |
| 122 // Backend loading completes. | 123 // Backend loading completes. |
| 123 backend_->RunLoadedCallback(); | 124 backend_->RunLoadedCallback(); |
| 124 EXPECT_TRUE(callback.did_run()); | 125 EXPECT_TRUE(callback.did_run()); |
| 125 EXPECT_EQ("a=b", callback.cookie_line()); | 126 EXPECT_EQ("a=b", callback.cookie_line()); |
| 126 } | 127 } |
| 127 | 128 |
| 128 } // namespace net | 129 } // namespace net |
| OLD | NEW |