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

Side by Side Diff: components/sync/test/mock_invalidation_tracker.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TEST_MOCK_INVALIDATION_TRACKER_H_ 5 #ifndef COMPONENTS_SYNC_TEST_MOCK_INVALIDATION_TRACKER_H_
6 #define SYNC_TEST_MOCK_INVALIDATION_TRACKER_H_ 6 #define COMPONENTS_SYNC_TEST_MOCK_INVALIDATION_TRACKER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 13
14 #include "sync/test/trackable_mock_invalidation.h" 14 #include "components/sync/test/trackable_mock_invalidation.h"
15 15
16 namespace syncer { 16 namespace syncer {
17 17
18 // Instantiates and track the acknowledgement state of 18 // Instantiates and track the acknowledgement state of
19 // TrackableMockInvalidations. 19 // TrackableMockInvalidations.
20 class MockInvalidationTracker { 20 class MockInvalidationTracker {
21 public: 21 public:
22 // Builers to return new TrackableMockInvalidations associated with this 22 // Builers to return new TrackableMockInvalidations associated with this
23 // object. 23 // object.
24 std::unique_ptr<TrackableMockInvalidation> IssueUnknownVersionInvalidation(); 24 std::unique_ptr<TrackableMockInvalidation> IssueUnknownVersionInvalidation();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Acknowledgements and drops are tracked by adding the IDs for the 58 // Acknowledgements and drops are tracked by adding the IDs for the
59 // acknowledged or dropped items to the proper set. An invalidation may be 59 // acknowledged or dropped items to the proper set. An invalidation may be
60 // both dropped and acknowledged if it represents the recovery from a drop 60 // both dropped and acknowledged if it represents the recovery from a drop
61 // event. 61 // event.
62 std::set<int> dropped_; 62 std::set<int> dropped_;
63 std::set<int> acknowledged_; 63 std::set<int> acknowledged_;
64 }; 64 };
65 65
66 } // namespace syncer 66 } // namespace syncer
67 67
68 #endif // SYNC_TEST_MOCK_INVALIDATION_TRACKER_H_ 68 #endif // COMPONENTS_SYNC_TEST_MOCK_INVALIDATION_TRACKER_H_
OLDNEW
« no previous file with comments | « components/sync/test/mock_invalidation.cc ('k') | components/sync/test/mock_invalidation_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698