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

Unified Diff: chrome/browser/invalidation/invalidation_service_test_template.cc

Issue 255273002: First step towards invalidations componentization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/invalidation/invalidation_service_test_template.cc
diff --git a/chrome/browser/invalidation/invalidation_service_test_template.cc b/chrome/browser/invalidation/invalidation_service_test_template.cc
deleted file mode 100644
index 1b591e807e45b13ee4555063bcb5821ef89de528..0000000000000000000000000000000000000000
--- a/chrome/browser/invalidation/invalidation_service_test_template.cc
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2013 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 "chrome/browser/invalidation/invalidation_service_test_template.h"
-
-namespace internal {
-
-BoundFakeInvalidationHandler::BoundFakeInvalidationHandler(
- const invalidation::InvalidationService& invalidator)
- : invalidator_(invalidator),
- last_retrieved_state_(syncer::DEFAULT_INVALIDATION_ERROR) {}
-
-BoundFakeInvalidationHandler::~BoundFakeInvalidationHandler() {}
-
-syncer::InvalidatorState
-BoundFakeInvalidationHandler::GetLastRetrievedState() const {
- return last_retrieved_state_;
-}
-
-void BoundFakeInvalidationHandler::OnInvalidatorStateChange(
- syncer::InvalidatorState state) {
- FakeInvalidationHandler::OnInvalidatorStateChange(state);
- last_retrieved_state_ = invalidator_.GetInvalidatorState();
-}
-
-} // namespace internal

Powered by Google App Engine
This is Rietveld 408576698