summaryrefslogtreecommitdiffstats
path: root/ipc/ipdl/test/cxx/IPDLUnitTestUtils.h
blob: a5d23456545e94ca9af6df33f7ad57b49f4d0245 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef mozilla__ipdltest_IPDLUnitTestUtils
#define mozilla__ipdltest_IPDLUnitTestUtils 1

#include "ipc/IPCMessageUtils.h"

namespace mozilla {
namespace _ipdltest {

struct Bad {};

}  // namespace _ipdltest
}  // namespace mozilla

namespace IPC {

template <>
struct ParamTraits<mozilla::_ipdltest::Bad> {
  typedef mozilla::_ipdltest::Bad paramType;

  // Defined in TestActorPunning.cpp.
  static void Write(Message* aMsg, const paramType& aParam);
  static bool Read(const Message* aMsg, PickleIterator* aIter,
                   paramType* aResult);
};

}  // namespace IPC

#endif  // mozilla__ipdltest_IPDLUnitTestUtils