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 #include "components/sync/test/trackable_mock_invalidation.h" | 5 #include "components/sync/test/trackable_mock_invalidation.h" |
6 | 6 |
7 #include <stdint.h> | |
8 | |
9 #include "components/sync/test/mock_invalidation_tracker.h" | 7 #include "components/sync/test/mock_invalidation_tracker.h" |
10 | 8 |
11 namespace syncer { | 9 namespace syncer { |
12 | 10 |
13 TrackableMockInvalidation::TrackableMockInvalidation( | 11 TrackableMockInvalidation::TrackableMockInvalidation( |
14 bool is_unknown_version, | 12 bool is_unknown_version, |
15 int64_t version, | 13 int64_t version, |
16 const std::string& payload, | 14 const std::string& payload, |
17 MockInvalidationTracker* tracker, | 15 MockInvalidationTracker* tracker, |
18 int tracking_id) | 16 int tracking_id) |
(...skipping 13 matching lines...) Expand all Loading... |
32 if (tracker_) { | 30 if (tracker_) { |
33 tracker_->Drop(tracking_id_); | 31 tracker_->Drop(tracking_id_); |
34 } | 32 } |
35 } | 33 } |
36 | 34 |
37 int TrackableMockInvalidation::GetTrackingId() { | 35 int TrackableMockInvalidation::GetTrackingId() { |
38 return tracking_id_; | 36 return tracking_id_; |
39 } | 37 } |
40 | 38 |
41 } // namespace syncer | 39 } // namespace syncer |
OLD | NEW |