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

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

Issue 676073003: Add AddCallbackForCookie method to CookieStore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 const DeleteCallback& callback) override { 221 const DeleteCallback& callback) override {
222 ADD_FAILURE(); 222 ADD_FAILURE();
223 } 223 }
224 224
225 void DeleteSessionCookiesAsync(const DeleteCallback&) override { 225 void DeleteSessionCookiesAsync(const DeleteCallback&) override {
226 ADD_FAILURE(); 226 ADD_FAILURE();
227 } 227 }
228 228
229 CookieMonster* GetCookieMonster() override { return NULL; } 229 CookieMonster* GetCookieMonster() override { return NULL; }
230 230
231 scoped_ptr<CookieStore::CookieChangedSubscription>
232 AddCallbackForCookie(const GURL& url, const std::string& name,
233 const CookieChangedCallback& callback) override {
234 return scoped_ptr<CookieChangedSubscription>();
erikwright (departed) 2014/10/24 20:11:10 ADD_FAILURE()
235 }
236
231 const std::vector<Entry>& entries() const { return entries_; } 237 const std::vector<Entry>& entries() const { return entries_; }
232 238
233 private: 239 private:
234 friend class base::RefCountedThreadSafe<MockCookieStore>; 240 friend class base::RefCountedThreadSafe<MockCookieStore>;
235 ~MockCookieStore() override {} 241 ~MockCookieStore() override {}
236 242
237 std::vector<Entry> entries_; 243 std::vector<Entry> entries_;
238 }; 244 };
239 245
240 class MockSSLConfigService : public SSLConfigService { 246 class MockSSLConfigService : public SSLConfigService {
(...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 job()->Connect(); 1277 job()->Connect();
1272 SetDeleteNext(); 1278 SetDeleteNext();
1273 job()->OnReceivedData( 1279 job()->OnReceivedData(
1274 socket_.get(), kMinimalResponse, arraysize(kMinimalResponse) - 1); 1280 socket_.get(), kMinimalResponse, arraysize(kMinimalResponse) - 1);
1275 EXPECT_FALSE(job()); 1281 EXPECT_FALSE(job());
1276 } 1282 }
1277 1283
1278 // TODO(toyoshim): Add tests to verify throttling, SPDY stream limitation. 1284 // TODO(toyoshim): Add tests to verify throttling, SPDY stream limitation.
1279 // TODO(toyoshim,yutak): Add tests to verify closing handshake. 1285 // TODO(toyoshim,yutak): Add tests to verify closing handshake.
1280 } // namespace net 1286 } // namespace net
OLDNEW
« net/cookies/cookie_store_test_helpers.cc ('K') | « net/cookies/cookie_store_test_helpers.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698