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

Side by Side Diff: net/websockets/websocket_job_spdy2_unittest.cc

Issue 9959011: Add CookieStore::DeleteSessionCookiesAsync method. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased again Created 8 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "net/websockets/websocket_job.h" 5 #include "net/websockets/websocket_job.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 virtual void DeleteCookieAsync(const GURL& url, 214 virtual void DeleteCookieAsync(const GURL& url,
215 const std::string& cookie_name, 215 const std::string& cookie_name,
216 const base::Closure& callback) { 216 const base::Closure& callback) {
217 ADD_FAILURE(); 217 ADD_FAILURE();
218 } 218 }
219 virtual void DeleteAllCreatedBetweenAsync(const base::Time& delete_begin, 219 virtual void DeleteAllCreatedBetweenAsync(const base::Time& delete_begin,
220 const base::Time& delete_end, 220 const base::Time& delete_end,
221 const DeleteCallback& callback) { 221 const DeleteCallback& callback) {
222 ADD_FAILURE(); 222 ADD_FAILURE();
223 } 223 }
224 virtual void DeleteSessionCookiesAsync(const DeleteCallback&) {
225 ADD_FAILURE();
226 }
224 227
225 virtual net::CookieMonster* GetCookieMonster() { return NULL; } 228 virtual net::CookieMonster* GetCookieMonster() { return NULL; }
226 229
227 const std::vector<Entry>& entries() const { return entries_; } 230 const std::vector<Entry>& entries() const { return entries_; }
228 231
229 private: 232 private:
230 friend class base::RefCountedThreadSafe<MockCookieStore>; 233 friend class base::RefCountedThreadSafe<MockCookieStore>;
231 virtual ~MockCookieStore() {} 234 virtual ~MockCookieStore() {}
232 235
233 std::vector<Entry> entries_; 236 std::vector<Entry> entries_;
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 1097
1095 TEST_F(WebSocketJobSpdy2Test, ThrottlingSpdySpdyEnabled) { 1098 TEST_F(WebSocketJobSpdy2Test, ThrottlingSpdySpdyEnabled) {
1096 WebSocketJob::set_websocket_over_spdy_enabled(true); 1099 WebSocketJob::set_websocket_over_spdy_enabled(true);
1097 TestConnectBySpdy(SPDY_ON, THROTTLING_ON); 1100 TestConnectBySpdy(SPDY_ON, THROTTLING_ON);
1098 } 1101 }
1099 1102
1100 // TODO(toyoshim): Add tests to verify throttling, SPDY stream limitation. 1103 // TODO(toyoshim): Add tests to verify throttling, SPDY stream limitation.
1101 // TODO(toyoshim,yutak): Add tests to verify closing handshake. 1104 // TODO(toyoshim,yutak): Add tests to verify closing handshake.
1102 1105
1103 } // namespace net 1106 } // namespace net
OLDNEW
« no previous file with comments | « net/cookies/cookie_store_test_helpers.cc ('k') | net/websockets/websocket_job_spdy3_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698