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

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

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 #ifndef HEADLESS_PUBLIC_UTIL_TESTING_GENERIC_URL_REQUEST_MOCKS_H_ 5 #ifndef HEADLESS_PUBLIC_UTIL_TESTING_GENERIC_URL_REQUEST_MOCKS_H_
6 #define HEADLESS_PUBLIC_UTIL_TESTING_GENERIC_URL_REQUEST_MOCKS_H_ 6 #define HEADLESS_PUBLIC_UTIL_TESTING_GENERIC_URL_REQUEST_MOCKS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 const std::string& path, 67 const std::string& path,
68 base::Time creation_time, 68 base::Time creation_time,
69 base::Time expiration_time, 69 base::Time expiration_time,
70 base::Time last_access_time, 70 base::Time last_access_time,
71 bool secure, 71 bool secure,
72 bool http_only, 72 bool http_only,
73 net::CookieSameSite same_site, 73 net::CookieSameSite same_site,
74 net::CookiePriority priority, 74 net::CookiePriority priority,
75 const SetCookiesCallback& callback) override; 75 const SetCookiesCallback& callback) override;
76 76
77 void SetCanonicalCookieAsync(std::unique_ptr<net::CanonicalCookie> cookie,
78 bool secure_source,
79 bool modify_http_only,
80 const SetCookiesCallback& callback) override;
81
77 void GetCookiesWithOptionsAsync(const GURL& url, 82 void GetCookiesWithOptionsAsync(const GURL& url,
78 const net::CookieOptions& options, 83 const net::CookieOptions& options,
79 const GetCookiesCallback& callback) override; 84 const GetCookiesCallback& callback) override;
80 85
81 void GetCookieListWithOptionsAsync( 86 void GetCookieListWithOptionsAsync(
82 const GURL& url, 87 const GURL& url,
83 const net::CookieOptions& options, 88 const net::CookieOptions& options,
84 const GetCookieListCallback& callback) override; 89 const GetCookieListCallback& callback) override;
85 90
86 void GetAllCookiesAsync(const GetCookieListCallback& callback) override; 91 void GetAllCookiesAsync(const GetCookieListCallback& callback) override;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 145
141 private: 146 private:
142 std::string response_data_; 147 std::string response_data_;
143 148
144 DISALLOW_COPY_AND_ASSIGN(MockURLRequestDelegate); 149 DISALLOW_COPY_AND_ASSIGN(MockURLRequestDelegate);
145 }; 150 };
146 151
147 } // namespace headless 152 } // namespace headless
148 153
149 #endif // HEADLESS_PUBLIC_UTIL_TESTING_GENERIC_URL_REQUEST_MOCKS_H_ 154 #endif // HEADLESS_PUBLIC_UTIL_TESTING_GENERIC_URL_REQUEST_MOCKS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/cookies/cookies_unittest.cc ('k') | headless/public/util/testing/generic_url_request_mocks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698