2 #include <cjson/cJSON.h>
4 #include "CppUTest/TestHarness.h"
7 #define CHECK_JSON_STR_VALUE(o,p,e){cJSON *jsonV = cJSON_GetObjectItem(o, p); \
8 CHECK_TEXT(jsonV != NULL, "Missing '" p "' property in JSON data"); \
9 CHECK_EQUAL_TEXT(true, cJSON_IsString(jsonV), "Property '" p "' value is not a string"); \
10 STRCMP_EQUAL(e, cJSON_GetStringValue(jsonV));}
18 cJSON* getJsonObj() {
return mJsonObj; };
23 SimpleString StringFrom(
const std::vector<std::string>& vec);
24 SimpleString StringFrom(
const std::vector<std::uint8_t>& v);