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

Issue 2897123004: Move display_service_unittests to services_unittests. (Closed)

Created:
3 years, 7 months ago by Elliot Glaysher
Modified:
3 years, 7 months ago
CC:
chromium-reviews, rjkroege
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move display_service_unittests to services_unittests. This adapts the service_test.gni template to take an optional test runner target which overrides the default services_manager test runner. It also reorganizes the service_manager test runner to be modular so tests can use their own base::TestSuite subclass while still using the rest of the initialization that run_all_service_tests provided. BUG=722546 Review-Url: https://codereview.chromium.org/2897123004 Cr-Commit-Position: refs/heads/master@{#474740} Committed: https://chromium.googlesource.com/chromium/src/+/8ce908eea615191798b109b4d67ce267421b69f6

Patch Set 1 #

Patch Set 2 : Maybe this will fix android. #

Patch Set 3 : Commnet out the display tests. See if that fixes the flakyness on bots? #

Patch Set 4 : OK, is it just not this patch? Revert almost the entire patch. #

Patch Set 5 : OK, this doesn't add new tests, and has the runner supposedly equivalent. #

Patch Set 6 : Turn off swarming to try to see whats crashing. #

Patch Set 7 : if i put the data_deps here instead of up one level, does it work? #

Patch Set 8 : OK, with the deps sorted out, does the whole thing work end to end now? #

Patch Set 9 : Merge with tot #

Total comments: 4

Patch Set 10 : services -> service_manager #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -130 lines) Patch
M BUILD.gn View 1 chunk +0 lines, -4 lines 0 comments Download
M services/BUILD.gn View 1 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M services/service_manager/public/cpp/test/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +21 lines, -4 lines 0 comments Download
A services/service_manager/public/cpp/test/common_initialization.h View 1 2 3 4 5 6 7 8 9 1 chunk +23 lines, -0 lines 0 comments Download
A + services/service_manager/public/cpp/test/common_initialization.cc View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -7 lines 0 comments Download
M services/service_manager/public/cpp/test/run_all_service_tests.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -39 lines 0 comments Download
M services/service_manager/public/tools/test/service_test.gni View 4 1 chunk +13 lines, -5 lines 0 comments Download
A services/test/BUILD.gn View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
A services/test/DEPS View 1 chunk +4 lines, -0 lines 0 comments Download
A + services/test/run_all_service_tests.cc View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -10 lines 0 comments Download
M services/ui/display/BUILD.gn View 4 1 chunk +3 lines, -2 lines 0 comments Download
D services/ui/display/run_all_unittests.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -49 lines 0 comments Download
M testing/buildbot/chromium.chromiumos.json View 4 6 7 1 chunk +0 lines, -6 lines 0 comments Download
M testing/buildbot/gn_isolate_map.pyl View 4 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 40 (34 generated)
Elliot Glaysher
https://codereview.chromium.org/2897123004/diff/160001/services/service_manager/public/tools/test/service_test.gni File services/service_manager/public/tools/test/service_test.gni (right): https://codereview.chromium.org/2897123004/diff/160001/services/service_manager/public/tools/test/service_test.gni#newcode33 services/service_manager/public/tools/test/service_test.gni:33: if (defined(invoker.test_runner)) { This it the thing that I'm ...
3 years, 7 months ago (2017-05-24 22:02:28 UTC) #28
sky
Ken should review this as I'm not familiar with services/service_manager/public/tools/test/service_test.gni . It looks right, but ...
3 years, 7 months ago (2017-05-24 22:34:11 UTC) #30
Elliot Glaysher
https://codereview.chromium.org/2897123004/diff/160001/services/service_manager/public/cpp/test/BUILD.gn File services/service_manager/public/cpp/test/BUILD.gn (right): https://codereview.chromium.org/2897123004/diff/160001/services/service_manager/public/cpp/test/BUILD.gn#newcode32 services/service_manager/public/cpp/test/BUILD.gn:32: # NOTE: Don't depend on this target directly. Instead ...
3 years, 7 months ago (2017-05-24 22:42:09 UTC) #31
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2897123004/diff/160001/services/service_manager/public/cpp/test/common_initialization.h File services/service_manager/public/cpp/test/common_initialization.h (right): https://codereview.chromium.org/2897123004/diff/160001/services/service_manager/public/cpp/test/common_initialization.h#newcode10 services/service_manager/public/cpp/test/common_initialization.h:10: namespace services { For consistency with everything else ...
3 years, 7 months ago (2017-05-25 01:54:00 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2897123004/180001
3 years, 7 months ago (2017-05-25 17:16:27 UTC) #37
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 19:06:29 UTC) #40
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/8ce908eea615191798b109b4d67c...

Powered by Google App Engine
This is Rietveld 408576698