| 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 "sync/notifier/fake_invalidation_handler.h" | 5 #include "components/invalidation/fake_invalidation_handler.h" |
| 6 | 6 |
| 7 namespace syncer { | 7 namespace syncer { |
| 8 | 8 |
| 9 FakeInvalidationHandler::FakeInvalidationHandler() | 9 FakeInvalidationHandler::FakeInvalidationHandler() |
| 10 : state_(DEFAULT_INVALIDATION_ERROR), | 10 : state_(DEFAULT_INVALIDATION_ERROR), |
| 11 invalidation_count_(0) {} | 11 invalidation_count_(0) {} |
| 12 | 12 |
| 13 FakeInvalidationHandler::~FakeInvalidationHandler() {} | 13 FakeInvalidationHandler::~FakeInvalidationHandler() {} |
| 14 | 14 |
| 15 InvalidatorState FakeInvalidationHandler::GetInvalidatorState() const { | 15 InvalidatorState FakeInvalidationHandler::GetInvalidatorState() const { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 void FakeInvalidationHandler::OnIncomingInvalidation( | 32 void FakeInvalidationHandler::OnIncomingInvalidation( |
| 33 const ObjectIdInvalidationMap& invalidation_map) { | 33 const ObjectIdInvalidationMap& invalidation_map) { |
| 34 last_invalidation_map_ = invalidation_map; | 34 last_invalidation_map_ = invalidation_map; |
| 35 ++invalidation_count_; | 35 ++invalidation_count_; |
| 36 } | 36 } |
| 37 | 37 |
| 38 std::string FakeInvalidationHandler::GetOwnerName() const { return "Fake"; } | 38 std::string FakeInvalidationHandler::GetOwnerName() const { return "Fake"; } |
| 39 | 39 |
| 40 } // namespace syncer | 40 } // namespace syncer |
| OLD | NEW |