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

Issue 4390001: Fix the testing::LogDisabler for the change r64883. See http://codereview.chr... (Closed)

Created:
10 years, 1 month ago by hansl_g
Modified:
9 years, 7 months ago
Reviewers:
brettw, Jói, hansl, akalin
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Fix the testing::LogDisabler for the change r64883. See http://codereview.chromium.org/4262001/show The r64883 broke most unit tests in CEEE that relied on disabling logs while testing error paths. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64948

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -4 lines) Patch
M base/logging.h View 2 chunks +2 lines, -0 lines 0 comments Download
M base/logging.cc View 1 chunk +4 lines, -0 lines 0 comments Download
ceee/testing/utils/test_utils.h View 1 chunk +2 lines, -1 line 0 comments Download
M ceee/testing/utils/test_utils.cc View 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
hansl
Please take a look. brettw, akalin: This is following the change earlier today: http://codereview.chromium.org/4262001 Thanks
10 years, 1 month ago (2010-11-03 18:01:11 UTC) #1
akalin
LGTM, sorry for the breakage. Is there a way I could have avoided it? On ...
10 years, 1 month ago (2010-11-03 18:16:51 UTC) #2
hansl_g
By asking gently :P CEEE isn't in the official waterfall yet, that's why you didn't ...
10 years, 1 month ago (2010-11-03 18:18:24 UTC) #3
Jói
LGTM The nice thing here is that with some additions we could start asserting in ...
10 years, 1 month ago (2010-11-03 18:21:51 UTC) #4
akalin
On 2010/11/03 18:18:24, hansl_g wrote: > By asking gently :P > > CEEE isn't in ...
10 years, 1 month ago (2010-11-03 18:26:19 UTC) #5
Jói
10 years, 1 month ago (2010-11-03 18:28:23 UTC) #6
The initial intent was just to disable DCHECKs (but ideally to be able
to set a flag that they happened, which unit tests could assert on -
that's not in yet but Hans's change seems to make that easily
possible). I agree we could move it to base once it's just DCHECKs.

Cheers,
Jói


On Wed, Nov 3, 2010 at 2:26 PM,  <akalin@chromium.org> wrote:
> On 2010/11/03 18:18:24, hansl_g wrote:
>>
>> By asking gently  :P
>
>> CEEE isn't in the official waterfall yet, that's why you didn't see it.
>> Better
>> knowledge in the interaction between ::testing and ::logging would
>> probably
>
> have
>>
>> raised the issue. Don't worry much.
>
>> Should I wait for brettw lgtm?
>
> I don't think that's needed.
>
> The LogDisabler may be useful in some other Chrome unit tests (e.g., the ipc
> one
> that broke in my CL).  Is the LogDisabler meant to be used simply to stop
> DCHECKs or is blocking *all* log messages needed?  If it's the former, then
> maybe it could be moved to base/ to prevent future breakage.
>
> http://codereview.chromium.org/4390001/show
>

Powered by Google App Engine
This is Rietveld 408576698