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

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: Fix PrerenderCookieStore build Created 6 years, 1 month 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
« no previous file with comments | « net/cookies/cookie_store_test_helpers.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ADD_FAILURE();
235 return scoped_ptr<CookieChangedSubscription>();
236 }
237
231 const std::vector<Entry>& entries() const { return entries_; } 238 const std::vector<Entry>& entries() const { return entries_; }
232 239
233 private: 240 private:
234 friend class base::RefCountedThreadSafe<MockCookieStore>; 241 friend class base::RefCountedThreadSafe<MockCookieStore>;
235 ~MockCookieStore() override {} 242 ~MockCookieStore() override {}
236 243
237 std::vector<Entry> entries_; 244 std::vector<Entry> entries_;
238 }; 245 };
239 246
240 class MockSSLConfigService : public SSLConfigService { 247 class MockSSLConfigService : public SSLConfigService {
(...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 job()->Connect(); 1278 job()->Connect();
1272 SetDeleteNext(); 1279 SetDeleteNext();
1273 job()->OnReceivedData( 1280 job()->OnReceivedData(
1274 socket_.get(), kMinimalResponse, arraysize(kMinimalResponse) - 1); 1281 socket_.get(), kMinimalResponse, arraysize(kMinimalResponse) - 1);
1275 EXPECT_FALSE(job()); 1282 EXPECT_FALSE(job());
1276 } 1283 }
1277 1284
1278 // TODO(toyoshim): Add tests to verify throttling, SPDY stream limitation. 1285 // TODO(toyoshim): Add tests to verify throttling, SPDY stream limitation.
1279 // TODO(toyoshim,yutak): Add tests to verify closing handshake. 1286 // TODO(toyoshim,yutak): Add tests to verify closing handshake.
1280 } // namespace net 1287 } // namespace net
OLDNEW
« no previous file with comments | « 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