Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Issue 695593002: Add Chromium environment application test support. (Closed)

Created:
6 years, 1 month ago by msw
Modified:
6 years, 1 month ago
Reviewers:
viettrungluu
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, sky
Base URL:
https://github.com/domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Add 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -21 lines) Patch
M examples/apptest/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M mojo/application/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +13 lines, -0 lines 0 comments Download
A + mojo/application/application_test_main_chromium.cc View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M mojo/environment/BUILD.gn View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
A + mojo/environment/default_run_loop_impl.h View 1 chunk +5 lines, -5 lines 0 comments Download
A mojo/environment/default_run_loop_impl.cc View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
M mojo/environment/environment.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M mojo/public/cpp/application/BUILD.gn View 1 2 3 4 5 6 2 chunks +11 lines, -5 lines 0 comments Download
M mojo/public/cpp/application/lib/application_test_main.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
msw
Hey Trung, please take a look; thanks!
6 years, 1 month ago (2014-10-31 20:18:22 UTC) #3
viettrungluu
LGTM w/nits. https://codereview.chromium.org/695593002/diff/120001/mojo/environment/default_run_loop_impl.cc File mojo/environment/default_run_loop_impl.cc (right): https://codereview.chromium.org/695593002/diff/120001/mojo/environment/default_run_loop_impl.cc#newcode6 mojo/environment/default_run_loop_impl.cc:6: nit: #include "base/logging.h" https://codereview.chromium.org/695593002/diff/120001/mojo/environment/default_run_loop_impl.cc#newcode7 mojo/environment/default_run_loop_impl.cc:7: #include "base/compiler_specific.h" ...
6 years, 1 month ago (2014-10-31 20:26:46 UTC) #4
msw
Done; syncing and landing; thanks! https://codereview.chromium.org/695593002/diff/120001/mojo/environment/default_run_loop_impl.cc File mojo/environment/default_run_loop_impl.cc (right): https://codereview.chromium.org/695593002/diff/120001/mojo/environment/default_run_loop_impl.cc#newcode6 mojo/environment/default_run_loop_impl.cc:6: On 2014/10/31 20:26:46, viettrungluu ...
6 years, 1 month ago (2014-10-31 20:39:54 UTC) #5
msw
6 years, 1 month ago (2014-10-31 20:43:09 UTC) #6
Message was sent while issue was closed.
Committed patchset #8 (id:160001) manually as
808cd0c8ead4ccb51b091d782fdc1368f607baad (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698