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

Side by Side Diff: sync/notifier/mock_invalidation_state_tracker.h

Issue 10827133: [Sync] Rework unit tests for ChromeInvalidationClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SYNC_NOTIFIER_MOCK_INVALIDATION_STATE_TRACKER_H_
6 #define SYNC_NOTIFIER_MOCK_INVALIDATION_STATE_TRACKER_H_
7
8 #include "base/memory/weak_ptr.h"
9 #include "sync/notifier/invalidation_state_tracker.h"
10 #include "testing/gmock/include/gmock/gmock.h"
11
12 namespace syncer {
13
14 class MockInvalidationStateTracker
15 : public InvalidationStateTracker,
16 public base::SupportsWeakPtr<MockInvalidationStateTracker> {
17 public:
18 MockInvalidationStateTracker();
19 virtual ~MockInvalidationStateTracker();
20
21 MOCK_CONST_METHOD0(GetAllMaxVersions, InvalidationVersionMap());
22 MOCK_METHOD2(SetMaxVersion, void(const invalidation::ObjectId&, int64));
23 MOCK_CONST_METHOD0(GetInvalidationState, std::string());
24 MOCK_METHOD1(SetInvalidationState, void(const std::string&));
25 };
26
27 } // namespace syncer
28
29 #endif // SYNC_NOTIFIER_MOCK_INVALIDATION_STATE_TRACKER_H_
OLDNEW
« no previous file with comments | « sync/notifier/invalidation_notifier_unittest.cc ('k') | sync/notifier/mock_invalidation_state_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698