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

Issue 1578983003: [Chromecast] Store ALSA Mixer test data as uint32_t. (Closed)

Created:
4 years, 11 months ago by slan
Modified:
4 years, 11 months ago
CC:
chromium-reviews, gunsch+watch_chromium.org, lcwu+watch_chromium.org, halliwell+watch_chromium.org, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromecast] Store ALSA Mixer test data as uint32_t. ::media::AudioBus relies on 16-byte alignment for any float data it wraps, which is a very brittle assumption for a float array declared statically in a testing source file. Store this data instead as 32-bit integers, copying these into memory that ::media::AudioBus allocates. This change also replaces some magic numbers with appropriately-named constants. Bug: b/26445504 BUG= Committed: https://crrev.com/24b25293b834fd58a0b41b498b03a773eb032784 Cr-Commit-Position: refs/heads/master@{#368933}

Patch Set 1 #

Patch Set 2 : Correct typo. #

Total comments: 13

Patch Set 3 : Comments addressed. #

Total comments: 2

Patch Set 4 : Comment update, sizeof => size_t #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -96 lines) Patch
M chromecast/media/cma/backend/alsa/mock_alsa_wrapper.cc View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc View 1 2 3 8 chunks +104 lines, -94 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
slan
These tests started failing on pepperoni when these got upstreamed last week - not sure ...
4 years, 11 months ago (2016-01-12 16:30:53 UTC) #2
cleichner
https://codereview.chromium.org/1578983003/diff/20001/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc File chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc (right): https://codereview.chromium.org/1578983003/diff/20001/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc#newcode30 chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc:30: const int kBytesPerSample = sizeof(int32_t); size_t https://codereview.chromium.org/1578983003/diff/20001/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc#newcode500 chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc:500: // ...
4 years, 11 months ago (2016-01-12 17:12:33 UTC) #3
kmackay
https://codereview.chromium.org/1578983003/diff/20001/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc File chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc (right): https://codereview.chromium.org/1578983003/diff/20001/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc#newcode499 chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc:499: // Create edge case data for the inputs. These ...
4 years, 11 months ago (2016-01-12 17:19:29 UTC) #4
slan
https://codereview.chromium.org/1578983003/diff/20001/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc File chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc (right): https://codereview.chromium.org/1578983003/diff/20001/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc#newcode30 chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc:30: const int kBytesPerSample = sizeof(int32_t); On 2016/01/12 17:12:32, cleichner ...
4 years, 11 months ago (2016-01-12 17:45:07 UTC) #5
cleichner
https://codereview.chromium.org/1578983003/diff/20001/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc File chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc (right): https://codereview.chromium.org/1578983003/diff/20001/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc#newcode30 chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc:30: const int kBytesPerSample = sizeof(int32_t); On 2016/01/12 17:45:07, slan ...
4 years, 11 months ago (2016-01-12 18:13:54 UTC) #6
cleichner
https://codereview.chromium.org/1578983003/diff/40001/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc File chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc (right): https://codereview.chromium.org/1578983003/diff/40001/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc#newcode504 chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc:504: // every combination of {-(2^31), 0, 2^31-1} is tested. ...
4 years, 11 months ago (2016-01-12 18:15:27 UTC) #7
kmackay
lgtm
4 years, 11 months ago (2016-01-12 18:20:03 UTC) #8
slan
Done, thanks for picking up the small stuff. https://codereview.chromium.org/1578983003/diff/20001/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc File chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc (right): https://codereview.chromium.org/1578983003/diff/20001/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc#newcode30 chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc:30: const ...
4 years, 11 months ago (2016-01-12 18:30:04 UTC) #9
cleichner
lgtm
4 years, 11 months ago (2016-01-12 18:35:31 UTC) #10
cleichner
lgtm
4 years, 11 months ago (2016-01-12 18:35:32 UTC) #11
halliwell
On 2016/01/12 18:35:32, cleichner wrote: > lgtm lgtm
4 years, 11 months ago (2016-01-12 18:37:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578983003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578983003/60001
4 years, 11 months ago (2016-01-12 18:38:24 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-12 19:07:23 UTC) #16
commit-bot: I haz the power
4 years, 11 months ago (2016-01-12 19:09:05 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/24b25293b834fd58a0b41b498b03a773eb032784
Cr-Commit-Position: refs/heads/master@{#368933}

Powered by Google App Engine
This is Rietveld 408576698