| Index: sync/notifier/invalidator_test_template.cc
|
| diff --git a/sync/notifier/invalidator_test_template.cc b/sync/notifier/invalidator_test_template.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7fc838547eba4f56fc59b96f84bc987dd7917a19
|
| --- /dev/null
|
| +++ b/sync/notifier/invalidator_test_template.cc
|
| @@ -0,0 +1,28 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "sync/notifier/invalidator_test_template.h"
|
| +
|
| +namespace syncer {
|
| +namespace internal {
|
| +
|
| +BoundFakeInvalidationHandler::BoundFakeInvalidationHandler(
|
| + const Invalidator& invalidator)
|
| + : invalidator_(invalidator),
|
| + last_retrieved_state_(DEFAULT_INVALIDATION_ERROR) {}
|
| +
|
| +BoundFakeInvalidationHandler::~BoundFakeInvalidationHandler() {}
|
| +
|
| +InvalidatorState BoundFakeInvalidationHandler::GetLastRetrievedState() const {
|
| + return last_retrieved_state_;
|
| +}
|
| +
|
| +void BoundFakeInvalidationHandler::OnInvalidatorStateChange(
|
| + InvalidatorState state) {
|
| + FakeInvalidationHandler::OnInvalidatorStateChange(state);
|
| + last_retrieved_state_ = invalidator_.GetInvalidatorState();
|
| +}
|
| +
|
| +} // namespace internal
|
| +} // namespace syncer
|
|
|