16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKDIRECTIVEHANDLER_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKDIRECTIVEHANDLER_H_ 26 namespace sdkInterfaces {
35 std::shared_ptr<avsCommon::avs::AVSDirective> directive,
36 std::unique_ptr<avsCommon::sdkInterfaces::DirectiveHandlerResultInterface> result)
override;
51 const std::shared_ptr<avsCommon::avs::AVSDirective>& directive,
52 const std::shared_ptr<avsCommon::sdkInterfaces::DirectiveHandlerResultInterface>& result) = 0;
66 const std::shared_ptr<avsCommon::avs::AVSDirective>&,
67 const std::shared_ptr<avsCommon::sdkInterfaces::DirectiveHandlerResultInterface>&));
71 std::shared_ptr<avs::AVSDirective> avsDirective,
72 std::unique_ptr<sdkInterfaces::DirectiveHandlerResultInterface> handler) {
83 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKDIRECTIVEHANDLER_H_ Mock directive handler.
Definition: MockDirectiveHandler.h:56
virtual void handleDirectiveImmediately(std::shared_ptr< avsCommon::avs::AVSDirective > directive)=0
Definition: AmdMetricWrapperTest.cpp:24
::std::string string
Definition: gtest-port.h:1097
#define MOCK_METHOD2(m,...)
Definition: gmock-generated-function-mockers.h:677
virtual ~DirectiveHandlerMockAdapter()=default
A mock adapter that allow us to mock the preHandleDirective since gmock does not work with unique_ptr...
Definition: MockDirectiveHandler.h:30
virtual avs::DirectiveHandlerConfiguration getConfiguration() const =0
std::unordered_map< directiveRoutingRule::DirectiveRoutingRule, BlockingPolicy > DirectiveHandlerConfiguration
Definition: DirectiveHandlerConfiguration.h:32
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
void preHandleDirective(std::shared_ptr< avsCommon::avs::AVSDirective > directive, std::unique_ptr< avsCommon::sdkInterfaces::DirectiveHandlerResultInterface > result) override
virtual bool handleDirective(const std::string &messageId)=0
Definition: DirectiveHandlerInterface.h:39
#define MOCK_METHOD0(m,...)
Definition: gmock-generated-function-mockers.h:675
#define MOCK_METHOD1(m,...)
Definition: gmock-generated-function-mockers.h:676
#define MOCK_CONST_METHOD0(m,...)
Definition: gmock-generated-function-mockers.h:687
virtual void onDeregistered()=0
virtual void cancelDirective(const std::string &messageId)=0
const T & move(const T &t)
Definition: gtest-port.h:1317