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

Issue 744973002: Pass command line args to apptests (Closed)

Created:
6 years, 1 month ago by Chris Masone
Modified:
6 years ago
Reviewers:
msw, jamesr
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
Base URL:
https://github.com/domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Pass command line args to apptests Apptests should be able to access passed on the command line when they're run. The test runner will now export the args and cause them to be handed to the ApplicationImpl created as a part of the ApplicationTestBase class. BUG=None TEST=run app tests with apptest_runner.py R=msw@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/c15c806c42e5e97b90bb4816c7601c8ab58fa8ad

Patch Set 1 #

Total comments: 11

Patch Set 2 : switch to using --args-for to pass arguments to apptests #

Total comments: 15

Patch Set 3 : rebase and address comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -16 lines) Patch
M examples/apptest/example_apptest.cc View 1 3 chunks +9 lines, -2 lines 0 comments Download
M mojo/public/cpp/application/application_test_base.h View 1 2 2 chunks +9 lines, -4 lines 0 comments Download
M mojo/public/cpp/application/lib/application_test_base.cc View 1 2 4 chunks +21 lines, -5 lines 0 comments Download
M mojo/public/cpp/application/lib/application_test_main.cc View 1 2 2 chunks +3 lines, -2 lines 1 comment Download
M mojo/services/network/udp_socket_apptest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/view_manager/view_manager_service_apptest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M mojo/tools/apptest_runner.py View 1 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 16 (2 generated)
Chris Masone
eh?
6 years, 1 month ago (2014-11-20 21:10:08 UTC) #2
msw
https://codereview.chromium.org/744973002/diff/1/examples/apptest/example_apptest.cc File examples/apptest/example_apptest.cc (right): https://codereview.chromium.org/744973002/diff/1/examples/apptest/example_apptest.cc#newcode20 examples/apptest/example_apptest.cc:20: ExampleApplicationTest() : ApplicationTestBase(mojo::test::Args().Clone()) {} Maybe ApplicationTestBase should use the ...
6 years, 1 month ago (2014-11-20 21:59:12 UTC) #3
Chris Masone
https://codereview.chromium.org/744973002/diff/1/examples/apptest/example_apptest.cc File examples/apptest/example_apptest.cc (right): https://codereview.chromium.org/744973002/diff/1/examples/apptest/example_apptest.cc#newcode20 examples/apptest/example_apptest.cc:20: ExampleApplicationTest() : ApplicationTestBase(mojo::test::Args().Clone()) {} On 2014/11/20 21:59:12, msw wrote: ...
6 years, 1 month ago (2014-11-20 23:35:19 UTC) #4
msw
Sorry for the response delay! https://codereview.chromium.org/744973002/diff/1/mojo/public/cpp/application/lib/application_test_base.cc File mojo/public/cpp/application/lib/application_test_base.cc (right): https://codereview.chromium.org/744973002/diff/1/mojo/public/cpp/application/lib/application_test_base.cc#newcode39 mojo/public/cpp/application/lib/application_test_base.cc:39: const Array<String>& Args() { ...
6 years, 1 month ago (2014-11-22 18:23:39 UTC) #5
Chris Masone
https://codereview.chromium.org/744973002/diff/20001/mojo/public/cpp/application/application_test_base.h File mojo/public/cpp/application/application_test_base.h (right): https://codereview.chromium.org/744973002/diff/20001/mojo/public/cpp/application/application_test_base.h#newcode24 mojo/public/cpp/application/application_test_base.h:24: const Array<String>& Args(); On 2014/11/22 18:23:38, msw wrote: > ...
6 years, 1 month ago (2014-11-22 20:14:44 UTC) #6
msw
lgtm with quoting fix https://codereview.chromium.org/744973002/diff/20001/mojo/tools/apptest_runner.py File mojo/tools/apptest_runner.py (right): https://codereview.chromium.org/744973002/diff/20001/mojo/tools/apptest_runner.py#newcode70 mojo/tools/apptest_runner.py:70: "--args-for={0} --example_apptest_arg --gtest_filter={1}".format( On 2014/11/22 ...
6 years, 1 month ago (2014-11-22 21:46:54 UTC) #7
Chris Masone
https://codereview.chromium.org/744973002/diff/20001/mojo/tools/apptest_runner.py File mojo/tools/apptest_runner.py (right): https://codereview.chromium.org/744973002/diff/20001/mojo/tools/apptest_runner.py#newcode70 mojo/tools/apptest_runner.py:70: "--args-for={0} --example_apptest_arg --gtest_filter={1}".format( On 2014/11/22 21:46:54, msw wrote: > ...
6 years ago (2014-11-24 17:08:22 UTC) #8
Chris Masone
On 2014/11/24 17:08:22, Chris Masone wrote: > https://codereview.chromium.org/744973002/diff/20001/mojo/tools/apptest_runner.py > File mojo/tools/apptest_runner.py (right): > > https://codereview.chromium.org/744973002/diff/20001/mojo/tools/apptest_runner.py#newcode70 ...
6 years ago (2014-11-24 18:01:13 UTC) #9
msw
lgtm https://codereview.chromium.org/744973002/diff/20001/mojo/tools/apptest_runner.py File mojo/tools/apptest_runner.py (right): https://codereview.chromium.org/744973002/diff/20001/mojo/tools/apptest_runner.py#newcode70 mojo/tools/apptest_runner.py:70: "--args-for={0} --example_apptest_arg --gtest_filter={1}".format( On 2014/11/24 17:08:22, Chris Masone ...
6 years ago (2014-11-24 19:05:20 UTC) #10
Chris Masone
Committed patchset #3 (id:40001) manually as c15c806c42e5e97b90bb4816c7601c8ab58fa8ad (presubmit successful).
6 years ago (2014-11-24 19:23:05 UTC) #11
jamesr
https://codereview.chromium.org/744973002/diff/40001/mojo/public/cpp/application/lib/application_test_main.cc File mojo/public/cpp/application/lib/application_test_main.cc (right): https://codereview.chromium.org/744973002/diff/40001/mojo/public/cpp/application/lib/application_test_main.cc#newcode24 mojo/public/cpp/application/lib/application_test_main.cc:24: // $ mojo_shell mojo:example_apptests \ this breaks the android ...
6 years ago (2014-11-24 20:22:40 UTC) #13
Chris Masone
On 2014/11/24 20:22:40, jamesr wrote: > https://codereview.chromium.org/744973002/diff/40001/mojo/public/cpp/application/lib/application_test_main.cc > File mojo/public/cpp/application/lib/application_test_main.cc (right): > > https://codereview.chromium.org/744973002/diff/40001/mojo/public/cpp/application/lib/application_test_main.cc#newcode24 > ...
6 years ago (2014-11-24 20:29:13 UTC) #14
Chris Masone
On 2014/11/24 20:29:13, Chris Masone wrote: > On 2014/11/24 20:22:40, jamesr wrote: > > > ...
6 years ago (2014-11-24 20:32:37 UTC) #15
jamesr
6 years ago (2014-11-24 20:42:58 UTC) #16
Message was sent while issue was closed.
I'm not sure how to write this comment, sorry :(

Powered by Google App Engine
This is Rietveld 408576698