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

Issue 1806353003: Adds option to run browser tests in mash (Closed)

Created:
4 years, 9 months ago by sky
Modified:
4 years, 9 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds option to run browser tests in mash At a high level this is what the code does: . The test launcher creates MojoTestConnector. . MojoTestConnector creates a BackgroundShell (initially I wanted to run the shell on the same thread, but that is problematic because I need to run a nested message loop at times, which the IO thread doesn't support (the test launcher uses an io thread)). . A connection is established to mojo:mash_shell. . MojoTestConnector sets up the state for each test. The connect is not done with Mojo's child process connection. The base test launching code handles the actual process launching. Other random notes: . --single_process is a slightly different flow. . The test never finishes. This is because apps that are started don't all exit when the shell exits. I'm going to look at that next. R=ben@chromium.org, jam@chromium.org BUG=581733 Committed: https://crrev.com/6e47685c9153b1d26ce5d2f955ebd6aea67e09d3 Cr-Commit-Position: refs/heads/master@{#382305}

Patch Set 1 #

Patch Set 2 : merge to trunk #

Patch Set 3 : try to fix linux #

Patch Set 4 : override and git add #

Patch Set 5 : cleanup #

Total comments: 2

Patch Set 6 : format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+543 lines, -26 lines) Patch
M chrome/test/BUILD.gn View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/test/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/browser_tests_main.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/base/mash_browser_tests_main.h View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/base/mash_browser_tests_main.cc View 1 2 3 4 5 1 chunk +109 lines, -0 lines 0 comments Download
A chrome/test/base/mojo_test_connector.h View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/test/base/mojo_test_connector.cc View 1 2 3 4 5 1 chunk +243 lines, -0 lines 0 comments Download
M content/public/test/test_launcher.h View 1 2 3 4 3 chunks +22 lines, -0 lines 0 comments Download
M content/public/test/test_launcher.cc View 1 2 3 4 7 chunks +30 lines, -13 lines 0 comments Download
M mojo/shell/background/background_shell.h View 1 2 3 4 3 chunks +8 lines, -0 lines 0 comments Download
M mojo/shell/background/background_shell.cc View 1 2 3 4 4 chunks +20 lines, -6 lines 0 comments Download
M mojo/shell/background/tests/test_catalog_store.cc View 1 2 3 4 1 chunk +11 lines, -5 lines 0 comments Download
M mojo/shell/standalone/context.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/shell/standalone/context.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
sky
At this point the parts worth looking at are mojo_test_connector, and mash_browser_tests_main. The rest are ...
4 years, 9 months ago (2016-03-17 21:22:53 UTC) #1
sky
Ok, this is ready to go. John, can you take a look as Ben is ...
4 years, 9 months ago (2016-03-19 00:46:16 UTC) #4
Ben Goodger (Google)
lgtm https://codereview.chromium.org/1806353003/diff/80001/chrome/test/base/mash_browser_tests_main.cc File chrome/test/base/mash_browser_tests_main.cc (right): https://codereview.chromium.org/1806353003/diff/80001/chrome/test/base/mash_browser_tests_main.cc#newcode100 chrome/test/base/mash_browser_tests_main.cc:100: content::MojoShellConnection::Factory shell_connection_factory; nit: indent
4 years, 9 months ago (2016-03-19 03:24:53 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1806353003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1806353003/100001
4 years, 9 months ago (2016-03-21 15:03:52 UTC) #8
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 9 months ago (2016-03-21 16:38:45 UTC) #10
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/6e47685c9153b1d26ce5d2f955ebd6aea67e09d3 Cr-Commit-Position: refs/heads/master@{#382305}
4 years, 9 months ago (2016-03-21 16:40:02 UTC) #12
sky
4 years, 9 months ago (2016-03-21 16:44:42 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/1806353003/diff/80001/chrome/test/base/mash_b...
File chrome/test/base/mash_browser_tests_main.cc (right):

https://codereview.chromium.org/1806353003/diff/80001/chrome/test/base/mash_b...
chrome/test/base/mash_browser_tests_main.cc:100:
content::MojoShellConnection::Factory shell_connection_factory;
On 2016/03/19 03:24:53, Ben Goodger (Google) wrote:
> nit: indent

Done.

Powered by Google App Engine
This is Rietveld 408576698