1/* 2 * Copyright 2017, Andrew Lindesay <apl@lindesay.co.nz> 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef STANDARD_META_DATA_JSON_EVENT_LISTENER_TEST_H 6#define STANDARD_META_DATA_JSON_EVENT_LISTENER_TEST_H 7 8 9#include <TestCase.h> 10#include <TestSuite.h> 11 12 13class StandardMetaDataJsonEventListenerTest : public CppUnit::TestCase { 14public: 15 StandardMetaDataJsonEventListenerTest(); 16 virtual ~StandardMetaDataJsonEventListenerTest(); 17 18 void TestTopLevel(); 19 void TestIcon(); 20 void TestThirdLevel(); 21 void TestBroken(); 22 23 static void AddTests(BTestSuite& suite); 24 25private: 26 void TestGeneric(const char* input, 27 const char* jsonPath, 28 status_t expectedStatus, 29 uint64_t expectedCreateTimestamp, 30 uint64_t expectedDataModifiedTimestamp); 31 32}; 33 34 35#endif // STANDARD_META_DATA_JSON_EVENT_LISTENER_TEST_H 36