This change will introduce a streaming parser capability to Haiku. The existing functionality of writing the JSON data to a BMessage in-memory model is retained. The new parser implements a SAX-style listener based interface where the listener accepts parse events. Unit tests have been supplied for the JSON parser as well.
37 lines
913 B
C++
37 lines
913 B
C++
/*
|
|
* Copyright 2017, Andrew Lindesay, [email protected]
|
|
* Copyright 2012-2015, Axel Dörfler, [email protected].
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
|
|
|
|
#include <TestSuite.h>
|
|
#include <TestSuiteAddon.h>
|
|
|
|
#include "CalendarViewTest.h"
|
|
#include "DriverSettingsMessageAdapterTest.h"
|
|
#include "GeolocationTest.h"
|
|
#include "NaturalCompareTest.h"
|
|
#include "JsonEndToEndTest.h"
|
|
#include "JsonErrorHandlingTest.h"
|
|
#include "JsonTextWriterTest.h"
|
|
#include "JsonToMessageTest.h"
|
|
|
|
|
|
BTestSuite*
|
|
getTestSuite()
|
|
{
|
|
BTestSuite* suite = new BTestSuite("Shared");
|
|
|
|
CalendarViewTest::AddTests(*suite);
|
|
DriverSettingsMessageAdapterTest::AddTests(*suite);
|
|
GeolocationTest::AddTests(*suite);
|
|
NaturalCompareTest::AddTests(*suite);
|
|
JsonEndToEndTest::AddTests(*suite);
|
|
JsonErrorHandlingTest::AddTests(*suite);
|
|
JsonTextWriterTest::AddTests(*suite);
|
|
JsonToMessageTest::AddTests(*suite);
|
|
|
|
return suite;
|
|
}
|