summaryrefslogtreecommitdiffstats
path: root/ipc/ipdl/test/cxx/IPDLUnitTestUtils.h
blob: ad9da374df8921c51503b9ce5542c822fb5f63c6 (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

#ifndef mozilla__ipdltest_IPDLUnitTestUtils
#define mozilla__ipdltest_IPDLUnitTestUtils 1

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