1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ipc/ipdl/test/cxx/IPDLUnitTestUtils.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 + 1.5 +#ifndef mozilla__ipdltest_IPDLUnitTestUtils 1.6 +#define mozilla__ipdltest_IPDLUnitTestUtils 1 1.7 + 1.8 +namespace mozilla { 1.9 +namespace _ipdltest { 1.10 + 1.11 +struct Bad {}; 1.12 + 1.13 +} // namespace _ipdltest 1.14 +} // namespace mozilla 1.15 + 1.16 +namespace IPC { 1.17 + 1.18 +template<> 1.19 +struct ParamTraits<mozilla::_ipdltest::Bad> 1.20 +{ 1.21 + typedef mozilla::_ipdltest::Bad paramType; 1.22 + 1.23 + // Defined in TestActorPunning.cpp. 1.24 + static void Write(Message* aMsg, const paramType& aParam); 1.25 + static bool Read(const Message* aMsg, void** aIter, paramType* aResult); 1.26 +}; 1.27 + 1.28 +} // namespace IPC 1.29 + 1.30 +#endif // mozilla__ipdltest_IPDLUnitTestUtils