DescriptionFurther refine mojo_example_apptests.
Destroy MojoMain's RunLoop before executing tests.
Reuse the shell handle for multiple test app instances.
Add ApplicationImpl::UnbindShell for message pipe reuse.
Add Apptest, a GTEST base class for application testing.
TODO: Support/Exemplify actual command line arg use.
BUG=392646
TEST=mojo_shell 'mojo:mojo_example_apptests <gtest_args>' still works.
R=viettrungluu@chromium.org
Committed: https://crrev.com/1b38080e455f6ee9e47e97bc1e03c8565111cfc1
Cr-Commit-Position: refs/heads/master@{#300155}
Patch Set 1 #Patch Set 2 : Remove the unnecessary ApplicationDelegate subclass; cleanup. #
Total comments: 10
Patch Set 3 : Address comments; add Apptest base class. #
Total comments: 2
Patch Set 4 : Move RunLoop into the Apptest base class; rename SetCallback. #Patch Set 5 : Keep a global POD MessagePipeHandle instance; cleanup. #Patch Set 6 : Add MOJO_ALLOW_UNUSED_LOCAL for the MojoClose result. #Patch Set 7 : Sync and rebase. #Patch Set 8 : Fix MojoClose result check. #
Messages
Total messages: 25 (11 generated)
|