Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / invalidation / invalidation_service_test_template.cc
blob1b591e807e45b13ee4555063bcb5821ef89de528
1 // Copyright 2013 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 "chrome/browser/invalidation/invalidation_service_test_template.h"
7 namespace internal {
9 BoundFakeInvalidationHandler::BoundFakeInvalidationHandler(
10 const invalidation::InvalidationService& invalidator)
11 : invalidator_(invalidator),
12 last_retrieved_state_(syncer::DEFAULT_INVALIDATION_ERROR) {}
14 BoundFakeInvalidationHandler::~BoundFakeInvalidationHandler() {}
16 syncer::InvalidatorState
17 BoundFakeInvalidationHandler::GetLastRetrievedState() const {
18 return last_retrieved_state_;
21 void BoundFakeInvalidationHandler::OnInvalidatorStateChange(
22 syncer::InvalidatorState state) {
23 FakeInvalidationHandler::OnInvalidatorStateChange(state);
24 last_retrieved_state_ = invalidator_.GetInvalidatorState();
27 } // namespace internal