2009-10-06 22:02:26 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace _ipdltest {
|
|
|
|
|
|
|
|
|
|
|
|
protocol PTestSanity {
|
|
|
|
|
|
|
|
child:
|
2009-11-06 23:24:35 +03:00
|
|
|
Ping(int zero, float zeroPtFive);
|
2009-10-06 22:02:26 +04:00
|
|
|
|
|
|
|
parent:
|
2009-11-06 23:24:35 +03:00
|
|
|
Pong(int one, float zeroPtTwoFive);
|
2009-10-06 22:02:26 +04:00
|
|
|
|
|
|
|
both:
|
|
|
|
UNREACHED();
|
|
|
|
|
|
|
|
|
|
|
|
state PING:
|
|
|
|
send Ping goto PONG;
|
|
|
|
|
|
|
|
state PONG:
|
|
|
|
recv Pong goto DEAD;
|
|
|
|
|
|
|
|
// hmm ... maybe support this idiom natively?
|
|
|
|
state DEAD:
|
|
|
|
send UNREACHED goto DEAD;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace mozilla
|
|
|
|
} // namespace _ipdltest
|