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

Side by Side Diff: components/invalidation/invalidation_logger_unittest.cc

Issue 255273002: First step towards invalidations componentization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix merge conflict Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/invalidation/invalidation_logger.h" 5 #include "components/invalidation/invalidation_logger.h"
6 #include "chrome/browser/invalidation/invalidation_logger_observer.h" 6 #include "components/invalidation/invalidation_logger_observer.h"
7 7
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace invalidation { 10 namespace invalidation {
11 11
12 class InvalidationLoggerObserverTest : public InvalidationLoggerObserver { 12 class InvalidationLoggerObserverTest : public InvalidationLoggerObserver {
13 public: 13 public:
14 InvalidationLoggerObserverTest() { ResetStates(); } 14 InvalidationLoggerObserverTest() { ResetStates(); }
15 15
16 void ResetStates() { 16 void ResetStates() {
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 277
278 observer_test.ResetStates(); 278 observer_test.ResetStates();
279 log.OnUnregistration(std::string("FakeHandler2")); 279 log.OnUnregistration(std::string("FakeHandler2"));
280 test_multiset.erase("FakeHandler2"); 280 test_multiset.erase("FakeHandler2");
281 EXPECT_TRUE(observer_test.registration_change_received); 281 EXPECT_TRUE(observer_test.registration_change_received);
282 EXPECT_EQ(observer_test.registered_handlers, test_multiset); 282 EXPECT_EQ(observer_test.registered_handlers, test_multiset);
283 283
284 log.UnregisterObserver(&observer_test); 284 log.UnregisterObserver(&observer_test);
285 } 285 }
286 } // namespace invalidation 286 } // namespace invalidation
OLDNEW
« no previous file with comments | « components/invalidation/invalidation_logger_observer.h ('k') | components/invalidation/invalidation_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698