Test that CreateObject() returns an empty JsonObject

This commit is contained in:
Benoit Blanchon
2014-09-27 11:42:27 +02:00
parent 890e811e80
commit 91649df593
5 changed files with 58 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#pragma once
#include "JsonBuffer.h"
#include "JsonObject.h"
template<int CAPACITY>
class StaticJsonBuffer //: public JsonBuffer
@ -14,11 +15,12 @@ public:
virtual ~StaticJsonBuffer() {}
/*JsonObject*/
void createObject()
JsonObject createObject()
{
if (_size < CAPACITY)
_size++;
return JsonObject();
}
int capacity()