OLD | NEW |
| (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_ | |
OLD | NEW |