| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "ios/net/cookies/cookie_store_ios.h" | 5 #include "ios/net/cookies/cookie_store_ios.h" |
| 6 | 6 |
| 7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 ClearCookies(); | 26 ClearCookies(); |
| 27 return base::MakeUnique<CookieStoreIOS>( | 27 return base::MakeUnique<CookieStoreIOS>( |
| 28 [NSHTTPCookieStorage sharedHTTPCookieStorage]); | 28 [NSHTTPCookieStorage sharedHTTPCookieStorage]); |
| 29 } | 29 } |
| 30 | 30 |
| 31 static const bool supports_http_only = false; | 31 static const bool supports_http_only = false; |
| 32 static const bool supports_non_dotted_domains = false; | 32 static const bool supports_non_dotted_domains = false; |
| 33 static const bool preserves_trailing_dots = false; | 33 static const bool preserves_trailing_dots = false; |
| 34 static const bool filters_schemes = false; | 34 static const bool filters_schemes = false; |
| 35 static const bool has_path_prefix_bug = true; | 35 static const bool has_path_prefix_bug = true; |
| 36 static const bool forbids_setting_empty_name = true; |
| 36 static const int creation_time_granularity_in_ms = 1000; | 37 static const int creation_time_granularity_in_ms = 1000; |
| 37 | 38 |
| 38 base::MessageLoop loop_; | 39 base::MessageLoop loop_; |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 INSTANTIATE_TYPED_TEST_CASE_P(CookieStoreIOS, | 42 INSTANTIATE_TYPED_TEST_CASE_P(CookieStoreIOS, |
| 42 CookieStoreTest, | 43 CookieStoreTest, |
| 43 CookieStoreIOSTestTraits); | 44 CookieStoreIOSTestTraits); |
| 44 | 45 |
| 45 | 46 |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 SetSystemCookie(kTestCookieURL, "abc", "ghi"); | 404 SetSystemCookie(kTestCookieURL, "abc", "ghi"); |
| 404 EXPECT_EQ(2U, cookies.size()); | 405 EXPECT_EQ(2U, cookies.size()); |
| 405 // this deletes the callback | 406 // this deletes the callback |
| 406 handle.reset(); | 407 handle.reset(); |
| 407 SetSystemCookie(kTestCookieURL, "abc", "jkl"); | 408 SetSystemCookie(kTestCookieURL, "abc", "jkl"); |
| 408 EXPECT_EQ(2U, cookies.size()); | 409 EXPECT_EQ(2U, cookies.size()); |
| 409 DeleteSystemCookie(kTestCookieURL, "abc"); | 410 DeleteSystemCookie(kTestCookieURL, "abc"); |
| 410 } | 411 } |
| 411 | 412 |
| 412 } // namespace net | 413 } // namespace net |
| OLD | NEW |