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

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

Issue 13991017: Commit InvalidationService implementations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another attempt to fix Android Created 7 years, 7 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_frontend_test_template.cc
diff --git a/sync/notifier/invalidator_test_template.cc b/chrome/browser/invalidation/invalidation_frontend_test_template.cc
similarity index 56%
copy from sync/notifier/invalidator_test_template.cc
copy to chrome/browser/invalidation/invalidation_frontend_test_template.cc
index 7fc838547eba4f56fc59b96f84bc987dd7917a19..b4546238ad153f4b97a25b7d92ec01bade83f5ce 100644
--- a/sync/notifier/invalidator_test_template.cc
+++ b/chrome/browser/invalidation/invalidation_frontend_test_template.cc
@@ -1,28 +1,27 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 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 "sync/notifier/invalidator_test_template.h"
+#include "chrome/browser/invalidation/invalidation_frontend_test_template.h"
-namespace syncer {
namespace internal {
BoundFakeInvalidationHandler::BoundFakeInvalidationHandler(
- const Invalidator& invalidator)
+ const invalidation::InvalidationFrontend& invalidator)
: invalidator_(invalidator),
- last_retrieved_state_(DEFAULT_INVALIDATION_ERROR) {}
+ last_retrieved_state_(syncer::DEFAULT_INVALIDATION_ERROR) {}
BoundFakeInvalidationHandler::~BoundFakeInvalidationHandler() {}
-InvalidatorState BoundFakeInvalidationHandler::GetLastRetrievedState() const {
+syncer::InvalidatorState
+BoundFakeInvalidationHandler::GetLastRetrievedState() const {
return last_retrieved_state_;
}
void BoundFakeInvalidationHandler::OnInvalidatorStateChange(
- InvalidatorState state) {
+ syncer::InvalidatorState state) {
FakeInvalidationHandler::OnInvalidatorStateChange(state);
last_retrieved_state_ = invalidator_.GetInvalidatorState();
}
-} // namespace internal
-} // namespace syncer
+}

Powered by Google App Engine
This is Rietveld 408576698