#include "media/filters/decrypting_audio_decoder.h"
#include <stdint.h>
#include <string>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/gmock_move_support.h"
#include "base/test/task_environment.h"
#include "media/base/audio_buffer.h"
#include "media/base/decoder_buffer.h"
#include "media/base/decrypt_config.h"
#include "media/base/media_util.h"
#include "media/base/mock_filters.h"
#include "media/base/mock_media_log.h"
#include "media/base/test_helpers.h"
#include "media/base/timestamp_constants.h"
#include "testing/gmock/include/gmock/gmock.h"
RunOnceCallback;
_;
AtMost;
HasSubstr;
Return;
StrictMock;
namespace media {
const int kSampleRate = …;
const int kFakeAudioFrameSize = …;
const int kDecodingDelay = …;
class DecryptingAudioDecoderTest : public testing::Test { … };
TEST_F(DecryptingAudioDecoderTest, Initialize_Normal) { … }
TEST_F(DecryptingAudioDecoderTest, Initialize_InvalidAudioConfig) { … }
TEST_F(DecryptingAudioDecoderTest, Initialize_UnsupportedAudioConfig) { … }
TEST_F(DecryptingAudioDecoderTest, Initialize_CdmWithoutDecryptor) { … }
TEST_F(DecryptingAudioDecoderTest, DecryptAndDecode_Normal) { … }
TEST_F(DecryptingAudioDecoderTest, DecryptAndDecode_SubsampleError) { … }
TEST_F(DecryptingAudioDecoderTest, DecryptAndDecode_DecodeError) { … }
TEST_F(DecryptingAudioDecoderTest, DecryptAndDecode_MultipleFrames) { … }
TEST_F(DecryptingAudioDecoderTest, DecryptAndDecode_EndOfStream) { … }
TEST_F(DecryptingAudioDecoderTest, Reinitialize_EncryptedToEncrypted) { … }
TEST_F(DecryptingAudioDecoderTest, Reinitialize_EncryptedToClear) { … }
TEST_F(DecryptingAudioDecoderTest, KeyAdded_DuringWaitingForKey) { … }
TEST_F(DecryptingAudioDecoderTest, KeyAdded_DuringPendingDecode) { … }
TEST_F(DecryptingAudioDecoderTest, Reset_DuringIdleAfterInitialization) { … }
TEST_F(DecryptingAudioDecoderTest, Reset_DuringIdleAfterDecodedOneFrame) { … }
TEST_F(DecryptingAudioDecoderTest, Reset_DuringPendingDecode) { … }
TEST_F(DecryptingAudioDecoderTest, Reset_DuringWaitingForKey) { … }
TEST_F(DecryptingAudioDecoderTest, Reset_AfterDecodeFinished) { … }
TEST_F(DecryptingAudioDecoderTest, Reset_AfterReset) { … }
}