#include "media/filters/decrypting_video_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/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/video_frame.h"
#include "testing/gmock/include/gmock/gmock.h"
RunOnceCallback;
RunOnceCallbackRepeatedly;
_;
HasSubstr;
Invoke;
Return;
StrictMock;
WithArg;
namespace media {
const int kDecodingDelay = …;
class DecryptingVideoDecoderTest : public testing::Test { … };
TEST_F(DecryptingVideoDecoderTest, Initialize_Normal) { … }
TEST_F(DecryptingVideoDecoderTest, Initialize_CdmWithoutDecryptor) { … }
TEST_F(DecryptingVideoDecoderTest, Initialize_Failure) { … }
TEST_F(DecryptingVideoDecoderTest, Reinitialize_EncryptedToEncrypted) { … }
TEST_F(DecryptingVideoDecoderTest, Reinitialize_EncryptedToClear) { … }
TEST_F(DecryptingVideoDecoderTest, ClearToEncryptedNormal) { … }
TEST_F(DecryptingVideoDecoderTest, EncryptedBuffersNoMediaLog) { … }
TEST_F(DecryptingVideoDecoderTest, Reinitialize_Failure) { … }
TEST_F(DecryptingVideoDecoderTest, DecryptAndDecode_Normal) { … }
TEST_F(DecryptingVideoDecoderTest, DecryptAndDecode_SubsampleError) { … }
TEST_F(DecryptingVideoDecoderTest, DecryptAndDecode_DecodeError) { … }
TEST_F(DecryptingVideoDecoderTest, DecryptAndDecode_EndOfStream) { … }
TEST_F(DecryptingVideoDecoderTest, KeyAdded_DuringWaitingForKey) { … }
TEST_F(DecryptingVideoDecoderTest, KeyAdded_DuringPendingDecode) { … }
TEST_F(DecryptingVideoDecoderTest, Reset_DuringIdleAfterInitialization) { … }
TEST_F(DecryptingVideoDecoderTest, Reset_DuringIdleAfterDecodedOneFrame) { … }
TEST_F(DecryptingVideoDecoderTest, Reset_DuringPendingDecode) { … }
TEST_F(DecryptingVideoDecoderTest, Reset_DuringWaitingForKey) { … }
TEST_F(DecryptingVideoDecoderTest, Reset_AfterDecodeFinished) { … }
TEST_F(DecryptingVideoDecoderTest, Reset_AfterReset) { … }
TEST_F(DecryptingVideoDecoderTest, Destroy_DuringPendingDecoderInit) { … }
TEST_F(DecryptingVideoDecoderTest, Destroy_DuringIdleAfterInitialization) { … }
TEST_F(DecryptingVideoDecoderTest, Destroy_DuringIdleAfterDecodedOneFrame) { … }
TEST_F(DecryptingVideoDecoderTest, Destroy_DuringPendingDecode) { … }
TEST_F(DecryptingVideoDecoderTest, Destroy_DuringWaitingForKey) { … }
TEST_F(DecryptingVideoDecoderTest, Destroy_AfterDecodeFinished) { … }
TEST_F(DecryptingVideoDecoderTest, Destroy_DuringPendingReset) { … }
TEST_F(DecryptingVideoDecoderTest, Destroy_AfterReset) { … }
TEST_F(DecryptingVideoDecoderTest, ColorSpace) { … }
TEST_F(DecryptingVideoDecoderTest, HDRMetadata) { … }
}