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 // TODO(henrika): add test which included |start_frame| in Consume() call. | 5 // TODO(henrika): add test which included |start_frame| in Consume() call. |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "media/base/audio_fifo.h" | 8 #include "media/base/audio_fifo.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
9 | 10 |
10 namespace media { | 11 namespace media { |
11 | 12 |
12 class AudioFifoTest : public testing::Test { | 13 class AudioFifoTest : public testing::Test { |
13 public: | 14 public: |
14 AudioFifoTest() {} | 15 AudioFifoTest() {} |
15 ~AudioFifoTest() override {} | 16 ~AudioFifoTest() override {} |
16 | 17 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 VerifyValue(bus->channel(j), bus->channels(), value); | 186 VerifyValue(bus->channel(j), bus->channels(), value); |
186 std::fill(bus->channel(j), bus->channel(j) + bus->frames(), value + 1); | 187 std::fill(bus->channel(j), bus->channel(j) + bus->frames(), value + 1); |
187 } | 188 } |
188 fifo.Push(bus.get()); | 189 fifo.Push(bus.get()); |
189 EXPECT_EQ(fifo.frames(), bus->frames()); | 190 EXPECT_EQ(fifo.frames(), bus->frames()); |
190 ++value; | 191 ++value; |
191 } | 192 } |
192 } | 193 } |
193 | 194 |
194 } // namespace media | 195 } // namespace media |
OLD | NEW |