| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_COMMON_IPC_TEST_SINK_H_ | 5 #ifndef CHROME_COMMON_IPC_TEST_SINK_H_ |
| 6 #define CHROME_COMMON_IPC_TEST_SINK_H_ | 6 #define CHROME_COMMON_IPC_TEST_SINK_H_ |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "chrome/common/ipc_message.h" | 12 #include "ipc/ipc_message.h" |
| 13 | 13 |
| 14 namespace IPC { | 14 namespace IPC { |
| 15 | 15 |
| 16 // This test sink provides a "sink" for IPC messages that are sent. It allows | 16 // This test sink provides a "sink" for IPC messages that are sent. It allows |
| 17 // the caller to query messages received in various different ways. It is | 17 // the caller to query messages received in various different ways. It is |
| 18 // designed for tests for objects that use the IPC system. | 18 // designed for tests for objects that use the IPC system. |
| 19 // | 19 // |
| 20 // Typical usage: | 20 // Typical usage: |
| 21 // | 21 // |
| 22 // test_sink.ClearMessages(); | 22 // test_sink.ClearMessages(); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 private: | 75 private: |
| 76 // The actual list of received messages. | 76 // The actual list of received messages. |
| 77 std::vector<Message> messages_; | 77 std::vector<Message> messages_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(TestSink); | 79 DISALLOW_COPY_AND_ASSIGN(TestSink); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace IPC | 82 } // namespace IPC |
| 83 | 83 |
| 84 #endif // CHROME_COMMON_IPC_TEST_SINK_H_ | 84 #endif // CHROME_COMMON_IPC_TEST_SINK_H_ |
| OLD | NEW |