tree: b64c18d1093388780c5f60ca8fe1226dd0205d4b [path history] [tgz]
  1. BUILD.gn
  2. README.md
  3. defs.h
  4. meta/
  5. module_context_test_entity_module.cc
  6. module_context_test_module.cc
  7. module_context_test_session_shell.cc
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.