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

Side by Side Diff: sync/notifier/invalidator_registrar_unittest.cc

Issue 56113003: Implement new invalidations ack tracking system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modify drive TODO comment + rebase Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « sync/notifier/invalidator.h ('k') | sync/notifier/invalidator_test_template.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "google/cacheinvalidation/types.pb.h" 8 #include "google/cacheinvalidation/types.pb.h"
9 #include "sync/notifier/fake_invalidation_handler.h" 9 #include "sync/notifier/fake_invalidation_handler.h"
10 #include "sync/notifier/invalidator_registrar.h" 10 #include "sync/notifier/invalidator_registrar.h"
(...skipping 24 matching lines...) Expand all
35 35
36 virtual void UpdateRegisteredIds(InvalidationHandler* handler, 36 virtual void UpdateRegisteredIds(InvalidationHandler* handler,
37 const ObjectIdSet& ids) OVERRIDE { 37 const ObjectIdSet& ids) OVERRIDE {
38 registrar_.UpdateRegisteredIds(handler, ids); 38 registrar_.UpdateRegisteredIds(handler, ids);
39 } 39 }
40 40
41 virtual void UnregisterHandler(InvalidationHandler* handler) OVERRIDE { 41 virtual void UnregisterHandler(InvalidationHandler* handler) OVERRIDE {
42 registrar_.UnregisterHandler(handler); 42 registrar_.UnregisterHandler(handler);
43 } 43 }
44 44
45 virtual void Acknowledge(const invalidation::ObjectId& id,
46 const AckHandle& ack_handle) OVERRIDE {
47 // Do nothing.
48 }
49
50 virtual InvalidatorState GetInvalidatorState() const OVERRIDE { 45 virtual InvalidatorState GetInvalidatorState() const OVERRIDE {
51 return registrar_.GetInvalidatorState(); 46 return registrar_.GetInvalidatorState();
52 } 47 }
53 48
54 virtual void UpdateCredentials( 49 virtual void UpdateCredentials(
55 const std::string& email, const std::string& token) OVERRIDE { 50 const std::string& email, const std::string& token) OVERRIDE {
56 // Do nothing. 51 // Do nothing.
57 } 52 }
58 53
59 private: 54 private:
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 EXPECT_DEATH({ registrar.UpdateRegisteredIds(&handler2, ids); }, ""); 149 EXPECT_DEATH({ registrar.UpdateRegisteredIds(&handler2, ids); }, "");
155 150
156 registrar.UnregisterHandler(&handler2); 151 registrar.UnregisterHandler(&handler2);
157 registrar.UnregisterHandler(&handler1); 152 registrar.UnregisterHandler(&handler1);
158 } 153 }
159 #endif // GTEST_HAS_DEATH_TEST 154 #endif // GTEST_HAS_DEATH_TEST
160 155
161 } // namespace 156 } // namespace
162 157
163 } // namespace syncer 158 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/notifier/invalidator.h ('k') | sync/notifier/invalidator_test_template.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698