16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKPOWERRESOURCEMANAGER_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKPOWERRESOURCEMANAGER_H_ 27 namespace sdkInterfaces {
40 std::shared_ptr<PowerResourceId>(
46 bool(
const std::shared_ptr<PowerResourceId>&
id,
const std::chrono::milliseconds autoReleaseTimeout));
62 return std::make_shared<PowerResourceManagerInterface::PowerResourceId>(resourceId);
71 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKPOWERRESOURCEMANAGER_H_
PowerResourceLevel
Definition: PowerResourceManagerInterface.h:49
virtual void acquirePowerResource(const std::string &component, const PowerResourceLevel level=PowerResourceLevel::STANDBY_MED)=0
Definition: AmdMetricWrapperTest.cpp:24
::std::string string
Definition: gtest-port.h:1097
MOCK_METHOD2(acquirePowerResource, void(const std::string &component, const PowerResourceLevel level))
virtual bool isPowerResourceAcquired(const std::string &component)=0
virtual void releasePowerResource(const std::string &component)=0
#define ON_CALL(obj, call)
Definition: gmock-spec-builders.h:1841
MOCK_METHOD1(releasePowerResource, void(const std::string &component))
PolymorphicAction< internal::InvokeAction< FunctionImpl > > Invoke(FunctionImpl function_impl)
Definition: gmock-more-actions.h:114
Definition: MockPowerResourceManager.h:33
virtual std::shared_ptr< PowerResourceId > create(const std::string &resourceId, bool isRefCounted=true, const PowerResourceLevel level=PowerResourceLevel::STANDBY_MED)=0
Definition: PowerResourceManagerInterface.h:38
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual bool release(const std::shared_ptr< PowerResourceId > &id)=0
virtual bool close(const std::shared_ptr< PowerResourceId > &id)=0
const internal::AnythingMatcher _
Definition: gmock-matchers.h:3729
void setDefaultBehavior()
Definition: MockPowerResourceManager.h:56
virtual bool acquire(const std::shared_ptr< PowerResourceId > &id, const std::chrono::milliseconds autoReleaseTimeout=std::chrono::milliseconds::zero())=0
MOCK_METHOD3(create, std::shared_ptr< PowerResourceId >(const std::string &resourceId, bool isRefCounted, const PowerResourceLevel level))