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

Unified Diff: sync/notifier/mock_invalidation_state_tracker.h

Issue 10451060: sync: migrate invalidation state from syncable::Directory to InvalidationStorage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include order Created 8 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
« no previous file with comments | « sync/notifier/invalidation_state_tracker.h ('k') | sync/notifier/mock_invalidation_state_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/mock_invalidation_state_tracker.h
diff --git a/sync/notifier/mock_invalidation_state_tracker.h b/sync/notifier/mock_invalidation_state_tracker.h
new file mode 100644
index 0000000000000000000000000000000000000000..7bec961567bd2b6b635d09d787b28e39acb2c2da
--- /dev/null
+++ b/sync/notifier/mock_invalidation_state_tracker.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2012 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 SYNC_NOTIFIER_MOCK_INVALIDATION_STATE_TRACKER_H_
+#define SYNC_NOTIFIER_MOCK_INVALIDATION_STATE_TRACKER_H_
+
+#include "base/memory/weak_ptr.h"
+#include "sync/notifier/invalidation_state_tracker.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace sync_notifier {
+
+class MockInvalidationStateTracker
+ : public InvalidationStateTracker,
+ public base::SupportsWeakPtr<MockInvalidationStateTracker> {
+ public:
+ MockInvalidationStateTracker();
+ virtual ~MockInvalidationStateTracker();
+
+ MOCK_CONST_METHOD0(GetAllMaxVersions, InvalidationVersionMap());
+ MOCK_METHOD2(SetMaxVersion, void(syncable::ModelType, int64));
+ MOCK_CONST_METHOD0(GetInvalidationState, std::string());
+ MOCK_METHOD1(SetInvalidationState, void(const std::string&));
+};
+
+} // namespace sync_notifier
+
+#endif // SYNC_NOTIFIER_MOCK_INVALIDATION_STATE_TRACKER_H_
« no previous file with comments | « sync/notifier/invalidation_state_tracker.h ('k') | sync/notifier/mock_invalidation_state_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698