2017-05-26 23:06:14 +00:00
|
|
|
/*
|
2018-02-12 23:31:53 +00:00
|
|
|
* Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
2017-05-26 23:06:14 +00:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
|
|
* You may not use this file except in compliance with the License.
|
|
|
|
* A copy of the License is located at
|
|
|
|
*
|
|
|
|
* http://aws.amazon.com/apache2.0/
|
|
|
|
*
|
|
|
|
* or in the "license" file accompanying this file. This file is distributed
|
|
|
|
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
|
|
* express or implied. See the License for the specific language governing
|
|
|
|
* permissions and limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/// @file MimeParserTest.cpp
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <random>
|
|
|
|
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
|
|
|
|
#include "ACL/Transport/MessageConsumerInterface.h"
|
2017-10-30 22:14:38 +00:00
|
|
|
#include <ACL/Transport/HTTP2Stream.h>
|
2017-05-26 23:06:14 +00:00
|
|
|
#include <AVSCommon/SDKInterfaces/MessageObserverInterface.h>
|
2017-10-30 22:14:38 +00:00
|
|
|
#include <AVSCommon/Utils/Logger/Logger.h>
|
|
|
|
#include <curl/curl.h>
|
2017-05-26 23:06:14 +00:00
|
|
|
|
|
|
|
#include "Common/TestableAttachmentManager.h"
|
|
|
|
|
|
|
|
#include "Common/Common.h"
|
|
|
|
#include "Common/MimeUtils.h"
|
|
|
|
#include "Common/TestableMessageObserver.h"
|
2017-10-30 22:14:38 +00:00
|
|
|
#include "MockMessageRequest.h"
|
|
|
|
#include "TestableConsumer.h"
|
2017-05-26 23:06:14 +00:00
|
|
|
|
|
|
|
namespace alexaClientSDK {
|
|
|
|
namespace acl {
|
2017-06-09 23:23:31 +00:00
|
|
|
namespace test {
|
2017-05-26 23:06:14 +00:00
|
|
|
|
|
|
|
using namespace avsCommon::sdkInterfaces;
|
|
|
|
using namespace avsCommon::avs::attachment;
|
|
|
|
|
2017-10-30 22:14:38 +00:00
|
|
|
/// String to identify log entries originating from this file.
|
|
|
|
static const std::string TAG("TestableMessageObserver");
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a LogEntry using this file's TAG and the specified event string.
|
|
|
|
*
|
|
|
|
* @param The event string for this @c LogEntry.
|
|
|
|
*/
|
|
|
|
#define LX(event) alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)
|
|
|
|
|
2017-05-26 23:06:14 +00:00
|
|
|
/// The size of the data for directive and attachments we will use.
|
|
|
|
static const int TEST_DATA_SIZE = 100;
|
2017-10-30 22:14:38 +00:00
|
|
|
/// The number of segments that the MIME string will be broken into during
|
|
|
|
/// simple testing.
|
2017-05-26 23:06:14 +00:00
|
|
|
static const int TEST_MULTI_WRITE_ITERATIONS = 4;
|
2017-10-30 22:14:38 +00:00
|
|
|
/// An upper bound that the feedParser logic may use to ensure we don't loop
|
|
|
|
/// infinitely.
|
2017-05-26 23:06:14 +00:00
|
|
|
static const int TEST_MULTI_MAX_ITERATIONS = 100;
|
|
|
|
/// A test context id.
|
|
|
|
static const std::string TEST_CONTEXT_ID = "TEST_CONTEXT_ID";
|
|
|
|
/// A test content id.
|
|
|
|
static const std::string TEST_CONTENT_ID_01 = "TEST_CONTENT_ID_01";
|
|
|
|
/// A test content id.
|
|
|
|
static const std::string TEST_CONTENT_ID_02 = "TEST_CONTENT_ID_02";
|
|
|
|
/// A test content id.
|
|
|
|
static const std::string TEST_CONTENT_ID_03 = "TEST_CONTENT_ID_03";
|
|
|
|
/// A test boundary string, copied from a real interaction with AVS.
|
|
|
|
static const std::string MIME_TEST_BOUNDARY_STRING = "84109348-943b-4446-85e6-e73eda9fac43";
|
2017-10-30 22:14:38 +00:00
|
|
|
/// The newline characters that MIME parsers expect.
|
|
|
|
static const std::string MIME_NEWLINE = "\r\n";
|
|
|
|
/// The double dashes which may occur before and after a boundary string.
|
|
|
|
static const std::string MIME_BOUNDARY_DASHES = "--";
|
2017-12-09 00:07:37 +00:00
|
|
|
/// The test boundary string with the preceding dashes.
|
|
|
|
static const std::string BOUNDARY = MIME_BOUNDARY_DASHES + MIME_TEST_BOUNDARY_STRING;
|
|
|
|
/// A complete boundary, including the CRLF prefix
|
|
|
|
static const std::string BOUNDARY_LINE = MIME_NEWLINE + BOUNDARY;
|
|
|
|
/// Header line without prefix or suffix CRLF.
|
|
|
|
static const std::string HEADER_LINE = "Content-Type: application/json";
|
|
|
|
/// JSON payload.
|
2017-10-30 22:14:38 +00:00
|
|
|
static const std::string TEST_MESSAGE =
|
|
|
|
"{\"directive\":{\"header\":{\"namespace\":\"SpeechRecognizer\",\"name\":"
|
|
|
|
"\"StopCapture\",\"messageId\":\"4e5612af-e05c-4611-8910-1e23f47ffb41\"},"
|
|
|
|
"\"payload\":{}}}";
|
|
|
|
|
2017-12-09 00:07:37 +00:00
|
|
|
// The following *_LINES definitions are raw mime text for various test parts. Each one assumes that
|
|
|
|
// it will be prefixed by a boundary and a CRLF. These get concatenated by constructTestMimeString()
|
|
|
|
// which provides an initiating boundary and CRLF, and which also inserts a CRLF between each part
|
|
|
|
// that is added. Leaving out the terminal CRLFs here allows constructTestMimeString() to append a
|
|
|
|
// pair of dashes to the boundary terminating the last part. Those final dashes are the standard
|
|
|
|
// syntax for the end of a sequence of mime parts.
|
|
|
|
|
|
|
|
/// Normal section with header, test message and terminating boundary
|
|
|
|
/// @note assumes previous terminating boundary and CRLF in the mime stream that this is appended to.
|
|
|
|
static const std::string NORMAL_LINES = HEADER_LINE + MIME_NEWLINE + MIME_NEWLINE + TEST_MESSAGE + BOUNDARY_LINE;
|
|
|
|
/// Normal section preceded by a duplicate boundary (one CRLF between boundaries)
|
|
|
|
/// @note assumes previous terminating boundary and CRLF in the mime stream that this is appended to.
|
|
|
|
static const std::string DUPLICATE_BOUNDARY_LINES = BOUNDARY + MIME_NEWLINE + NORMAL_LINES;
|
|
|
|
/// Normal section preceded by a duplicate boundary and CRLF (two CRLFs between boundaries)
|
|
|
|
/// @note assumes previous terminating boundary and CRLF in the mime stream that this is appended to.
|
|
|
|
static const std::string CRLF_DUPLICATE_BOUNDARY_LINES = BOUNDARY_LINE + MIME_NEWLINE + NORMAL_LINES;
|
|
|
|
/// Normal section preceded by triplicate boundaries (one CRLF between boundaries)
|
|
|
|
/// @note assumes previous terminating boundary and CRLF in the mime stream that this is appended to.
|
|
|
|
static const std::string TRIPLICATE_BOUNDARY_LINES = BOUNDARY + MIME_NEWLINE + BOUNDARY + MIME_NEWLINE + NORMAL_LINES;
|
|
|
|
/// Normal section preceded by triplicate boundaries with trailing CRLF (two CRLFs between boundaries)
|
|
|
|
/// @note assumes previous terminating boundary and CRLF in the mime stream that this is appended to.
|
|
|
|
static const std::string CRLF_TRIPLICATE_BOUNDARY_LINES =
|
|
|
|
BOUNDARY_LINE + MIME_NEWLINE + BOUNDARY_LINE + MIME_NEWLINE + NORMAL_LINES;
|
2017-05-26 23:06:14 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Our GTest class.
|
|
|
|
*/
|
|
|
|
class MimeParserTest : public ::testing::Test {
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* Construct the objects we will use across tests.
|
|
|
|
*/
|
|
|
|
void SetUp() override {
|
|
|
|
m_attachmentManager = std::make_shared<TestableAttachmentManager>();
|
|
|
|
|
|
|
|
m_testableMessageObserver = std::make_shared<TestableMessageObserver>();
|
|
|
|
m_testableConsumer = std::make_shared<TestableConsumer>();
|
|
|
|
m_testableConsumer->setMessageObserver(m_testableMessageObserver);
|
|
|
|
|
2017-10-02 22:59:05 +00:00
|
|
|
m_parser = std::make_shared<MimeParser>(m_testableConsumer, m_attachmentManager);
|
|
|
|
m_parser->setAttachmentContextId(TEST_CONTEXT_ID);
|
2017-05-26 23:06:14 +00:00
|
|
|
m_parser->setBoundaryString(MIME_TEST_BOUNDARY_STRING);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-12-09 00:07:37 +00:00
|
|
|
* A utility function to feed data into our MimeParser object. A result of
|
2017-10-30 22:14:38 +00:00
|
|
|
* this function is that the MimeParser object will route Directives and
|
|
|
|
* Attachments to the appropriate objects as they are broken out of the
|
2017-05-26 23:06:14 +00:00
|
|
|
* aggregate MIME string.
|
|
|
|
*
|
|
|
|
* @param data The MIME string to be parsed.
|
2017-10-30 22:14:38 +00:00
|
|
|
* @param numberIterations The number of segments the MIME string is to be
|
|
|
|
* broken into, and then fed to the parser.
|
2017-05-26 23:06:14 +00:00
|
|
|
*/
|
2017-10-02 22:59:05 +00:00
|
|
|
void feedParser(const std::string& data, int numberIterations = 1) {
|
2017-12-09 00:07:37 +00:00
|
|
|
// Here we're simulating an ACL stream. We've got a mime string that we
|
2017-10-30 22:14:38 +00:00
|
|
|
// will feed to the mime parser in chunks. If any chunk fails (due to
|
|
|
|
// simulated attachment failing to write), we will re-drive it.
|
2017-05-26 23:06:14 +00:00
|
|
|
|
|
|
|
int writeQuantum = data.length();
|
|
|
|
if (numberIterations > 1) {
|
|
|
|
writeQuantum /= numberIterations;
|
|
|
|
}
|
|
|
|
|
|
|
|
size_t numberBytesWritten = 0;
|
|
|
|
int iterations = 0;
|
|
|
|
while (numberBytesWritten < data.length() && iterations < TEST_MULTI_MAX_ITERATIONS) {
|
|
|
|
int bytesRemaining = data.length() - numberBytesWritten;
|
|
|
|
int bytesToFeed = bytesRemaining < writeQuantum ? bytesRemaining : writeQuantum;
|
|
|
|
|
2017-06-23 23:26:34 +00:00
|
|
|
if (MimeParser::DataParsedStatus::OK ==
|
2017-10-02 22:59:05 +00:00
|
|
|
m_parser->feed(const_cast<char*>(&(data.c_str()[numberBytesWritten])), bytesToFeed)) {
|
2017-05-26 23:06:14 +00:00
|
|
|
numberBytesWritten += bytesToFeed;
|
|
|
|
}
|
|
|
|
|
|
|
|
iterations++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-10-30 22:14:38 +00:00
|
|
|
* A utility function to validate that each MimePart we're tracking was
|
|
|
|
* received ok at its expected destination.
|
2017-05-26 23:06:14 +00:00
|
|
|
*/
|
|
|
|
void validateMimePartsParsedOk() {
|
|
|
|
for (auto mimePart : m_mimeParts) {
|
|
|
|
ASSERT_TRUE(mimePart->validateMimeParsing());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Our MimePart vector.
|
|
|
|
std::vector<std::shared_ptr<TestMimePart>> m_mimeParts;
|
|
|
|
/// The AttachmentManager.
|
|
|
|
std::shared_ptr<TestableAttachmentManager> m_attachmentManager;
|
|
|
|
/// The ACL consumer object which the MimeParser requires.
|
|
|
|
std::shared_ptr<TestableConsumer> m_testableConsumer;
|
|
|
|
/// An observer which will receive Directives.
|
|
|
|
std::shared_ptr<TestableMessageObserver> m_testableMessageObserver;
|
|
|
|
/// The MimeParser which we will be primarily testing.
|
|
|
|
std::shared_ptr<MimeParser> m_parser;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2017-10-30 22:14:38 +00:00
|
|
|
* Test feeding a MIME string to the parser in a single pass which only contains
|
|
|
|
* a JSON message.
|
2017-05-26 23:06:14 +00:00
|
|
|
*/
|
|
|
|
TEST_F(MimeParserTest, testDirectiveReceivedSingleWrite) {
|
2017-10-30 22:14:38 +00:00
|
|
|
m_mimeParts.push_back(
|
|
|
|
std::make_shared<TestMimeJsonPart>(MIME_TEST_BOUNDARY_STRING, TEST_DATA_SIZE, m_testableMessageObserver));
|
2017-05-26 23:06:14 +00:00
|
|
|
|
|
|
|
auto mimeString = constructTestMimeString(m_mimeParts, MIME_TEST_BOUNDARY_STRING);
|
|
|
|
feedParser(mimeString);
|
|
|
|
|
|
|
|
validateMimePartsParsedOk();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-10-30 22:14:38 +00:00
|
|
|
* Test feeding a MIME string to the parser in multiple passes which only
|
|
|
|
* contains a JSON message.
|
2017-05-26 23:06:14 +00:00
|
|
|
*/
|
|
|
|
TEST_F(MimeParserTest, testDirectiveReceivedMultiWrite) {
|
2017-10-30 22:14:38 +00:00
|
|
|
m_mimeParts.push_back(
|
|
|
|
std::make_shared<TestMimeJsonPart>(MIME_TEST_BOUNDARY_STRING, TEST_DATA_SIZE, m_testableMessageObserver));
|
2017-05-26 23:06:14 +00:00
|
|
|
|
|
|
|
auto mimeString = constructTestMimeString(m_mimeParts, MIME_TEST_BOUNDARY_STRING);
|
|
|
|
feedParser(mimeString, TEST_MULTI_WRITE_ITERATIONS);
|
|
|
|
|
|
|
|
validateMimePartsParsedOk();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-10-30 22:14:38 +00:00
|
|
|
* Test feeding a MIME string to the parser in a single pass which only contains
|
|
|
|
* a binary attachment message.
|
2017-05-26 23:06:14 +00:00
|
|
|
*/
|
|
|
|
TEST_F(MimeParserTest, testAttachmentReceivedSingleWrite) {
|
|
|
|
m_mimeParts.push_back(std::make_shared<TestMimeAttachmentPart>(
|
2017-10-30 22:14:38 +00:00
|
|
|
MIME_TEST_BOUNDARY_STRING, TEST_CONTEXT_ID, TEST_CONTENT_ID_01, TEST_DATA_SIZE, m_attachmentManager));
|
2017-05-26 23:06:14 +00:00
|
|
|
|
|
|
|
auto mimeString = constructTestMimeString(m_mimeParts, MIME_TEST_BOUNDARY_STRING);
|
|
|
|
feedParser(mimeString);
|
|
|
|
|
|
|
|
validateMimePartsParsedOk();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-10-30 22:14:38 +00:00
|
|
|
* Test feeding a MIME string to the parser in multiple passes which only
|
|
|
|
* contains a binary attachment message.
|
2017-05-26 23:06:14 +00:00
|
|
|
*/
|
|
|
|
TEST_F(MimeParserTest, testAttachmentReceivedMultiWrite) {
|
|
|
|
m_mimeParts.push_back(std::make_shared<TestMimeAttachmentPart>(
|
2017-10-30 22:14:38 +00:00
|
|
|
MIME_TEST_BOUNDARY_STRING, TEST_CONTEXT_ID, TEST_CONTENT_ID_01, TEST_DATA_SIZE, m_attachmentManager));
|
2017-05-26 23:06:14 +00:00
|
|
|
|
|
|
|
auto mimeString = constructTestMimeString(m_mimeParts, MIME_TEST_BOUNDARY_STRING);
|
|
|
|
feedParser(mimeString, TEST_MULTI_WRITE_ITERATIONS);
|
|
|
|
|
|
|
|
validateMimePartsParsedOk();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-10-30 22:14:38 +00:00
|
|
|
* Test feeding a MIME string to the parser in a single pass which contains a
|
|
|
|
* JSON message followed by a binary attachment message.
|
2017-05-26 23:06:14 +00:00
|
|
|
*/
|
|
|
|
TEST_F(MimeParserTest, testDirectiveAndAttachmentReceivedSingleWrite) {
|
2017-10-30 22:14:38 +00:00
|
|
|
m_mimeParts.push_back(
|
|
|
|
std::make_shared<TestMimeJsonPart>(MIME_TEST_BOUNDARY_STRING, TEST_DATA_SIZE, m_testableMessageObserver));
|
2017-05-26 23:06:14 +00:00
|
|
|
m_mimeParts.push_back(std::make_shared<TestMimeAttachmentPart>(
|
2017-10-30 22:14:38 +00:00
|
|
|
MIME_TEST_BOUNDARY_STRING, TEST_CONTEXT_ID, TEST_CONTENT_ID_01, TEST_DATA_SIZE, m_attachmentManager));
|
2017-05-26 23:06:14 +00:00
|
|
|
|
|
|
|
auto mimeString = constructTestMimeString(m_mimeParts, MIME_TEST_BOUNDARY_STRING);
|
|
|
|
feedParser(mimeString);
|
|
|
|
|
|
|
|
validateMimePartsParsedOk();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-10-30 22:14:38 +00:00
|
|
|
* Test feeding a MIME string to the parser in multiple passes which contains a
|
|
|
|
* JSON message followed by a binary attachment message.
|
2017-05-26 23:06:14 +00:00
|
|
|
*/
|
|
|
|
TEST_F(MimeParserTest, testDirectiveAndAttachmentReceivedMultiWrite) {
|
2017-10-30 22:14:38 +00:00
|
|
|
m_mimeParts.push_back(
|
|
|
|
std::make_shared<TestMimeJsonPart>(MIME_TEST_BOUNDARY_STRING, TEST_DATA_SIZE, m_testableMessageObserver));
|
2017-05-26 23:06:14 +00:00
|
|
|
m_mimeParts.push_back(std::make_shared<TestMimeAttachmentPart>(
|
2017-10-30 22:14:38 +00:00
|
|
|
MIME_TEST_BOUNDARY_STRING, TEST_CONTEXT_ID, TEST_CONTENT_ID_01, TEST_DATA_SIZE, m_attachmentManager));
|
2017-05-26 23:06:14 +00:00
|
|
|
|
|
|
|
auto mimeString = constructTestMimeString(m_mimeParts, MIME_TEST_BOUNDARY_STRING);
|
|
|
|
feedParser(mimeString, TEST_MULTI_WRITE_ITERATIONS);
|
|
|
|
|
|
|
|
validateMimePartsParsedOk();
|
|
|
|
}
|
|
|
|
|
2017-10-30 22:14:38 +00:00
|
|
|
/**
|
2017-12-09 00:07:37 +00:00
|
|
|
* Test feeding mime text including duplicate boundaries that we want to just skip over.
|
2017-10-30 22:14:38 +00:00
|
|
|
*/
|
2017-12-09 00:07:37 +00:00
|
|
|
TEST_F(MimeParserTest, testDuplicateBounaries) {
|
|
|
|
m_mimeParts.push_back(
|
|
|
|
std::make_shared<TestMimeJsonPart>(MIME_TEST_BOUNDARY_STRING, TEST_DATA_SIZE, m_testableMessageObserver));
|
|
|
|
m_mimeParts.push_back(
|
|
|
|
std::make_shared<TestMimeJsonPart>(MIME_TEST_BOUNDARY_STRING, TEST_DATA_SIZE, m_testableMessageObserver));
|
|
|
|
m_mimeParts.push_back(std::make_shared<TestMimeJsonPart>(NORMAL_LINES, TEST_MESSAGE, m_testableMessageObserver));
|
2017-10-30 22:14:38 +00:00
|
|
|
m_mimeParts.push_back(
|
|
|
|
std::make_shared<TestMimeJsonPart>(MIME_TEST_BOUNDARY_STRING, TEST_DATA_SIZE, m_testableMessageObserver));
|
2017-12-09 00:07:37 +00:00
|
|
|
m_mimeParts.push_back(
|
|
|
|
std::make_shared<TestMimeJsonPart>(DUPLICATE_BOUNDARY_LINES, TEST_MESSAGE, m_testableMessageObserver));
|
|
|
|
m_mimeParts.push_back(
|
|
|
|
std::make_shared<TestMimeJsonPart>(MIME_TEST_BOUNDARY_STRING, TEST_DATA_SIZE, m_testableMessageObserver));
|
|
|
|
m_mimeParts.push_back(
|
|
|
|
std::make_shared<TestMimeJsonPart>(CRLF_DUPLICATE_BOUNDARY_LINES, TEST_MESSAGE, m_testableMessageObserver));
|
|
|
|
m_mimeParts.push_back(
|
|
|
|
std::make_shared<TestMimeJsonPart>(MIME_TEST_BOUNDARY_STRING, TEST_DATA_SIZE, m_testableMessageObserver));
|
|
|
|
m_mimeParts.push_back(
|
|
|
|
std::make_shared<TestMimeJsonPart>(TRIPLICATE_BOUNDARY_LINES, TEST_MESSAGE, m_testableMessageObserver));
|
|
|
|
m_mimeParts.push_back(
|
|
|
|
std::make_shared<TestMimeJsonPart>(MIME_TEST_BOUNDARY_STRING, TEST_DATA_SIZE, m_testableMessageObserver));
|
|
|
|
m_mimeParts.push_back(
|
|
|
|
std::make_shared<TestMimeJsonPart>(CRLF_TRIPLICATE_BOUNDARY_LINES, TEST_MESSAGE, m_testableMessageObserver));
|
2017-10-30 22:14:38 +00:00
|
|
|
m_mimeParts.push_back(
|
|
|
|
std::make_shared<TestMimeJsonPart>(MIME_TEST_BOUNDARY_STRING, TEST_DATA_SIZE, m_testableMessageObserver));
|
|
|
|
|
|
|
|
auto mimeString = constructTestMimeString(m_mimeParts, MIME_TEST_BOUNDARY_STRING);
|
2017-12-09 00:07:37 +00:00
|
|
|
ACSDK_INFO(LX("testDuplicateBoundaries").d("mimeString", mimeString));
|
|
|
|
feedParser(mimeString, TEST_MULTI_WRITE_ITERATIONS);
|
2017-10-30 22:14:38 +00:00
|
|
|
|
|
|
|
validateMimePartsParsedOk();
|
|
|
|
}
|
|
|
|
|
2017-10-02 22:59:05 +00:00
|
|
|
} // namespace test
|
|
|
|
} // namespace acl
|
|
|
|
} // namespace alexaClientSDK
|
2017-05-26 23:06:14 +00:00
|
|
|
|
2017-10-02 22:59:05 +00:00
|
|
|
int main(int argc, char** argv) {
|
2017-05-26 23:06:14 +00:00
|
|
|
::testing::InitGoogleTest(&argc, argv);
|
|
|
|
return RUN_ALL_TESTS();
|
|
|
|
}
|