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

Issue 710403002: Add Mojo application test support to Chromium. (Closed)

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

Description

Add Mojo application test support to Chromium. Needed to support Chromium Mojo application tests: For example: https://codereview.chromium.org/709923003 The Mojo CL: https://codereview.chromium.org/695593002 (env changes support the cross-repo ApplicationTestBase) TODO: Add GYP versions of GN apptest support targets. BUG=392646 TEST=mojo/application:test_support builds with GN. R=jamesr@chromium.org Committed: https://crrev.com/28a4eca5a9e4053312eaca6b853f004450ce010b Cr-Commit-Position: refs/heads/master@{#303779}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove commas. #

Patch Set 3 : Add Environment's DefaultRunLoop helper functions for ApplicationTestBase. #

Patch Set 4 : Add missing include. #

Total comments: 12

Patch Set 5 : Address some comments. #

Total comments: 4

Patch Set 6 : Use base::MessageLoop directly in application_test_main_chromium.cc #

Patch Set 7 : Add default_run_loop_impl files to the GYP target. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -15 lines) Patch
M mojo/application/BUILD.gn View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
A + mojo/application/application_test_main_chromium.cc View 1 2 3 4 5 2 chunks +10 lines, -10 lines 0 comments Download
M mojo/environment/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A + mojo/environment/default_run_loop_impl.h View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
A mojo/environment/default_run_loop_impl.cc View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download
M mojo/environment/environment.cc View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M mojo/mojo_base.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (7 generated)
msw
Hey James, please take a look; thanks!
6 years, 1 month ago (2014-11-11 19:29:48 UTC) #2
jamesr
lgtm https://codereview.chromium.org/710403002/diff/1/mojo/application/BUILD.gn File mojo/application/BUILD.gn (right): https://codereview.chromium.org/710403002/diff/1/mojo/application/BUILD.gn#newcode24 mojo/application/BUILD.gn:24: sources = [ "application_test_main_chromium.cc", ] nit: can kill ...
6 years, 1 month ago (2014-11-11 20:18:31 UTC) #3
msw
Landing with 1 of 2 nits addressed. https://codereview.chromium.org/710403002/diff/1/mojo/application/BUILD.gn File mojo/application/BUILD.gn (right): https://codereview.chromium.org/710403002/diff/1/mojo/application/BUILD.gn#newcode24 mojo/application/BUILD.gn:24: sources = ...
6 years, 1 month ago (2014-11-11 20:27:02 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/710403002/20001
6 years, 1 month ago (2014-11-11 20:28:46 UTC) #6
msw
Sigh, I'll need to add the mojo::Environment::[Instantiate|Destroy]DefaultRunLoop helper functions for ApplicationTestBase, which is mirrored between ...
6 years, 1 month ago (2014-11-11 21:11:11 UTC) #8
msw
Hey James, please take another look; thanks! (this latest patch set works for Xiaohan's CL)
6 years, 1 month ago (2014-11-11 22:29:39 UTC) #10
jamesr
https://codereview.chromium.org/710403002/diff/80001/mojo/application/BUILD.gn File mojo/application/BUILD.gn (right): https://codereview.chromium.org/710403002/diff/80001/mojo/application/BUILD.gn#newcode25 mojo/application/BUILD.gn:25: public_deps = [ "//mojo/public/cpp/application:test_support" ] blank lines between these, ...
6 years, 1 month ago (2014-11-11 22:34:37 UTC) #11
msw
James, please advise on the run loop helpers, thanks! https://codereview.chromium.org/710403002/diff/80001/mojo/application/BUILD.gn File mojo/application/BUILD.gn (right): https://codereview.chromium.org/710403002/diff/80001/mojo/application/BUILD.gn#newcode25 mojo/application/BUILD.gn:25: ...
6 years, 1 month ago (2014-11-11 23:00:07 UTC) #12
jamesr
Where's ApplicationTestBase? https://codereview.chromium.org/710403002/diff/100001/mojo/application/application_test_main_chromium.cc File mojo/application/application_test_main_chromium.cc (right): https://codereview.chromium.org/710403002/diff/100001/mojo/application/application_test_main_chromium.cc#newcode17 mojo/application/application_test_main_chromium.cc:17: base::AtExitManager at_exit; this is only needed if ...
6 years, 1 month ago (2014-11-11 23:07:33 UTC) #13
msw
On 2014/11/11 23:07:33, jamesr wrote: > Where's ApplicationTestBase? mojo/public/cpp/application/application_test_base.h mojo/public/cpp/application/lib/application_test_base.cc I would [optionally] continue defining ...
6 years, 1 month ago (2014-11-11 23:18:28 UTC) #14
jamesr
https://codereview.chromium.org/710403002/diff/100001/mojo/application/application_test_main_chromium.cc File mojo/application/application_test_main_chromium.cc (right): https://codereview.chromium.org/710403002/diff/100001/mojo/application/application_test_main_chromium.cc#newcode17 mojo/application/application_test_main_chromium.cc:17: base::AtExitManager at_exit; On 2014/11/11 23:18:28, msw wrote: > On ...
6 years, 1 month ago (2014-11-11 23:22:21 UTC) #15
msw
https://codereview.chromium.org/710403002/diff/100001/mojo/application/application_test_main_chromium.cc File mojo/application/application_test_main_chromium.cc (right): https://codereview.chromium.org/710403002/diff/100001/mojo/application/application_test_main_chromium.cc#newcode17 mojo/application/application_test_main_chromium.cc:17: base::AtExitManager at_exit; On 2014/11/11 23:22:21, jamesr wrote: > On ...
6 years, 1 month ago (2014-11-11 23:29:33 UTC) #16
jamesr
On 2014/11/11 23:29:33, msw wrote: > https://codereview.chromium.org/710403002/diff/100001/mojo/application/application_test_main_chromium.cc > File mojo/application/application_test_main_chromium.cc (right): > > https://codereview.chromium.org/710403002/diff/100001/mojo/application/application_test_main_chromium.cc#newcode17 > ...
6 years, 1 month ago (2014-11-11 23:38:19 UTC) #17
msw
On 2014/11/11 23:38:19, jamesr wrote: > On 2014/11/11 23:29:33, msw wrote: > > > https://codereview.chromium.org/710403002/diff/100001/mojo/application/application_test_main_chromium.cc ...
6 years, 1 month ago (2014-11-11 23:45:26 UTC) #18
jamesr
The ApplicationTestBase code doesn't appear to be changed in this patch. Does it currently not ...
6 years, 1 month ago (2014-11-11 23:50:20 UTC) #19
msw
On 2014/11/11 23:50:20, jamesr wrote: > The ApplicationTestBase code doesn't appear to be changed in ...
6 years, 1 month ago (2014-11-11 23:51:58 UTC) #20
jamesr
OK. lgtm
6 years, 1 month ago (2014-11-11 23:53:58 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/710403002/120001
6 years, 1 month ago (2014-11-11 23:59:28 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/27401) win_chromium_x64_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel/builds/11833)
6 years, 1 month ago (2014-11-12 00:21:18 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/710403002/140001
6 years, 1 month ago (2014-11-12 00:56:35 UTC) #27
commit-bot: I haz the power
Committed patchset #7 (id:140001)
6 years, 1 month ago (2014-11-12 02:32:27 UTC) #28
commit-bot: I haz the power
6 years, 1 month ago (2014-11-12 02:32:58 UTC) #29
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/28a4eca5a9e4053312eaca6b853f004450ce010b
Cr-Commit-Position: refs/heads/master@{#303779}

Powered by Google App Engine
This is Rietveld 408576698