16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_TEST_AVSCOMMON_UTILS_HTTP2_MOCKHTTP2MIMERESPONSEDECODESINK_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_TEST_AVSCOMMON_UTILS_HTTP2_MOCKHTTP2MIMERESPONSEDECODESINK_H_ 46 bool onBeginMimePart(
const std::multimap<std::string, std::string>& headers)
override;
58 bool hasSameContentAs(std::shared_ptr<MockHTTP2MimeRequestEncodeSource> source);
69 std::vector<std::string>
m_data;
72 std::vector<std::multimap<std::string, std::string>>
m_headers;
89 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_TEST_AVSCOMMON_UTILS_HTTP2_MOCKHTTP2MIMERESPONSEDECODESINK_H_ std::string m_nonMimeData
Non mime data received.
Definition: MockHTTP2MimeResponseDecodeSink.h:82
bool hasSameContentAs(std::shared_ptr< MockHTTP2MimeRequestEncodeSource > source)
Definition: MockHTTP2MimeResponseDecodeSink.cpp:88
size_t m_index
current MIME part index
Definition: MockHTTP2MimeResponseDecodeSink.h:74
~MockHTTP2MimeResponseDecodeSink()=default
Definition: HTTP2MimeResponseSinkInterface.h:36
::std::string string
Definition: gtest-port.h:1097
avsCommon::utils::http2::HTTP2ReceiveDataStatus onReceiveNonMimeData(const char *bytes, size_t size) override
Definition: MockHTTP2MimeResponseDecodeSink.cpp:80
bool m_slowSink
enable sending PAUSE intermittently
Definition: MockHTTP2MimeResponseDecodeSink.h:76
void onResponseFinished(avsCommon::utils::http2::HTTP2ResponseFinishedStatus status) override
Definition: MockHTTP2MimeResponseDecodeSink.cpp:85
size_t m_pauseCount
PAUSE count.
Definition: MockHTTP2MimeResponseDecodeSink.h:80
Definition: MockHTTP2MimeResponseDecodeSink.h:34
HTTP2ResponseFinishedStatus
Definition: HTTP2ResponseFinishedStatus.h:29
bool onReceiveHeaderLine(const std::string &line) override
Definition: MockHTTP2MimeResponseDecodeSink.cpp:44
bool onReceiveResponseCode(long responseCode) override
Definition: MockHTTP2MimeResponseDecodeSink.cpp:40
avsCommon::utils::http2::HTTP2ReceiveDataStatus onReceiveMimeData(const char *bytes, size_t size) override
Definition: MockHTTP2MimeResponseDecodeSink.cpp:65
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
std::vector< std::multimap< std::string, std::string > > m_headers
MIME headers received for every part.
Definition: MockHTTP2MimeResponseDecodeSink.h:72
bool onEndMimePart() override
Definition: MockHTTP2MimeResponseDecodeSink.cpp:57
MockHTTP2MimeResponseDecodeSink()
Definition: MockHTTP2MimeResponseDecodeSink.cpp:33
bool onBeginMimePart(const std::multimap< std::string, std::string > &headers) override
Definition: MockHTTP2MimeResponseDecodeSink.cpp:48
HTTP2ReceiveDataStatus
Definition: HTTP2ReceiveDataStatus.h:28
bool m_abort
If ABORT is to be sent.
Definition: MockHTTP2MimeResponseDecodeSink.h:78
std::vector< std::string > m_data
MIME data parts received.
Definition: MockHTTP2MimeResponseDecodeSink.h:70