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

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

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

Powered by Google App Engine
This is Rietveld 408576698