RetroArch
Classes | Functions | Variables
prettywritertest.cpp File Reference
#include "unittest.h"
#include "rapidjson/reader.h"
#include "rapidjson/prettywriter.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/filewritestream.h"
#include <sstream>
Include dependency graph for prettywritertest.cpp:

Classes

class  OStreamWrapper
 

Functions

 TEST (PrettyWriter, Basic)
 
 TEST (PrettyWriter, FormatOptions)
 
 TEST (PrettyWriter, SetIndent)
 
 TEST (PrettyWriter, String)
 
 TEST (PrettyWriter, OStreamWrapper)
 
 TEST (PrettyWriter, FileWriteStream)
 
 TEST (PrettyWriter, RawValue)
 

Variables

static const char kJson [] = "{\"hello\":\"world\",\"t\":true,\"f\":false,\"n\":null,\"i\":123,\"pi\":3.1416,\"a\":[1,2,3,-1],\"u64\":1234567890123456789,\"i64\":-1234567890123456789}"
 
static const char kPrettyJson []
 
static const char kPrettyJson_FormatOptions_SLA []
 

Function Documentation

◆ TEST() [1/7]

TEST ( PrettyWriter  ,
Basic   
)
Here is the call graph for this function:

◆ TEST() [2/7]

TEST ( PrettyWriter  ,
FormatOptions   
)
Here is the call graph for this function:

◆ TEST() [3/7]

TEST ( PrettyWriter  ,
SetIndent   
)
Here is the call graph for this function:

◆ TEST() [4/7]

TEST ( PrettyWriter  ,
String   
)
Here is the call graph for this function:

◆ TEST() [5/7]

TEST ( PrettyWriter  ,
OStreamWrapper   
)
Here is the call graph for this function:

◆ TEST() [6/7]

TEST ( PrettyWriter  ,
FileWriteStream   
)
Here is the call graph for this function:

◆ TEST() [7/7]

TEST ( PrettyWriter  ,
RawValue   
)
Here is the call graph for this function:

Variable Documentation

◆ kJson

const char kJson[] = "{\"hello\":\"world\",\"t\":true,\"f\":false,\"n\":null,\"i\":123,\"pi\":3.1416,\"a\":[1,2,3,-1],\"u64\":1234567890123456789,\"i64\":-1234567890123456789}"
static

◆ kPrettyJson

const char kPrettyJson[]
static
Initial value:
=
"{\n"
" \"hello\": \"world\",\n"
" \"t\": true,\n"
" \"f\": false,\n"
" \"n\": null,\n"
" \"i\": 123,\n"
" \"pi\": 3.1416,\n"
" \"a\": [\n"
" 1,\n"
" 2,\n"
" 3,\n"
" -1\n"
" ],\n"
" \"u64\": 1234567890123456789,\n"
" \"i64\": -1234567890123456789\n"
"}"

◆ kPrettyJson_FormatOptions_SLA

const char kPrettyJson_FormatOptions_SLA[]
static
Initial value:
=
"{\n"
" \"hello\": \"world\",\n"
" \"t\": true,\n"
" \"f\": false,\n"
" \"n\": null,\n"
" \"i\": 123,\n"
" \"pi\": 3.1416,\n"
" \"a\": [1, 2, 3, -1],\n"
" \"u64\": 1234567890123456789,\n"
" \"i64\": -1234567890123456789\n"
"}"