1 /* 2 * Copyright 2017, Andrew Lindesay <apl@lindesay.co.nz> 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef JSON_TO_MESSAGE_TEST_H 6 #define JSON_TO_MESSAGE_TEST_H 7 8 9 #include <TestCase.h> 10 #include <TestSuite.h> 11 12 #include <DataIO.h> 13 14 class Sample; 15 16 17 class JsonToMessageTest : public CppUnit::TestCase { 18 public: 19 JsonToMessageTest(); 20 virtual ~JsonToMessageTest(); 21 22 void TestArrayA(); 23 void TestArrayB(); 24 void TestObjectAForPerformance(); 25 void TestObjectA(); 26 void TestObjectB(); 27 void TestObjectC(); 28 void TestUnterminatedObject(); 29 void TestUnterminatedArray(); 30 void TestHaikuDepotFetchBatch(); 31 32 static void AddTests(BTestSuite& suite); 33 private: 34 35 }; 36 37 38 #endif // JSON_TO_MESSAGE_TEST_H 39