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::settings::test::SharedAVSSettingProtocolTest Class Reference
Inheritance diagram for alexaClientSDK::settings::test::SharedAVSSettingProtocolTest:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::settings::test::SharedAVSSettingProtocolTest:
Collaboration graph
[legend]

Protected Member Functions

void SetUp () override
 
void modifySetting (std::string value, bool isLocal)
 
void testMultipleChanges (bool isLocal)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void TearDown ()
 

Protected Attributes

std::shared_ptr< MockSettingEventSenderm_senderMock
 Mock event sender. More...
 
std::shared_ptr< MockDeviceSettingStoragem_storageMock
 Mock setting storage. More...
 
std::unique_ptr< SharedAVSSettingProtocolm_protocol
 Pointer to a mock protocol. More...
 
std::shared_ptr< MockMetricRecorderm_metricRecorder
 Mock Metric Recorder. More...
 
StrictMock< MockCallbacksm_callbacksMock
 Mock callbacks. More...
 
std::shared_ptr< MockAVSConnectionManagerm_mockConnectionManager
 Mock connection manager;. 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

The test class.

Member Function Documentation

◆ modifySetting()

void alexaClientSDK::settings::test::SharedAVSSettingProtocolTest::modifySetting ( std::string  value,
bool  isLocal 
)
protected

A helper method to change the value of the setting.

Parameters
valueThe string value of the setting.
isLocalTrue means the setting changed is done locally, otherwise, it is a cloud-driven change.

◆ SetUp()

void alexaClientSDK::settings::test::SharedAVSSettingProtocolTest::SetUp ( )
overrideprotectedvirtual

Create protocol object and dependencies mocks.

Reimplemented from testing::Test.

◆ testMultipleChanges()

void alexaClientSDK::settings::test::SharedAVSSettingProtocolTest::testMultipleChanges ( bool  isLocal)
protected

A helper method to test multiple value changes of the setting.

Member Data Documentation

◆ m_callbacksMock

StrictMock<MockCallbacks> alexaClientSDK::settings::test::SharedAVSSettingProtocolTest::m_callbacksMock
protected

Mock callbacks.

◆ m_metricRecorder

std::shared_ptr<MockMetricRecorder> alexaClientSDK::settings::test::SharedAVSSettingProtocolTest::m_metricRecorder
protected

Mock Metric Recorder.

◆ m_mockConnectionManager

std::shared_ptr<MockAVSConnectionManager> alexaClientSDK::settings::test::SharedAVSSettingProtocolTest::m_mockConnectionManager
protected

Mock connection manager;.

◆ m_protocol

std::unique_ptr<SharedAVSSettingProtocol> alexaClientSDK::settings::test::SharedAVSSettingProtocolTest::m_protocol
protected

Pointer to a mock protocol.

◆ m_senderMock

std::shared_ptr<MockSettingEventSender> alexaClientSDK::settings::test::SharedAVSSettingProtocolTest::m_senderMock
protected

Mock event sender.

◆ m_storageMock

std::shared_ptr<MockDeviceSettingStorage> alexaClientSDK::settings::test::SharedAVSSettingProtocolTest::m_storageMock
protected

Mock setting storage.


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