Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Side by Side Diff: ios/net/cookies/cookie_store_ios_unittest.mm

Issue 2898953008: Implement and test CanonicalCookie::IsCanonical() (Closed)
Patch Set: Removed vestigial code. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/net/cookies/cookie_store_ios_persistent_unittest.mm ('k') | net/cookies/canonical_cookie.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ios/net/cookies/cookie_store_ios_persistent_unittest.mm ('k') | net/cookies/canonical_cookie.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698