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

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

Issue 15580002: Make use of InvalidationService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 5 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
« no previous file with comments | « sync/notifier/invalidator_registrar.cc ('k') | sync/notifier/non_blocking_invalidator.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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 virtual InvalidatorState GetInvalidatorState() const OVERRIDE { 51 virtual InvalidatorState GetInvalidatorState() const OVERRIDE {
52 return registrar_.GetInvalidatorState(); 52 return registrar_.GetInvalidatorState();
53 } 53 }
54 54
55 virtual void UpdateCredentials( 55 virtual void UpdateCredentials(
56 const std::string& email, const std::string& token) OVERRIDE { 56 const std::string& email, const std::string& token) OVERRIDE {
57 // Do nothing. 57 // Do nothing.
58 } 58 }
59 59
60 virtual void SendInvalidation(
61 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE {
62 // Do nothing.
63 }
64
65 private: 60 private:
66 InvalidatorRegistrar registrar_; 61 InvalidatorRegistrar registrar_;
67 62
68 DISALLOW_COPY_AND_ASSIGN(RegistrarInvalidator); 63 DISALLOW_COPY_AND_ASSIGN(RegistrarInvalidator);
69 }; 64 };
70 65
71 class RegistrarInvalidatorTestDelegate { 66 class RegistrarInvalidatorTestDelegate {
72 public: 67 public:
73 RegistrarInvalidatorTestDelegate() {} 68 RegistrarInvalidatorTestDelegate() {}
74 69
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 EXPECT_DEATH({ registrar.UpdateRegisteredIds(&handler2, ids); }, ""); 155 EXPECT_DEATH({ registrar.UpdateRegisteredIds(&handler2, ids); }, "");
161 156
162 registrar.UnregisterHandler(&handler2); 157 registrar.UnregisterHandler(&handler2);
163 registrar.UnregisterHandler(&handler1); 158 registrar.UnregisterHandler(&handler1);
164 } 159 }
165 #endif // GTEST_HAS_DEATH_TEST 160 #endif // GTEST_HAS_DEATH_TEST
166 161
167 } // namespace 162 } // namespace
168 163
169 } // namespace syncer 164 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/notifier/invalidator_registrar.cc ('k') | sync/notifier/non_blocking_invalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698