AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Protected Member Functions | Protected Attributes | List of all members
alexaClientSDK::playlistParser::test::Id3TagsRemoverTest Class Reference

Test class for Id3TagsRemoverTest class. More...

Inheritance diagram for alexaClientSDK::playlistParser::test::Id3TagsRemoverTest:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::playlistParser::test::Id3TagsRemoverTest:
Collaboration graph
[legend]

Protected Member Functions

void SetUp () override
 Configure test instance. More...
 
void TearDown () override
 Tear down test instance. More...
 
void readContentAftersRemoval (const ByteVector &content1, const ByteVector &expectedResult, const ByteVector &content2=ByteVector{})
 
- Protected Member Functions inherited from testing::Test
 Test ()
 

Protected Attributes

std::shared_ptr< InProcessAttachmentm_contentAttachment
 Attachment used origin content. More...
 
std::shared_ptr< AttachmentWriterm_contentWriter
 Writer to write content with tags removed. More...
 
std::shared_ptr< InProcessAttachmentm_removerAttachment
 Attachment used by ID3 tag remover. More...
 
std::shared_ptr< AttachmentWriterm_removerWriter
 Writer to write content with tags removed. More...
 
std::shared_ptr< AttachmentReaderm_removerReader
 Reader to read content with tags removed. More...
 
std::shared_ptr< Id3TagsRemoverm_id3TagsRemover
 Instance of the Id3TagsRemover. More...
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 

Detailed Description

Test class for Id3TagsRemoverTest class.

Member Function Documentation

◆ readContentAftersRemoval()

void alexaClientSDK::playlistParser::test::Id3TagsRemoverTest::readContentAftersRemoval ( const ByteVector content1,
const ByteVector expectedResult,
const ByteVector content2 = ByteVector{} 
)
protected

Helper method to write content1 and content2 (if exist) into m_contentAttachment, and read data from m_removerAttachment and check if the result are expected.

Parameters
content1The content to write to m_contentAttachment.
expectedResultThe expected result after ID3 tags are removed.
content2The content (if exist) to write to m_contentAttachment.

◆ SetUp()

void alexaClientSDK::playlistParser::test::Id3TagsRemoverTest::SetUp ( )
overrideprotectedvirtual

Configure test instance.

Reimplemented from testing::Test.

◆ TearDown()

void alexaClientSDK::playlistParser::test::Id3TagsRemoverTest::TearDown ( )
overrideprotectedvirtual

Tear down test instance.

Reimplemented from testing::Test.

Member Data Documentation

◆ m_contentAttachment

std::shared_ptr<InProcessAttachment> alexaClientSDK::playlistParser::test::Id3TagsRemoverTest::m_contentAttachment
protected

Attachment used origin content.

◆ m_contentWriter

std::shared_ptr<AttachmentWriter> alexaClientSDK::playlistParser::test::Id3TagsRemoverTest::m_contentWriter
protected

Writer to write content with tags removed.

◆ m_id3TagsRemover

std::shared_ptr<Id3TagsRemover> alexaClientSDK::playlistParser::test::Id3TagsRemoverTest::m_id3TagsRemover
protected

Instance of the Id3TagsRemover.

◆ m_removerAttachment

std::shared_ptr<InProcessAttachment> alexaClientSDK::playlistParser::test::Id3TagsRemoverTest::m_removerAttachment
protected

Attachment used by ID3 tag remover.

◆ m_removerReader

std::shared_ptr<AttachmentReader> alexaClientSDK::playlistParser::test::Id3TagsRemoverTest::m_removerReader
protected

Reader to read content with tags removed.

◆ m_removerWriter

std::shared_ptr<AttachmentWriter> alexaClientSDK::playlistParser::test::Id3TagsRemoverTest::m_removerWriter
protected

Writer to write content with tags removed.


The documentation for this class was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0