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

Unified Diff: components/invalidation/fake_invalidation_handler.h

Issue 1191393008: Introduce a layering in the invalidation component as public and impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicitly forbid content to prevent future additions Created 5 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: components/invalidation/fake_invalidation_handler.h
diff --git a/components/invalidation/fake_invalidation_handler.h b/components/invalidation/fake_invalidation_handler.h
deleted file mode 100644
index 8ba2009c526f49b91bdaa892109433a7af6f5648..0000000000000000000000000000000000000000
--- a/components/invalidation/fake_invalidation_handler.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2014 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 COMPONENTS_INVALIDATION_FAKE_INVALIDATION_HANDLER_H_
-#define COMPONENTS_INVALIDATION_FAKE_INVALIDATION_HANDLER_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "components/invalidation/invalidation_handler.h"
-#include "components/invalidation/object_id_invalidation_map.h"
-
-namespace syncer {
-
-class FakeInvalidationHandler : public InvalidationHandler {
- public:
- FakeInvalidationHandler();
- ~FakeInvalidationHandler() override;
-
- InvalidatorState GetInvalidatorState() const;
- const ObjectIdInvalidationMap& GetLastInvalidationMap() const;
- int GetInvalidationCount() const;
-
- // InvalidationHandler implementation.
- void OnInvalidatorStateChange(InvalidatorState state) override;
- void OnIncomingInvalidation(
- const ObjectIdInvalidationMap& invalidation_map) override;
- std::string GetOwnerName() const override;
-
- private:
- InvalidatorState state_;
- ObjectIdInvalidationMap last_invalidation_map_;
- int invalidation_count_;
-
- DISALLOW_COPY_AND_ASSIGN(FakeInvalidationHandler);
-};
-
-} // namespace syncer
-
-#endif // COMPONENTS_INVALIDATION_FAKE_INVALIDATION_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698