| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |