OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "sync/notifier/mock_ack_handler.h" | 5 #include "components/invalidation/mock_ack_handler.h" |
6 | 6 |
7 #include "sync/internal_api/public/base/ack_handle.h" | 7 #include "sync/internal_api/public/base/ack_handle.h" |
8 #include "sync/internal_api/public/base/invalidation.h" | 8 #include "sync/internal_api/public/base/invalidation.h" |
9 | 9 |
10 namespace syncer { | 10 namespace syncer { |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 struct AckHandleMatcher { | 14 struct AckHandleMatcher { |
15 AckHandleMatcher(const AckHandle& handle); | 15 AckHandleMatcher(const AckHandle& handle); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 } | 114 } |
115 unrecovered_drop_events_.erase(id); | 115 unrecovered_drop_events_.erase(id); |
116 unrecovered_drop_events_.insert(std::make_pair(id, handle)); | 116 unrecovered_drop_events_.insert(std::make_pair(id, handle)); |
117 } | 117 } |
118 | 118 |
119 WeakHandle<AckHandler> MockAckHandler::WeakHandleThis() { | 119 WeakHandle<AckHandler> MockAckHandler::WeakHandleThis() { |
120 return WeakHandle<AckHandler>(AsWeakPtr()); | 120 return WeakHandle<AckHandler>(AsWeakPtr()); |
121 } | 121 } |
122 | 122 |
123 } // namespace syncer | 123 } // namespace syncer |
OLD | NEW |