#include <gtest/gtest.h>
#include <sstream>
#include "JsonMessageCover.hpp"
Go to the source code of this file.
Functions |
| TEST (JsonMessageCover, serializeJsonMessageCover) |
| TEST (JsonMessageCover, unserializeJsonMessageCover) |
| TEST (JsonMessageCover, useOutputStream) |
| TEST (JsonMessageCover, useInputStream) |
| TEST (JsonMessageCover, errorMessageJsonMessageCover) |
int | main (int argc, char **argv) |
Variables |
const std::string | data = "Hello world!" |
HCE::types::MessageType | type = HCE::types::MessageType::mtSphinx |
unsigned int | ttl = 234 |
const std::string | validDecodeJson = "{\"data\":\"Hello world!\",\"ttl\":234,\"type\":1}" |
const std::string | validEncodeJson = "{\"data\":\"SGVsbG8gd29ybGQh\",\"ttl\":234,\"type\":1}" |
const std::string | invalidDecodeJson = "{\"data\":\"Hello world!\",\"ttl\":234,\"typ" |
const std::string | invalidEncodeJson = "{\"data\":\"SGVsbG8gd29ybGQh\",\"ttl\":234,\"typ" |
Function Documentation
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
TEST |
( |
JsonMessageCover |
, |
|
|
serializeJsonMessageCover |
|
|
) |
| |
TEST |
( |
JsonMessageCover |
, |
|
|
unserializeJsonMessageCover |
|
|
) |
| |
TEST |
( |
JsonMessageCover |
, |
|
|
useOutputStream |
|
|
) |
| |
TEST |
( |
JsonMessageCover |
, |
|
|
useInputStream |
|
|
) |
| |
TEST |
( |
JsonMessageCover |
, |
|
|
errorMessageJsonMessageCover |
|
|
) |
| |
Variable Documentation
const std::string data = "Hello world!" |
const std::string invalidDecodeJson = "{\"data\":\"Hello world!\",\"ttl\":234,\"typ" |
const std::string invalidEncodeJson = "{\"data\":\"SGVsbG8gd29ybGQh\",\"ttl\":234,\"typ" |
const std::string validDecodeJson = "{\"data\":\"Hello world!\",\"ttl\":234,\"type\":1}" |
const std::string validEncodeJson = "{\"data\":\"SGVsbG8gd29ybGQh\",\"ttl\":234,\"type\":1}" |