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

Unified Diff: media/base/audio_bus_unittest.cc

Issue 2101403005: media: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove comment Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/video_capture_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_bus_unittest.cc
diff --git a/media/base/audio_bus_unittest.cc b/media/base/audio_bus_unittest.cc
index 66585b2a9a195c4c00789eb68290d3493fcdfc6e..63dcb0cad0aaa85e0b47dc41c92df289a04d3828 100644
--- a/media/base/audio_bus_unittest.cc
+++ b/media/base/audio_bus_unittest.cc
@@ -544,7 +544,7 @@ struct ZeroingOutTestData {
// [1.0, 2.0, 3.0, ...]
bus_under_test = AudioBus::Create(kChannelCount, kFrameCount);
for (int ch = 0; ch < kChannelCount; ++ch) {
- auto sample_array_for_current_channel = bus_under_test->channel(ch);
+ auto* sample_array_for_current_channel = bus_under_test->channel(ch);
for (int frame_index = 0; frame_index < kFrameCount; frame_index++) {
sample_array_for_current_channel[frame_index] =
static_cast<float>(frame_index + 1);
@@ -568,7 +568,7 @@ TEST_F(AudioBusTest, FromInterleavedZerosOutUntouchedFrames) {
// Verification
for (int ch = 0; ch < test_data.kChannelCount; ++ch) {
- auto sample_array_for_current_channel =
+ auto* sample_array_for_current_channel =
test_data.bus_under_test->channel(ch);
for (int frame_index = test_data.kInterleavedFrameCount;
frame_index < test_data.kFrameCount; frame_index++) {
@@ -591,7 +591,7 @@ TEST_F(AudioBusTest, FromInterleavedPartialDoesNotZeroOutUntouchedFrames) {
// Verification
for (int ch = 0; ch < test_data.kChannelCount; ++ch) {
- auto sample_array_for_current_channel =
+ auto* sample_array_for_current_channel =
test_data.bus_under_test->channel(ch);
for (int frame_index =
test_data.kInterleavedFrameCount + kWriteOffsetInFrames;
@@ -614,7 +614,7 @@ TEST_F(AudioBusTest, FromInterleavedPartialDoesNotZeroOutUntouchedFrames) {
// Verification
for (int ch = 0; ch < test_data.kChannelCount; ++ch) {
- auto sample_array_for_current_channel =
+ auto* sample_array_for_current_channel =
test_data.bus_under_test->channel(ch);
// Check untouched frames before write offset
for (int frame_index = 0; frame_index < kWriteOffsetInFrames;
« no previous file with comments | « no previous file | media/base/video_capture_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698