xref: /haiku/src/tests/kits/shared/JsonTextWriterTest.h (revision 15fed7905db172afaa7783a3e7aeecbdd13fc942)
11f6b57a5SAndrew Lindesay /*
21f6b57a5SAndrew Lindesay  * Copyright 2017, Andrew Lindesay <apl@lindesay.co.nz>
31f6b57a5SAndrew Lindesay  * Distributed under the terms of the MIT License.
41f6b57a5SAndrew Lindesay  */
51f6b57a5SAndrew Lindesay #ifndef JSON_WRITER_TEST_H
61f6b57a5SAndrew Lindesay #define JSON_WRITER_TEST_H
71f6b57a5SAndrew Lindesay 
81f6b57a5SAndrew Lindesay 
91f6b57a5SAndrew Lindesay #include <TestCase.h>
101f6b57a5SAndrew Lindesay #include <TestSuite.h>
111f6b57a5SAndrew Lindesay 
121f6b57a5SAndrew Lindesay #include <DataIO.h>
131f6b57a5SAndrew Lindesay 
141f6b57a5SAndrew Lindesay class Sample;
151f6b57a5SAndrew Lindesay 
161f6b57a5SAndrew Lindesay 
171f6b57a5SAndrew Lindesay class JsonTextWriterTest : public CppUnit::TestCase {
181f6b57a5SAndrew Lindesay public:
191f6b57a5SAndrew Lindesay 								JsonTextWriterTest();
201f6b57a5SAndrew Lindesay 	virtual						~JsonTextWriterTest();
211f6b57a5SAndrew Lindesay 
221f6b57a5SAndrew Lindesay 			void				TestArrayA();
231f6b57a5SAndrew Lindesay 			void				TestObjectA();
241f6b57a5SAndrew Lindesay 			void				TestObjectAForPerformance();
251f6b57a5SAndrew Lindesay 			void				TestDouble();
261f6b57a5SAndrew Lindesay 			void				TestInteger();
271f6b57a5SAndrew Lindesay 			void				TestFalse();
28*15fed790SAndrew Lindesay 			void				TestString();
291f6b57a5SAndrew Lindesay 
301f6b57a5SAndrew Lindesay 	static	void				AddTests(BTestSuite& suite);
311f6b57a5SAndrew Lindesay private:
32*15fed790SAndrew Lindesay 			void				TestStringGeneric(const char *input,
33*15fed790SAndrew Lindesay 									const char *expectedOut);
341f6b57a5SAndrew Lindesay 
351f6b57a5SAndrew Lindesay };
361f6b57a5SAndrew Lindesay 
371f6b57a5SAndrew Lindesay 
381f6b57a5SAndrew Lindesay #endif	// JSON_WRITER_TEST_H
39