template <typename DecryptorAdapterT>

class DecryptorAdapterTest

Defined at line 167 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

Protected Members

unique_ptr context_
Inspector inspector_
InterfacePtr decryptor_
InterfacePtr allocator_
unique_ptr codec_impl_
DecryptorAdapterT * decryptor_adapter_
vector input_data_
vector output_data_
optional input_constraints_
optional output_constraints_
optional output_format_
bool end_of_stream_set_
bool end_of_stream_reached_
__wrap_iter input_iter_
InterfacePtr input_collection_
InterfacePtr output_collection_
optional input_buffer_info_
optional output_buffer_info_
optional stream_error_
optional sysmem_error_
optional decryptor_error_
optional input_collection_error_
optional output_collection_error_
unordered_map free_packets_
unordered_map used_packets_
unsigned int successful_packet_count_
set failed_packets_
set freed_failed_packets_
random_device random_device_
mersenne_twister_engine prng_

Protected Methods

void DecryptorAdapterTest<DecryptorAdapterT> ()

Defined at line 169 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

void ~DecryptorAdapterTest<DecryptorAdapterT> ()

Defined at line 199 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

void ConnectDecryptor (bool is_secure)

Defined at line 209 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

void OnStreamFailed (uint64_t stream_lifetime_ordinal, fuchsia::media::StreamError error)

Defined at line 225 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

void OnInputConstraints (fuchsia::media::StreamBufferConstraints ic)

Defined at line 232 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

void OnOutputConstraints (fuchsia::media::StreamOutputConstraints oc)

Defined at line 250 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

void OnOutputFormat (fuchsia::media::StreamOutputFormat of)

Defined at line 270 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

void OnOutputPacket (fuchsia::media::Packet packet, bool error_before, bool error_during)

Defined at line 272 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

void OnFreeInputPacket (fuchsia::media::PacketHeader header)

Defined at line 280 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

void OnOutputEndOfStream (uint64_t stream_lifetime_ordinal, bool error_before)

Defined at line 294 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

void PopulateInputData ()

Defined at line 298 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

fuchsia::media::StreamBufferPartialSettings BindBufferCollection (fuchsia::sysmem2::BufferCollectionPtr & collection, uint32_t cpu_usage, const fuchsia::media::StreamBufferConstraints & constraints)

Defined at line 312 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

fuchsia::media::Packet CreateInputPacket (const std::vector<uint8_t> & data)

Defined at line 336 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

std::vector<uint8_t> ExtractPayloadData (fuchsia::media::Packet packet)

Defined at line 365 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

bool HasFreePackets ()

Defined at line 383 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

void ConfigureInputPackets ()

Defined at line 385 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

void AllocatePacket (uint32_t * packet_index, uint32_t * buffer_index)

Defined at line 403 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

void FreePacket (uint32_t packet_index)

Defined at line 414 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

void PumpInput ()

Defined at line 418 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

void AssertNoChannelErrors ()

Defined at line 429 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc

bool HasChannelErrors ()

Defined at line 438 of file ../../src/media/lib/codec_impl/unit_tests/test_decryptor_adapter.cc