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

Side by Side Diff: headless/public/util/testing/generic_url_request_mocks.cc

Issue 2882063002: Add a SetCanonicalCookie method for CookieMonster. (Closed)
Patch Set: Fix AW cookie store wrapper. 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "headless/public/util/testing/generic_url_request_mocks.h" 5 #include "headless/public/util/testing/generic_url_request_mocks.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 base::Time expiration_time, 77 base::Time expiration_time,
78 base::Time last_access_time, 78 base::Time last_access_time,
79 bool secure, 79 bool secure,
80 bool http_only, 80 bool http_only,
81 net::CookieSameSite same_site, 81 net::CookieSameSite same_site,
82 net::CookiePriority priority, 82 net::CookiePriority priority,
83 const SetCookiesCallback& callback) { 83 const SetCookiesCallback& callback) {
84 CHECK(false); 84 CHECK(false);
85 } 85 }
86 86
87 void MockCookieStore::SetCanonicalCookieAsync(
88 std::unique_ptr<net::CanonicalCookie> cookie,
89 bool secure_source,
90 bool can_modify_httponly,
91 const SetCookiesCallback& callback) {
92 CHECK(false);
93 }
94
87 void MockCookieStore::GetCookiesWithOptionsAsync( 95 void MockCookieStore::GetCookiesWithOptionsAsync(
88 const GURL& url, 96 const GURL& url,
89 const net::CookieOptions& options, 97 const net::CookieOptions& options,
90 const GetCookiesCallback& callback) { 98 const GetCookiesCallback& callback) {
91 CHECK(false); 99 CHECK(false);
92 } 100 }
93 101
94 void MockCookieStore::GetCookieListWithOptionsAsync( 102 void MockCookieStore::GetCookieListWithOptionsAsync(
95 const GURL& url, 103 const GURL& url,
96 const net::CookieOptions& options, 104 const net::CookieOptions& options,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 int bytes_read) {} 185 int bytes_read) {}
178 const std::string& MockURLRequestDelegate::response_data() const { 186 const std::string& MockURLRequestDelegate::response_data() const {
179 return response_data_; 187 return response_data_;
180 } 188 }
181 189
182 const net::IOBufferWithSize* MockURLRequestDelegate::metadata() const { 190 const net::IOBufferWithSize* MockURLRequestDelegate::metadata() const {
183 return nullptr; 191 return nullptr;
184 } 192 }
185 193
186 } // namespace headless 194 } // namespace headless
OLDNEW
« no previous file with comments | « headless/public/util/testing/generic_url_request_mocks.h ('k') | ios/net/cookies/cookie_store_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698