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

Issue 399653004: Add a Mojo example apptest that runs in mojo_shell. (Closed)

Created:
6 years, 5 months ago by msw
Modified:
6 years, 4 months ago
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
Visibility:
Public.

Description

Add a Mojo example apptest that runs in mojo_shell. Add mojo/example/apptest with a service and client. Add example_apptest.cc with a GTest Mojo application. These tests can be run from out/<Debug|Release>/ via: ./mojo_shell --origin=file://`pwd` --disable-cache mojo:mojo_example_apptests BUG=392646 TEST=The new mojo_example_apptests passes. R=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288250

Patch Set 1 #

Total comments: 18

Patch Set 2 : Address comments; ShellTestHelper crashes, use a hack workaround. #

Total comments: 1

Patch Set 3 : Wrangling the MessageLoop, can I get a callback? #

Patch Set 4 : Simplify. #

Total comments: 14

Patch Set 5 : Sync and rebase. #

Total comments: 6

Patch Set 6 : Sync and rebase; update gyp file; rename to apptests. #

Patch Set 7 : Address most remaining comments. #

Patch Set 8 : Split client classes into files; cleanup. #

Patch Set 9 : Move files to mojo/examples/apptest. #

Total comments: 10

Patch Set 10 : Address comments; cleanup. #

Patch Set 11 : Sync and rebase; use mojo_base.gyp:mojo_application_standalone. #

Patch Set 12 : Use mojo_ignore_result for RUN_ALL_TESTS(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, -2 lines) Patch
A mojo/examples/apptest/example_apptest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +92 lines, -0 lines 0 comments Download
A mojo/examples/apptest/example_client_application.h View 1 2 3 4 5 6 7 8 9 1 chunk +28 lines, -0 lines 0 comments Download
A mojo/examples/apptest/example_client_application.cc View 1 2 3 4 5 6 7 8 1 chunk +22 lines, -0 lines 0 comments Download
A mojo/examples/apptest/example_client_impl.h View 1 2 3 4 5 6 7 8 1 chunk +32 lines, -0 lines 0 comments Download
A + mojo/examples/apptest/example_client_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -2 lines 0 comments Download
A mojo/examples/apptest/example_service.mojom View 1 2 3 4 5 6 7 8 9 1 chunk +21 lines, -0 lines 0 comments Download
A mojo/examples/apptest/example_service_application.h View 1 2 3 4 5 6 7 8 9 1 chunk +34 lines, -0 lines 0 comments Download
A mojo/examples/apptest/example_service_application.cc View 1 2 3 4 5 6 7 8 9 1 chunk +26 lines, -0 lines 0 comments Download
A mojo/examples/apptest/example_service_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +30 lines, -0 lines 0 comments Download
A mojo/examples/apptest/example_service_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +21 lines, -0 lines 0 comments Download
M mojo/mojo.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/mojo_examples.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
msw
This is a horrific WIP, but I'd appreciate your high level comments and hopefully a ...
6 years, 5 months ago (2014-07-18 18:42:57 UTC) #1
Ben Goodger (Google)
https://codereview.chromium.org/399653004/diff/1/mojo/examples/test/example_service_impl.cc File mojo/examples/test/example_service_impl.cc (right): https://codereview.chromium.org/399653004/diff/1/mojo/examples/test/example_service_impl.cc#newcode22 mojo/examples/test/example_service_impl.cc:22: RunLoop::current()->Quit(); What are you trying to achieve here? https://codereview.chromium.org/399653004/diff/1/mojo/examples/test/example_service_impl.cc#newcode28 ...
6 years, 5 months ago (2014-07-18 20:02:52 UTC) #2
msw
How can I get ShellTestHelper working here? https://codereview.chromium.org/399653004/diff/1/mojo/examples/test/example_service_impl.cc File mojo/examples/test/example_service_impl.cc (right): https://codereview.chromium.org/399653004/diff/1/mojo/examples/test/example_service_impl.cc#newcode22 mojo/examples/test/example_service_impl.cc:22: RunLoop::current()->Quit(); On ...
6 years, 5 months ago (2014-07-21 18:58:23 UTC) #3
Ben Goodger (Google)
https://codereview.chromium.org/399653004/diff/1/mojo/examples/test/example_service_impl.cc File mojo/examples/test/example_service_impl.cc (right): https://codereview.chromium.org/399653004/diff/1/mojo/examples/test/example_service_impl.cc#newcode22 mojo/examples/test/example_service_impl.cc:22: RunLoop::current()->Quit(); On 2014/07/21 18:58:22, msw wrote: > On 2014/07/18 ...
6 years, 5 months ago (2014-07-21 20:02:39 UTC) #4
tim (not reviewing)
https://codereview.chromium.org/399653004/diff/1/mojo/examples/test/example_service_impl.cc File mojo/examples/test/example_service_impl.cc (right): https://codereview.chromium.org/399653004/diff/1/mojo/examples/test/example_service_impl.cc#newcode22 mojo/examples/test/example_service_impl.cc:22: RunLoop::current()->Quit(); On 2014/07/21 20:02:38, Ben Goodger (Google) wrote: > ...
6 years, 5 months ago (2014-07-23 01:16:10 UTC) #5
msw
Please take a fresh high-level look after great pointers from Tim and Trung. I'd especially ...
6 years, 5 months ago (2014-07-23 09:29:10 UTC) #6
msw
Ping! Is this going in the right direction? Do we want to actually add these ...
6 years, 5 months ago (2014-07-24 17:50:02 UTC) #7
Ben Goodger (Google)
https://codereview.chromium.org/399653004/diff/120001/mojo/examples/test/example_service_impl.h File mojo/examples/test/example_service_impl.h (right): https://codereview.chromium.org/399653004/diff/120001/mojo/examples/test/example_service_impl.h#newcode17 mojo/examples/test/example_service_impl.h:17: explicit ExampleServiceImpl(ApplicationConnection* connection); nit: extra 1-space indent for these ...
6 years, 4 months ago (2014-07-30 16:53:19 UTC) #8
msw
Hey Ben, please take another look; thanks! https://codereview.chromium.org/399653004/diff/120001/mojo/examples/test/example_service_impl.h File mojo/examples/test/example_service_impl.h (right): https://codereview.chromium.org/399653004/diff/120001/mojo/examples/test/example_service_impl.h#newcode17 mojo/examples/test/example_service_impl.h:17: explicit ExampleServiceImpl(ApplicationConnection* ...
6 years, 4 months ago (2014-08-06 22:34:40 UTC) #9
Ben Goodger (Google)
https://codereview.chromium.org/399653004/diff/260001/mojo/examples/apptest/example_apptest.cc File mojo/examples/apptest/example_apptest.cc (right): https://codereview.chromium.org/399653004/diff/260001/mojo/examples/apptest/example_apptest.cc#newcode35 mojo/examples/apptest/example_apptest.cc:35: example_service_.reset(); should not be necessary. https://codereview.chromium.org/399653004/diff/260001/mojo/examples/apptest/example_apptest.cc#newcode93 mojo/examples/apptest/example_apptest.cc:93: printf("Exiting MojoMain.\n"); ...
6 years, 4 months ago (2014-08-07 15:53:09 UTC) #10
msw
Comments addressed, please take another look; thanks! https://codereview.chromium.org/399653004/diff/260001/mojo/examples/apptest/example_apptest.cc File mojo/examples/apptest/example_apptest.cc (right): https://codereview.chromium.org/399653004/diff/260001/mojo/examples/apptest/example_apptest.cc#newcode35 mojo/examples/apptest/example_apptest.cc:35: example_service_.reset(); On ...
6 years, 4 months ago (2014-08-07 18:31:16 UTC) #11
Ben Goodger (Google)
lgtm
6 years, 4 months ago (2014-08-07 20:01:35 UTC) #12
msw
The CQ bit was checked by msw@chromium.org
6 years, 4 months ago (2014-08-07 20:02:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/399653004/280001
6 years, 4 months ago (2014-08-07 20:06:33 UTC) #14
msw
The CQ bit was unchecked by msw@chromium.org
6 years, 4 months ago (2014-08-07 20:48:17 UTC) #15
msw
The CQ bit was checked by msw@chromium.org
6 years, 4 months ago (2014-08-07 21:15:11 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/399653004/300001
6 years, 4 months ago (2014-08-07 21:22:05 UTC) #17
msw
The CQ bit was unchecked by msw@chromium.org
6 years, 4 months ago (2014-08-08 00:29:21 UTC) #18
msw
The CQ bit was checked by msw@chromium.org
6 years, 4 months ago (2014-08-08 00:30:28 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/399653004/320001
6 years, 4 months ago (2014-08-08 00:54:38 UTC) #20
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 08:14:15 UTC) #21
Message was sent while issue was closed.
Change committed as 288250

Powered by Google App Engine
This is Rietveld 408576698