tree: b64c18d1093388780c5f60ca8fe1226dd0205d4b [path history] [tgz]
  1. meta/
  2. BUILD.gn
  3. defs.h
  4. module_context_test_entity_module.cc
  5. module_context_test_module.cc
  6. module_context_test_session_shell.cc
  7. README.md
peridot/tests/module_context/README.md

ModuleContext integration test

Tests that calls to ModuleContext.RemoveSelfFromStory() are handled correctly by the framework.

The session shell starts a story and adds two modules to it. It then signals the first module to call ModuleContext.RemoveSelfFromStory and verifies that the module is stopped. The session shell then signals the second module to ModuleContext.RemoveSelfFromStory, and verifies that the story is stopped as well.