OLD | NEW |
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_TRACKABLE_MOCK_INVALIDATION_H_ | 5 #ifndef COMPONENTS_SYNC_TEST_TRACKABLE_MOCK_INVALIDATION_H_ |
6 #define SYNC_TEST_TRACKABLE_MOCK_INVALIDATION_H_ | 6 #define COMPONENTS_SYNC_TEST_TRACKABLE_MOCK_INVALIDATION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "sync/test/mock_invalidation.h" | 12 #include "components/sync/test/mock_invalidation.h" |
13 | 13 |
14 namespace syncer { | 14 namespace syncer { |
15 | 15 |
16 class MockInvalidationTracker; | 16 class MockInvalidationTracker; |
17 | 17 |
18 // A variant of MockInvalidation that supports acknowledgements. | 18 // A variant of MockInvalidation that supports acknowledgements. |
19 // | 19 // |
20 // With the help of a MockInvalidationTracker, this can be used to test | 20 // With the help of a MockInvalidationTracker, this can be used to test |
21 // sync's use of the Drop() and Acknowledge() methods. | 21 // sync's use of the Drop() and Acknowledge() methods. |
22 class TrackableMockInvalidation : public MockInvalidation { | 22 class TrackableMockInvalidation : public MockInvalidation { |
(...skipping 25 matching lines...) Expand all Loading... |
48 // |tracker_|. | 48 // |tracker_|. |
49 // | 49 // |
50 // This is necessary in part because invalidations may be short lived; the | 50 // This is necessary in part because invalidations may be short lived; the |
51 // invalidation may be deleted by the time we want to make assertions about | 51 // invalidation may be deleted by the time we want to make assertions about |
52 // its state. | 52 // its state. |
53 int tracking_id_; | 53 int tracking_id_; |
54 }; | 54 }; |
55 | 55 |
56 } // namespace syncer | 56 } // namespace syncer |
57 | 57 |
58 #endif // SYNC_TEST_TRACKABLE_MOCK_INVALIDATION_H_ | 58 #endif // COMPONENTS_SYNC_TEST_TRACKABLE_MOCK_INVALIDATION_H_ |
OLD | NEW |