|
1 |
|
2 #ifndef mozilla__ipdltest_IPDLUnitTestUtils |
|
3 #define mozilla__ipdltest_IPDLUnitTestUtils 1 |
|
4 |
|
5 namespace mozilla { |
|
6 namespace _ipdltest { |
|
7 |
|
8 struct Bad {}; |
|
9 |
|
10 } // namespace _ipdltest |
|
11 } // namespace mozilla |
|
12 |
|
13 namespace IPC { |
|
14 |
|
15 template<> |
|
16 struct ParamTraits<mozilla::_ipdltest::Bad> |
|
17 { |
|
18 typedef mozilla::_ipdltest::Bad paramType; |
|
19 |
|
20 // Defined in TestActorPunning.cpp. |
|
21 static void Write(Message* aMsg, const paramType& aParam); |
|
22 static bool Read(const Message* aMsg, void** aIter, paramType* aResult); |
|
23 }; |
|
24 |
|
25 } // namespace IPC |
|
26 |
|
27 #endif // mozilla__ipdltest_IPDLUnitTestUtils |