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

Side by Side Diff: ipc/ipc_channel_proxy_unittest_messages.h

Issue 1659003003: IPC::Message -> base::Pickle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more mac fix Created 4 years, 10 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 | « ipc/handle_win.cc ('k') | ipc/ipc_message.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 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 #include "ipc/ipc_message_macros.h" 5 #include "ipc/ipc_message_macros.h"
6 6
7 // Singly-included section for enums and custom IPC traits. 7 // Singly-included section for enums and custom IPC traits.
8 #ifndef IPC_CHANNEL_PROXY_UNITTEST_MESSAGES_H_ 8 #ifndef IPC_CHANNEL_PROXY_UNITTEST_MESSAGES_H_
9 #define IPC_CHANNEL_PROXY_UNITTEST_MESSAGES_H_ 9 #define IPC_CHANNEL_PROXY_UNITTEST_MESSAGES_H_
10 10
11 class BadType { 11 class BadType {
12 public: 12 public:
13 BadType() {} 13 BadType() {}
14 }; 14 };
15 15
16 namespace IPC { 16 namespace IPC {
17 17
18 template <> 18 template <>
19 struct ParamTraits<BadType> { 19 struct ParamTraits<BadType> {
20 static void Write(Message* m, const BadType& p) {} 20 static void Write(base::Pickle* m, const BadType& p) {}
21 static bool Read(const Message* m, base::PickleIterator* iter, BadType* r) { 21 static bool Read(const base::Pickle* m,
22 base::PickleIterator* iter,
23 BadType* r) {
22 return false; 24 return false;
23 } 25 }
24 static void Log(const BadType& p, std::string* l) {} 26 static void Log(const BadType& p, std::string* l) {}
25 }; 27 };
26 28
27 } 29 }
28 30
29 #endif // IPC_CHANNEL_PROXY_UNITTEST_MESSAGES_H_ 31 #endif // IPC_CHANNEL_PROXY_UNITTEST_MESSAGES_H_
30 32
31 33
32 #define IPC_MESSAGE_START TestMsgStart 34 #define IPC_MESSAGE_START TestMsgStart
33 IPC_MESSAGE_CONTROL0(TestMsg_Bounce) 35 IPC_MESSAGE_CONTROL0(TestMsg_Bounce)
34 IPC_MESSAGE_CONTROL0(TestMsg_SendBadMessage) 36 IPC_MESSAGE_CONTROL0(TestMsg_SendBadMessage)
35 IPC_MESSAGE_CONTROL1(TestMsg_BadMessage, BadType) 37 IPC_MESSAGE_CONTROL1(TestMsg_BadMessage, BadType)
36 38
37 #undef IPC_MESSAGE_START 39 #undef IPC_MESSAGE_START
38 #define IPC_MESSAGE_START UtilityMsgStart 40 #define IPC_MESSAGE_START UtilityMsgStart
39 IPC_MESSAGE_CONTROL0(UtilityMsg_Bounce) 41 IPC_MESSAGE_CONTROL0(UtilityMsg_Bounce)
40 42
41 #undef IPC_MESSAGE_START 43 #undef IPC_MESSAGE_START
42 #define IPC_MESSAGE_START WorkerMsgStart 44 #define IPC_MESSAGE_START WorkerMsgStart
43 IPC_MESSAGE_CONTROL0(WorkerMsg_Bounce) 45 IPC_MESSAGE_CONTROL0(WorkerMsg_Bounce)
44 IPC_MESSAGE_CONTROL0(WorkerMsg_Quit) 46 IPC_MESSAGE_CONTROL0(WorkerMsg_Quit)
OLDNEW
« no previous file with comments | « ipc/handle_win.cc ('k') | ipc/ipc_message.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698