DescriptionAdd Chromium environment application test support.
Let Apptests run in Chromium and standalone environments.
Add mojo/public/cpp/application:test_support_standalone.
Add mojo/application/*main_chromium.cc and a GN target.
(MojoMain has base::AtExitManager not mojo::Environment)
Implement mojo/environment *DefaultRunLoop helper functions.
Use these for Chromium environment (w/base) Apptests:
"//mojo/application",
"//mojo/application:test_support",
Use these for standalone environment Apptests:
"//mojo/public/cpp/application:standalone",
"//mojo/public/cpp/application:test_support_standalone",
TODO: Add an example apptest for env chromium w/base use?
TODO: Use base::LaunchUnitTests, etc. in *main_chromium.cc.
BUG=392646
TEST="mojo_shell mojo:example_apptests" still works.
R=viettrungluu@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/808cd0c8ead4ccb51b091d782fdc1368f607baad
Patch Set 1 #Patch Set 2 : Cleanup. #Patch Set 3 : Experiment with a Chromium-environment mojo:example_apptests. #Patch Set 4 : Working with a base::AtExitManager hack. #Patch Set 5 : Add chromium environment targets; prototype apptest use. #Patch Set 6 : Cleanup. #
Total comments: 8
Patch Set 7 : Address comments. #Patch Set 8 : Sync and rebase. #
Messages
Total messages: 6 (2 generated)
|