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

Issue 8561031: Replace ScopedCommandLineOverride with TestSuite listener. (Closed)

Created:
9 years, 1 month ago by miket_OOO
Modified:
9 years ago
CC:
chromium-reviews, ncarter (slow), akalin, Raghu Simha, Paweł Hajdan Jr., brettw-cc_chromium.org, tim (not reviewing)
Visibility:
Public.

Description

Replace ScopedCommandLineOverride with TestSuite listener. This was split out of http://codereview.chromium.org/8588067/. BUG=none TEST=none, but this does make testing easier. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111057

Patch Set 1 #

Total comments: 2

Patch Set 2 : Simplify per Pawel's suggestions. #

Total comments: 2

Patch Set 3 : Last nit from Pawel. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -77 lines) Patch
M base/test/test_suite.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M base/test/test_suite.cc View 1 2 3 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model_unittest.cc View 1 2 chunks +1 line, -8 lines 0 comments Download
M chrome/browser/history/top_sites_unittest.cc View 4 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_bookmark_unittest.cc View 1 3 chunks +1 line, -4 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension_manifests_unittest.cc View 1 9 chunks +10 lines, -11 lines 2 comments Download
M chrome/test/base/scoped_command_line_override.h View 1 1 chunk +0 lines, -32 lines 0 comments Download
M chrome/test/base/scoped_command_line_override.cc View 1 1 chunk +0 lines, -15 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
miket_OOO
9 years, 1 month ago (2011-11-18 23:04:14 UTC) #1
Paweł Hajdan Jr.
Drive-by (and see chrome/test/OWNERS). I think there's much better way. Add a test listener to ...
9 years, 1 month ago (2011-11-21 12:14:55 UTC) #2
asargent_no_longer_on_chrome
http://codereview.chromium.org/8561031/diff/1/chrome/test/base/scoped_command_line_override.h File chrome/test/base/scoped_command_line_override.h (right): http://codereview.chromium.org/8561031/diff/1/chrome/test/base/scoped_command_line_override.h#newcode27 chrome/test/base/scoped_command_line_override.h:27: explicit ScopedCommandLineOverride(CommandLine& old_command_line); nit: const CommandLine& http://codereview.chromium.org/8561031/diff/1/chrome/test/base/scoped_command_line_override.h#newcode30 chrome/test/base/scoped_command_line_override.h:30: // ...
9 years, 1 month ago (2011-11-21 17:14:23 UTC) #3
miket_OOO
> I think there's much better way. Add a test listener to base/test/test_suite, > similar ...
9 years, 1 month ago (2011-11-21 18:51:07 UTC) #4
asargent_no_longer_on_chrome
lgtm http://codereview.chromium.org/8561031/diff/6001/base/test/test_suite.cc File base/test/test_suite.cc (right): http://codereview.chromium.org/8561031/diff/6001/base/test/test_suite.cc#newcode53 base/test/test_suite.cc:53: : old_command_line_(CommandLine::NO_PROGRAM) { I guess it doesn't really ...
9 years, 1 month ago (2011-11-21 19:19:50 UTC) #5
Paweł Hajdan Jr.
LGTM with a nit, thanks. http://codereview.chromium.org/8561031/diff/6001/base/test/test_suite.cc File base/test/test_suite.cc (right): http://codereview.chromium.org/8561031/diff/6001/base/test/test_suite.cc#newcode253 base/test/test_suite.cc:253: testing::TestEventListeners& listeners = nit: ...
9 years, 1 month ago (2011-11-21 19:59:32 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/8561031/6005
9 years, 1 month ago (2011-11-21 22:18:22 UTC) #7
commit-bot: I haz the power
Presubmit check for 8561031-6005 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 1 month ago (2011-11-21 22:18:43 UTC) #8
miket_OOO
+sky
9 years, 1 month ago (2011-11-21 22:22:55 UTC) #9
miket_OOO
+sky
9 years, 1 month ago (2011-11-21 22:22:56 UTC) #10
sky
LGTM
9 years, 1 month ago (2011-11-21 22:29:50 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/8561031/6005
9 years, 1 month ago (2011-11-21 22:45:20 UTC) #12
commit-bot: I haz the power
Presubmit check for 8561031-6005 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 1 month ago (2011-11-21 22:45:27 UTC) #13
miket_OOO
+zea
9 years, 1 month ago (2011-11-21 23:01:52 UTC) #14
Nicolas Zea
sync LGTM
9 years, 1 month ago (2011-11-21 23:04:03 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/8561031/6005
9 years, 1 month ago (2011-11-21 23:06:06 UTC) #16
commit-bot: I haz the power
Change committed as 111057
9 years, 1 month ago (2011-11-22 00:44:41 UTC) #17
Aaron Boodman
http://codereview.chromium.org/8561031/diff/6005/chrome/common/extensions/extension_manifests_unittest.cc File chrome/common/extensions/extension_manifests_unittest.cc (right): http://codereview.chromium.org/8561031/diff/6005/chrome/common/extensions/extension_manifests_unittest.cc#newcode381 chrome/common/extensions/extension_manifests_unittest.cc:381: switches::kEnablePlatformApps); This doesn't seem as good. Now all the ...
9 years ago (2011-11-30 01:11:09 UTC) #18
miket_OOO
9 years ago (2011-12-06 22:23:42 UTC) #19
http://codereview.chromium.org/8561031/diff/6005/chrome/common/extensions/ext...
File chrome/common/extensions/extension_manifests_unittest.cc (right):

http://codereview.chromium.org/8561031/diff/6005/chrome/common/extensions/ext...
chrome/common/extensions/extension_manifests_unittest.cc:381:
switches::kEnablePlatformApps);
On 2011/11/30 01:11:09, Aaron Boodman wrote:
> This doesn't seem as good. Now all the manifest tests below have this flag
> turned on.
> 
> Without ScopedCommandLineOverride, we should move the tests that need this
flag
> to a separate test.

Review for this change is on its way.

Powered by Google App Engine
This is Rietveld 408576698