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

Issue 2920243002: Declare kAppendWholeFile as constexpr (Closed)

Created:
3 years, 6 months ago by wdzierzanowski
Modified:
3 years, 6 months ago
Reviewers:
xjz, wolenetz
CC:
chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Declare kAppendWholeFile as constexpr kAppendWholeFile was dynamically initialized, causing it to be 0 at the time of the initialization of the kMediaSourceADTSTests array when built with VC 2015. This resulted in an assertion failure in MockMediaSource constructor. std::numeric_limits::max() is constexpr in C++11, so fix that by declaring kAppendWholeFile as constexpr too. While we're here, let's change DCHECKs in mock_media_source.cc to CHECKS, because there is no reason to prefer DCHECK over CHECK in test-only code. TEST=media_unittests --gtest_filter=ProprietaryCodecs/BasicMSEPlaybackTest.PlayToEnd/* Review-Url: https://codereview.chromium.org/2920243002 Cr-Commit-Position: refs/heads/master@{#477755} Committed: https://chromium.googlesource.com/chromium/src/+/1250a508840b955c6e96eae698cf9783ec1f39d7

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -9 lines) Patch
M media/test/mock_media_source.h View 2 chunks +3 lines, -1 line 0 comments Download
M media/test/mock_media_source.cc View 5 chunks +7 lines, -8 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
wdzierzanowski
Hi! I think this regressed in https://codereview.chromium.org/2808583002. What do you think about this fix?
3 years, 6 months ago (2017-06-05 10:27:53 UTC) #2
xhwang
looking good, but I'd like to defer to wolenetz@ to take a look as well
3 years, 6 months ago (2017-06-07 05:05:55 UTC) #6
wolenetz
LGTM % link in the CL description the relevant crbug, if any (I assume VC ...
3 years, 6 months ago (2017-06-07 18:25:51 UTC) #8
wdzierzanowski
I could find no crbug for this. I can make one if it's needed. I ...
3 years, 6 months ago (2017-06-07 19:28:11 UTC) #11
wolenetz
On 2017/06/07 19:28:11, wdzierzanowski wrote: > I could find no crbug for this. I can ...
3 years, 6 months ago (2017-06-07 19:29:28 UTC) #12
wdzierzanowski
OK. Thanks for reviewing!
3 years, 6 months ago (2017-06-07 19:31:56 UTC) #13
xjz
lgtm
3 years, 6 months ago (2017-06-07 20:21:27 UTC) #14
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/2920243002/1
3 years, 6 months ago (2017-06-07 20:34:46 UTC) #18
commit-bot: I haz the power
3 years, 6 months ago (2017-06-07 20:48:09 UTC) #21
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/1250a508840b955c6e96eae698cf...

Powered by Google App Engine
This is Rietveld 408576698