aboutsummaryrefslogtreecommitdiff
path: root/autotests/callcandidateseventtest.cpp
AgeCommit message (Collapse)Author
2022-09-04Disallow direct events construction from JSONAlexey Rusakov
Direct construction (using makeEvent() or explicitly constructing an event) from JSON may create an event that has a type conflicting with that stored in JSON. There's no such problem with loadEvent(), even though it's considerably slower. Driven by the fact that almost nowhere in the code direct construction is used on checked JSON (one test is the only valid case), this commit moves all JSON-loading constructors to the protected section, thereby disabling usage of makeEvent() in JSON-loading capacity, and switches such cases across the library to loadEvent().
2022-09-04CallEventBase -> CallEvent; pack up all call eventsAlexey Rusakov
These are small enough to comfortably reside in a single translation unit.
2021-12-06autotests/: don't instantiate QApplicationAlexey Rusakov
Those tests don't even need an event loop.
2021-01-25Autotests: make sure types passed to QCOMPARE are the sameAlexey Rusakov
The current test may fail with "undefined reference" errors discussed at https://stackoverflow.com/questions/14198972/undefined-symbols-for-qcompare.
2021-01-25Collapse the autotest entirely in *.cpp fileAlexey Rusakov
Otherwise CMake's automoc complains that it doesn't see a moc-able class definition in the file that includes "*.moc".
2021-01-21fix buildCarl Schwan
2021-01-21Move testsCarl Schwan