IPDL/Five minute example: Difference between revisions

no edit summary
No edit summary
Line 295: Line 295:
     return NS_OK;
     return NS_OK;
  }
  }


and add this code to <code>ipc/test-harness/TestParent.cpp</code>.
and add this code to <code>ipc/test-harness/TestParent.cpp</code>.
Line 308: Line 307:
  }
  }


Enjoy!
'''Suggested further exercises''': change <code>ipc/test-harness/Test.ipdl</code>; add new messages, change the state machines, and so on.  See how the generated headers change.  Edit the TestParent and TestChild to implement your new messages.
 
== Run the test-harness ==
 
If you followed the path to creating a standalone binary, you can run the test harness by executing <code>$objdir/dist/bin/ipctestharness</code>.
Confirmed users
699

edits