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

Side by Side Diff: components/invalidation/impl/mock_ack_handler.h

Issue 1191393008: Introduce a layering in the invalidation component as public and impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicitly forbid content to prevent future additions Created 5 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
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 COMPONENTS_INVALIDATION_MOCK_ACK_HANDLER_H_ 5 #ifndef COMPONENTS_INVALIDATION_IMPL_MOCK_ACK_HANDLER_H_
6 #define COMPONENTS_INVALIDATION_MOCK_ACK_HANDLER_H_ 6 #define COMPONENTS_INVALIDATION_IMPL_MOCK_ACK_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "components/invalidation/ack_handler.h" 13 #include "components/invalidation/public/ack_handler.h"
14 #include "components/invalidation/invalidation_export.h" 14 #include "components/invalidation/public/invalidation_export.h"
15 #include "components/invalidation/invalidation_util.h" 15 #include "components/invalidation/public/invalidation_util.h"
16 16
17 namespace syncer { 17 namespace syncer {
18 18
19 class Invalidation; 19 class Invalidation;
20 20
21 // This AckHandler implementation colaborates with the FakeInvalidationService 21 // This AckHandler implementation colaborates with the FakeInvalidationService
22 // to enable unit tests to assert that invalidations are being acked properly. 22 // to enable unit tests to assert that invalidations are being acked properly.
23 class INVALIDATION_EXPORT MockAckHandler 23 class INVALIDATION_EXPORT MockAckHandler
24 : public AckHandler, 24 : public AckHandler,
25 public base::SupportsWeakPtr<MockAckHandler> { 25 public base::SupportsWeakPtr<MockAckHandler> {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 InvalidationVector unsent_invalidations_; 67 InvalidationVector unsent_invalidations_;
68 InvalidationVector unacked_invalidations_; 68 InvalidationVector unacked_invalidations_;
69 InvalidationVector acked_invalidations_; 69 InvalidationVector acked_invalidations_;
70 InvalidationVector dropped_invalidations_; 70 InvalidationVector dropped_invalidations_;
71 71
72 IdHandleMap unrecovered_drop_events_; 72 IdHandleMap unrecovered_drop_events_;
73 }; 73 };
74 74
75 } // namespace syncer 75 } // namespace syncer
76 76
77 #endif // COMPONENTS_INVALIDATION_MOCK_ACK_HANDLER_H_ 77 #endif // COMPONENTS_INVALIDATION_IMPL_MOCK_ACK_HANDLER_H_
OLDNEW
« no previous file with comments | « components/invalidation/impl/invalidator_test_template.cc ('k') | components/invalidation/impl/mock_ack_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698