// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifdef UNSAFE_BUFFERS_BUILD // TODO(crbug.com/40285824): Remove this and convert code to safer constructs. #pragma allow_unsafe_buffers #endif // TODO(henrika): add test which included |start_frame| in Consume() call. #include <memory> #include "media/base/audio_fifo.h" #include "testing/gtest/include/gtest/gtest.h" namespace media { class AudioFifoTest : public testing::Test { … }; // Verify that construction works as intended. TEST_F(AudioFifoTest, Construct) { … } // Pushes audio bus objects to a FIFO and fill it up to different degrees. TEST_F(AudioFifoTest, Push) { … } // Consumes audio bus objects from a FIFO and empty it to different degrees. TEST_F(AudioFifoTest, Consume) { … } // Verify that the frames() method of the FIFO works as intended while // appending and removing audio bus elements to/from the FIFO. TEST_F(AudioFifoTest, FramesInFifo) { … } // Perform a sequence of Push/Consume calls and verify that the data written // to the FIFO is correctly retrieved, i.e., that the order is correct and the // values are correct. TEST_F(AudioFifoTest, VerifyDataValues) { … } } // namespace media