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

Public Attributes

const std::string boundary {"wooohooo"}
 boundary More...
 
const std::string payload1 {"The quick brown fox jumped over the lazy dog"}
 payloads More...
 
const std::string payload2
 
const std::string payload3
 
const std::string key1 {"content-type"}
 
const std::string key2 {"content-type"}
 
const std::string key3 {"xyz-abc"}
 
const std::string key4 {"holy-cow"}
 
const std::string key5 {"x-amzn-id"}
 
const std::string value1 {"plain/text"}
 
const std::string value2 {"application/xml"}
 
const std::string value3 {"123243124"}
 
const std::string value4 {"tellmehow"}
 
const std::string value5 {"eg1782ge71g172ge1"}
 
const std::string header1 {BUILD_HEADER(1)}
 
const std::string header2 {BUILD_HEADER(2)}
 
const std::string header3 {BUILD_HEADER(3)}
 
const std::string header4 {BUILD_HEADER(4)}
 
const std::string header5 {BUILD_HEADER(5)}
 
const std::string encodedPayload
 Expected output from encoding the above. More...
 
const size_t encodedSize = encodedPayload.size()
 Expected size. More...
 
const std::vector< std::string > headers1 = {header2, header3, header4}
 Header sets for each payload. More...
 
const std::vector< std::string > headers2 = {header1, header5}
 
const std::vector< std::string > headers3 = {header1}
 
const std::vector< std::multimap< std::string, std::string > > expectedHeaders
 Expected header values. More...
 
const std::vector< std::string > expectedData = {payload1, payload2, payload3}
 Expected data (payloads). More...
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
- 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)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 

Member Data Documentation

◆ boundary

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::boundary {"wooohooo"}

boundary

◆ encodedPayload

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::encodedPayload
Initial value:
=
"\r\n--wooohooo"
"\r\ncontent-type: application/xml"
"\r\nxyz-abc: 123243124"
"\r\nholy-cow: tellmehow"
"\r\n"
"\r\nThe quick brown fox jumped over the lazy dog"
"\r\n--wooohooo"
"\r\ncontent-type: plain/text"
"\r\nx-amzn-id: eg1782ge71g172ge1"
"\r\n"
"\r\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt "
"ut labore et dolore magna aliqua.\n Ut enim ad minim veniam, quis nostrud exercitation ullamco "
"laboris nisi ut aliquip ex ea commodo consequat.\n Duis aute irure dolor in reprehenderit in "
"voluptate velit esse cillum dolore eu fugiat nulla pariatur.\n Excepteur sint occaecat cupidatat "
"non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
"\r\n--wooohooo"
"\r\ncontent-type: plain/text"
"\r\n"
"\r\nEnim diam vulputate ut pharetra sit amet aliquam id. Viverra accumsan in nisl nisi "
"scelerisque eu. Ipsum nunc aliquet bibendum enim facilisis gravida neque convallis a. "
"Ullamcorper dignissim cras tincidunt lobortis. Mi proin sed libero enim sed faucibus turpis in."
"\r\n"
"--wooohooo--\r\n"

Expected output from encoding the above.

◆ encodedSize

const size_t alexaClientSDK::avsCommon::test::MIMEParserTest::encodedSize = encodedPayload.size()

Expected size.

◆ expectedData

const std::vector<std::string> alexaClientSDK::avsCommon::test::MIMEParserTest::expectedData = {payload1, payload2, payload3}

Expected data (payloads).

◆ expectedHeaders

const std::vector<std::multimap<std::string, std::string> > alexaClientSDK::avsCommon::test::MIMEParserTest::expectedHeaders
Initial value:
= {
{{key2, value2}, {key3, value3}, {key4, value4}},
{{key1, value1}, {key5, value5}},
{{key1, value1}}}

Expected header values.

◆ header1

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::header1 {BUILD_HEADER(1)}

◆ header2

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::header2 {BUILD_HEADER(2)}

◆ header3

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::header3 {BUILD_HEADER(3)}

◆ header4

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::header4 {BUILD_HEADER(4)}

◆ header5

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::header5 {BUILD_HEADER(5)}

◆ headers1

const std::vector<std::string> alexaClientSDK::avsCommon::test::MIMEParserTest::headers1 = {header2, header3, header4}

Header sets for each payload.

◆ headers2

const std::vector<std::string> alexaClientSDK::avsCommon::test::MIMEParserTest::headers2 = {header1, header5}

◆ headers3

const std::vector<std::string> alexaClientSDK::avsCommon::test::MIMEParserTest::headers3 = {header1}

◆ key1

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::key1 {"content-type"}

◆ key2

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::key2 {"content-type"}

◆ key3

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::key3 {"xyz-abc"}

◆ key4

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::key4 {"holy-cow"}

◆ key5

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::key5 {"x-amzn-id"}

◆ payload1

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::payload1 {"The quick brown fox jumped over the lazy dog"}

payloads

◆ payload2

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::payload2
Initial value:
{
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod "
"tempor incididunt ut labore et dolore magna aliqua.\n Ut enim ad minim "
"veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea "
"commodo consequat.\n Duis aute irure dolor in reprehenderit in "
"voluptate velit esse cillum dolore eu fugiat nulla pariatur.\n "
"Excepteur sint occaecat cupidatat non proident, sunt in culpa qui "
"officia deserunt mollit anim id est laborum."}

◆ payload3

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::payload3
Initial value:
{
"Enim diam vulputate ut pharetra sit amet aliquam id. Viverra accumsan "
"in nisl nisi scelerisque eu. Ipsum nunc aliquet bibendum enim facilisis "
"gravida neque convallis a. Ullamcorper dignissim cras tincidunt "
"lobortis. Mi proin sed libero enim sed faucibus turpis in."}

◆ value1

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::value1 {"plain/text"}

◆ value2

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::value2 {"application/xml"}

◆ value3

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::value3 {"123243124"}

◆ value4

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::value4 {"tellmehow"}

◆ value5

const std::string alexaClientSDK::avsCommon::test::MIMEParserTest::value5 {"eg1782ge71g172ge1"}

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