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

Unified Diff: trunk/src/chrome/browser/invalidation/fake_invalidation_service.h

Issue 17610004: Revert 208315 "Make use of InvalidationService" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/chrome/browser/invalidation/fake_invalidation_service.h
===================================================================
--- trunk/src/chrome/browser/invalidation/fake_invalidation_service.h (revision 208346)
+++ trunk/src/chrome/browser/invalidation/fake_invalidation_service.h (working copy)
@@ -1,48 +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.
-
-#ifndef CHROME_BROWSER_INVALIDATION_FAKE_INVALIDATION_SERVICE_H_
-#define CHROME_BROWSER_INVALIDATION_FAKE_INVALIDATION_SERVICE_H_
-
-#include "chrome/browser/invalidation/invalidation_service.h"
-#include "sync/notifier/invalidator_registrar.h"
-
-namespace invalidation {
-
-// An InvalidationService that emits invalidations only when
-// its EmitInvalidationForTest method is called.
-class FakeInvalidationService : public InvalidationService {
- public:
- FakeInvalidationService();
- virtual ~FakeInvalidationService();
-
- virtual void RegisterInvalidationHandler(
- syncer::InvalidationHandler* handler) OVERRIDE;
- virtual void UpdateRegisteredInvalidationIds(
- syncer::InvalidationHandler* handler,
- const syncer::ObjectIdSet& ids) OVERRIDE;
- virtual void UnregisterInvalidationHandler(
- syncer::InvalidationHandler* handler) OVERRIDE;
-
- virtual void AcknowledgeInvalidation(
- const invalidation::ObjectId& id,
- const syncer::AckHandle& ack_handle) OVERRIDE;
-
- virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE;
- virtual std::string GetInvalidatorClientId() const OVERRIDE;
-
- void EmitInvalidationForTest(
- const invalidation::ObjectId& object_id,
- const std::string& payload);
-
- private:
- std::string client_id_;
- syncer::InvalidatorRegistrar invalidator_registrar_;
-
- DISALLOW_COPY_AND_ASSIGN(FakeInvalidationService);
-};
-
-} // namespace invalidation
-
-#endif // CHROME_BROWSER_INVALIDATION_FAKE_INVALIDATION_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698