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

Side by Side Diff: media/base/audio_bus_unittest.cc

Issue 2932053002: Use C++11 alignment primitives (Closed)
Patch Set: Fix merge Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <limits> 8 #include <limits>
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/aligned_memory.h"
12 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
13 #include "base/time/time.h" 14 #include "base/time/time.h"
14 #include "build/build_config.h" 15 #include "build/build_config.h"
15 #include "media/base/audio_bus.h" 16 #include "media/base/audio_bus.h"
16 #include "media/base/audio_parameters.h" 17 #include "media/base/audio_parameters.h"
17 #include "media/base/audio_sample_types.h" 18 #include "media/base/audio_sample_types.h"
18 #include "media/base/channel_layout.h" 19 #include "media/base/channel_layout.h"
19 #include "media/base/fake_audio_render_callback.h" 20 #include "media/base/fake_audio_render_callback.h"
20 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
21 22
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 677
677 // Verify zero volume case. 678 // Verify zero volume case.
678 bus->Scale(0); 679 bus->Scale(0);
679 for (int i = 0; i < bus->channels(); ++i) { 680 for (int i = 0; i < bus->channels(); ++i) {
680 SCOPED_TRACE("Zero Scale"); 681 SCOPED_TRACE("Zero Scale");
681 VerifyArrayIsFilledWithValue(bus->channel(i), bus->frames(), 0); 682 VerifyArrayIsFilledWithValue(bus->channel(i), bus->frames(), 0);
682 } 683 }
683 } 684 }
684 685
685 } // namespace media 686 } // namespace media
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc ('k') | media/base/video_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698