OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 IPC_IPC_TEST_SINK_H_ | 5 #ifndef IPC_IPC_TEST_SINK_H_ |
6 #define IPC_IPC_TEST_SINK_H_ | 6 #define IPC_IPC_TEST_SINK_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/macros.h" |
14 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
15 #include "ipc/ipc_channel.h" | 16 #include "ipc/ipc_channel.h" |
16 | 17 |
17 namespace IPC { | 18 namespace IPC { |
18 | 19 |
19 class Message; | 20 class Message; |
20 | 21 |
21 // This test sink provides a "sink" for IPC messages that are sent. It allows | 22 // This test sink provides a "sink" for IPC messages that are sent. It allows |
22 // the caller to query messages received in various different ways. It is | 23 // the caller to query messages received in various different ways. It is |
23 // designed for tests for objects that use the IPC system. | 24 // designed for tests for objects that use the IPC system. |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // The actual list of received messages. | 132 // The actual list of received messages. |
132 std::vector<Message> messages_; | 133 std::vector<Message> messages_; |
133 base::ObserverList<Listener> filter_list_; | 134 base::ObserverList<Listener> filter_list_; |
134 | 135 |
135 DISALLOW_COPY_AND_ASSIGN(TestSink); | 136 DISALLOW_COPY_AND_ASSIGN(TestSink); |
136 }; | 137 }; |
137 | 138 |
138 } // namespace IPC | 139 } // namespace IPC |
139 | 140 |
140 #endif // IPC_IPC_TEST_SINK_H_ | 141 #endif // IPC_IPC_TEST_SINK_H_ |
OLD | NEW |