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

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

Issue 1191393008: Introduce a layering in the invalidation component as public and impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicitly forbid content to prevent future additions Created 5 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
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 "components/invalidation/invalidation_logger.h" 5 #include "components/invalidation/impl/invalidation_logger.h"
6 #include "components/invalidation/invalidation_logger_observer.h" 6 #include "components/invalidation/impl/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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 276
277 observer_test.ResetStates(); 277 observer_test.ResetStates();
278 log.OnUnregistration(std::string("FakeHandler2")); 278 log.OnUnregistration(std::string("FakeHandler2"));
279 test_multiset.erase("FakeHandler2"); 279 test_multiset.erase("FakeHandler2");
280 EXPECT_TRUE(observer_test.registration_change_received); 280 EXPECT_TRUE(observer_test.registration_change_received);
281 EXPECT_EQ(observer_test.registered_handlers, test_multiset); 281 EXPECT_EQ(observer_test.registered_handlers, test_multiset);
282 282
283 log.UnregisterObserver(&observer_test); 283 log.UnregisterObserver(&observer_test);
284 } 284 }
285 } // namespace invalidation 285 } // namespace invalidation
OLDNEW
« no previous file with comments | « components/invalidation/impl/invalidation_logger_observer.h ('k') | components/invalidation/impl/invalidation_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698