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

Side by Side Diff: chrome/common/ipc_test_sink.h

Issue 155905: Separates ipc code from common (http://crbug.com/16829) (Closed)
Patch Set: Fixes reference to 'common_message_traits' it's actually 'common_param_traits' Created 11 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
« no previous file with comments | « chrome/common/ipc_sync_message_unittest.cc ('k') | chrome/common/ipc_tests.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/common/ipc_sync_message_unittest.cc ('k') | chrome/common/ipc_tests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698