Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1261)

Side by Side Diff: components/invalidation/invalidator_test_template.cc

Issue 308413002: Revert of Move some sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #include "components/invalidation/invalidator_test_template.h"
6
7 namespace syncer {
8 namespace internal {
9
10 BoundFakeInvalidationHandler::BoundFakeInvalidationHandler(
11 const Invalidator& invalidator)
12 : invalidator_(invalidator),
13 last_retrieved_state_(DEFAULT_INVALIDATION_ERROR) {}
14
15 BoundFakeInvalidationHandler::~BoundFakeInvalidationHandler() {}
16
17 InvalidatorState BoundFakeInvalidationHandler::GetLastRetrievedState() const {
18 return last_retrieved_state_;
19 }
20
21 void BoundFakeInvalidationHandler::OnInvalidatorStateChange(
22 InvalidatorState state) {
23 FakeInvalidationHandler::OnInvalidatorStateChange(state);
24 last_retrieved_state_ = invalidator_.GetInvalidatorState();
25 }
26
27 } // namespace internal
28 } // namespace syncer
OLDNEW
« no previous file with comments | « components/invalidation/invalidator_test_template.h ('k') | components/invalidation/non_blocking_invalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698