OLD | NEW |
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 Loading... |
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 |
OLD | NEW |