AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
PowerResourceTest.cpp File Reference
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <AVSCommon/SDKInterfaces/MockPowerResourceManager.h>
#include <AVSCommon/Utils/Power/PowerResource.h>
Include dependency graph for PowerResourceTest.cpp:

Classes

class  alexaClientSDK::avsCommon::utils::power::test::PowerResourceTest
 

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::avsCommon
 
 alexaClientSDK::avsCommon::utils
 
 alexaClientSDK::avsCommon::utils::power
 
 alexaClientSDK::avsCommon::utils::power::test
 

Functions

 alexaClientSDK::avsCommon::utils::power::test::MATCHER_P (HasPowerResourceId, id, "")
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_createWithNull)
 Test that passing in a nullptr for PowerResourceManagerInterface results in a nullptr. More...
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_getters)
 Test that basic getters work as expected. More...
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_acquire)
 Test acquire calls the underlying PowerResourceManagerInterface. More...
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_multiAcquire)
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_destructor_releases)
 Test destructor releases. More...
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_releaseNoAcquireSucceeds)
 Test release calls the underlying PowerResourceManagerInterface. More...
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_release)
 Test release calls the underlying PowerResourceManagerInterface. More...
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_multiReleaseSymmetricalSucceeds)
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_multiReleaseAssymmetricalSucceeds)
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_freezeMultiSucceeds)
 Test freeze calls underlying PowerResourceManagerInterface. More...
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_frozenAcquireFails)
 Test acquiring a frozen resource fails. More...
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_frozenReleaseFails)
 Test releasing a frozen resource fails. More...
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_multipleFreezeIdempotent)
 Test multiple freeze calls keeps resource frozen and maintains the refcount. More...
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_thawMulti)
 Test thaw acquires as many refCounts as available. More...
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_thawAcquireSucceeds)
 Test acquiring a thawed resource succeeds. More...
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_thawReleaseSucceeds)
 Test releasing a thawed resource succeeds. More...
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_multipleThawIdempotent)
 Test multiple thaws results. More...
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_notRefCountedMultipleAcquireSuccceeds)
 Test that acquire for a non-refCounted resource results in a refCount of 1. More...
 
 alexaClientSDK::avsCommon::utils::power::test::TEST_F (PowerResourceTest, test_notRefCountedReleaseSucceeds)
 Test that in a none refCounted resource release works. More...
 

Variables

static std::string alexaClientSDK::avsCommon::utils::power::test::TEST_ID = "test"
 
static std::string alexaClientSDK::avsCommon::utils::power::test::PREFIXED_TEST_ID = std::string(PowerResource::PREFIX) + "test"
 
static PowerResourceManagerInterface::PowerResourceLevel alexaClientSDK::avsCommon::utils::power::test::TEST_LEVEL
 
static bool alexaClientSDK::avsCommon::utils::power::test::TEST_REFCOUNTED = true
 

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