forked from bblanchon/ArduinoJson
Switched to Google coding style to match cpplint expectations
This commit is contained in:
1 parent
5c8283b3e4
commit
b43da1e421
47 files changed
+262
-308
No files matched your search
@@ -5,7 +5,7 @@
|
||||
using namespace ArduinoJson;
|
||||
|
||||
class JsonParser_Object_Test : public testing::Test {
|
||||
protected:
|
||||
protected:
|
||||
void whenInputIs(const char *jsonString) {
|
||||
strcpy(_jsonString, jsonString);
|
||||
_object = _jsonBuffer.parseObject(_jsonString);
|
||||
@@ -21,11 +21,12 @@ protected:
|
||||
EXPECT_STREQ(expected, _object[key].as<const char *>());
|
||||
}
|
||||
|
||||
template <typename T> void keyMustHaveValue(const char *key, T expected) {
|
||||
template <typename T>
|
||||
void keyMustHaveValue(const char *key, T expected) {
|
||||
EXPECT_EQ(expected, _object[key].as<T>());
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
StaticJsonBuffer<10> _jsonBuffer;
|
||||
JsonObject _object;
|
||||
char _jsonString[256];
|
||||
|
||||
Reference in new issue
Block a user