Revert 215542 "[Telemetry] Add HTML output and make it the default."
[chromium-blink-merge.git] / sync / notifier / fake_invalidation_handler.cc
blob30cb2fd34958fa095ecd34dc0859414cf0db548f
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
3 // found in the LICENSE file.
5 #include "sync/notifier/fake_invalidation_handler.h"
7 namespace syncer {
9 FakeInvalidationHandler::FakeInvalidationHandler()
10 : state_(DEFAULT_INVALIDATION_ERROR),
11 invalidation_count_(0) {}
13 FakeInvalidationHandler::~FakeInvalidationHandler() {}
15 InvalidatorState FakeInvalidationHandler::GetInvalidatorState() const {
16 return state_;
19 const ObjectIdInvalidationMap&
20 FakeInvalidationHandler::GetLastInvalidationMap() const {
21 return last_invalidation_map_;
24 int FakeInvalidationHandler::GetInvalidationCount() const {
25 return invalidation_count_;
28 void FakeInvalidationHandler::OnInvalidatorStateChange(InvalidatorState state) {
29 state_ = state;
32 void FakeInvalidationHandler::OnIncomingInvalidation(
33 const ObjectIdInvalidationMap& invalidation_map) {
34 last_invalidation_map_ = invalidation_map;
35 ++invalidation_count_;
38 } // namespace syncer