AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
alexaClientSDK::capabilityAgents::powerController::test::PowerControllerCapabilityAgentTest Class Reference
Inheritance diagram for alexaClientSDK::capabilityAgents::powerController::test::PowerControllerCapabilityAgentTest:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::capabilityAgents::powerController::test::PowerControllerCapabilityAgentTest:
Collaboration graph
[legend]

Public Member Functions

void SetUp () override
 SetUp before each test case. More...
 
void TearDown () override
 Clean up the test harness after running a test. More...
 
 PowerControllerCapabilityAgentTest ()
 Constructor. More...
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 

Protected Member Functions

std::shared_ptr< PowerControllerCapabilityAgentcreateCapabilityAgentAndSetExpects (bool proactivelyReported, bool retrievable)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 

Protected Attributes

PowerControllerInterface::PowerState m_testPowerStateOn
 The test PowerState as ON. More...
 
std::shared_ptr< StrictMock< MockPowerControllerInterface > > m_mockPowerController
 A mock PowerContollerInterface object. More...
 
std::shared_ptr< PowerControllerObserverInterfacem_observer
 A mock PowerContollerObserverInterface object. More...
 
std::shared_ptr< StrictMock< MockContextManager > > m_mockContextManager
 
std::shared_ptr< MockAlexaInterfaceMessageSenderm_mockResponseSender
 Response sender mock to track events being sent. More...
 
std::shared_ptr< StrictMock< MockExceptionEncounteredSender > > m_mockExceptionSender
 
std::unique_ptr< StrictMock< MockDirectiveHandlerResult > > m_mockDirectiveHandlerResult
 A strict mock that allows the test to strictly monitor the handling of directives. More...
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- 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)
 

Constructor & Destructor Documentation

◆ PowerControllerCapabilityAgentTest()

alexaClientSDK::capabilityAgents::powerController::test::PowerControllerCapabilityAgentTest::PowerControllerCapabilityAgentTest ( )
inline

Constructor.

Member Function Documentation

◆ createCapabilityAgentAndSetExpects()

std::shared_ptr< PowerControllerCapabilityAgent > alexaClientSDK::capabilityAgents::powerController::test::PowerControllerCapabilityAgentTest::createCapabilityAgentAndSetExpects ( bool  proactivelyReported,
bool  retrievable 
)
protected

Function to create PowerControllerCapabilityAgent based on the reportable flags and sets required ContextManager and PowerController mocks.

◆ SetUp()

void alexaClientSDK::capabilityAgents::powerController::test::PowerControllerCapabilityAgentTest::SetUp ( )
overridevirtual

SetUp before each test case.

Reimplemented from testing::Test.

◆ TearDown()

void alexaClientSDK::capabilityAgents::powerController::test::PowerControllerCapabilityAgentTest::TearDown ( )
overridevirtual

Clean up the test harness after running a test.

Reimplemented from testing::Test.

Member Data Documentation

◆ m_mockContextManager

std::shared_ptr<StrictMock<MockContextManager> > alexaClientSDK::capabilityAgents::powerController::test::PowerControllerCapabilityAgentTest::m_mockContextManager
protected

◆ m_mockDirectiveHandlerResult

std::unique_ptr<StrictMock<MockDirectiveHandlerResult> > alexaClientSDK::capabilityAgents::powerController::test::PowerControllerCapabilityAgentTest::m_mockDirectiveHandlerResult
protected

A strict mock that allows the test to strictly monitor the handling of directives.

◆ m_mockExceptionSender

std::shared_ptr<StrictMock<MockExceptionEncounteredSender> > alexaClientSDK::capabilityAgents::powerController::test::PowerControllerCapabilityAgentTest::m_mockExceptionSender
protected

◆ m_mockPowerController

std::shared_ptr<StrictMock<MockPowerControllerInterface> > alexaClientSDK::capabilityAgents::powerController::test::PowerControllerCapabilityAgentTest::m_mockPowerController
protected

A mock PowerContollerInterface object.

◆ m_mockResponseSender

std::shared_ptr<MockAlexaInterfaceMessageSender> alexaClientSDK::capabilityAgents::powerController::test::PowerControllerCapabilityAgentTest::m_mockResponseSender
protected

Response sender mock to track events being sent.

◆ m_observer

std::shared_ptr<PowerControllerObserverInterface> alexaClientSDK::capabilityAgents::powerController::test::PowerControllerCapabilityAgentTest::m_observer
protected

A mock PowerContollerObserverInterface object.

◆ m_testPowerStateOn

PowerControllerInterface::PowerState alexaClientSDK::capabilityAgents::powerController::test::PowerControllerCapabilityAgentTest::m_testPowerStateOn
protected

The test PowerState as ON.


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