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

Side by Side Diff: ios/net/cookies/cookie_store_ios_persistent_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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « android_webview/browser/net/aw_cookie_store_wrapper_unittest.cc ('k') | ios/net/cookies/cookie_store_ios_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698