Test that adding values to the JsonObject increase the size of the buffer

This commit is contained in:
Benoit Blanchon
2014-09-27 12:16:20 +02:00
parent 4d4119e589
commit 166bdd6919
8 changed files with 74 additions and 17 deletions

View File

@ -24,9 +24,8 @@ class JsonObject
public:
explicit JsonObject()
: _size(0)
JsonObject(JsonBuffer* buffer)
: _size(0), _buffer(buffer)
{
}
@ -41,8 +40,8 @@ private:
int _size;
// JsonBuffer& _buffer;
// JsonNode& _node;
JsonBuffer* _buffer;
//JsonNode* _node;
//
// void addNodeAt(char const* key, JsonNode& node);
// JsonNode& getNodeAt(const char* key);