Skip to content
Snippets Groups Projects
Commit c68de5e1 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

mv regsiterComparators to where it is needed

parent f7e4ad8e
No related branches found
No related tags found
1 merge request!2385GUI unit tests: minor cleanup
Pipeline #130758 passed
#include "GUI/Support/Data/ComboProperty.h" #include "GUI/Support/Data/ComboProperty.h"
#include "Tests/GTestWrapper/google_test.h" #include "Tests/GTestWrapper/google_test.h"
#include "Tests/Unit/GUI/Comparators.h" #include "Tests/Unit/GUI/Comparators.h"
#include "Tests/Unit/GUI/Utils.h" #include "Tests/Unit/GUI/Utils.h"
class TestComboProperty : public ::testing::Test {}; class TestComboProperty : public ::testing::Test {
public:
TestComboProperty() { Comparators::registerComparators(); }
};
TEST_F(TestComboProperty, initialState) TEST_F(TestComboProperty, initialState)
{ {
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
// (for non-GUI unit tests, the corresponding source is Tests/GTestWrapper/TestAll.cpp). // (for non-GUI unit tests, the corresponding source is Tests/GTestWrapper/TestAll.cpp).
#include "Tests/GTestWrapper/google_test.h" #include "Tests/GTestWrapper/google_test.h"
#include "Tests/Unit/GUI/Comparators.h"
#include <QCoreApplication> #include <QCoreApplication>
int main(int argc, char** argv) int main(int argc, char** argv)
...@@ -10,10 +9,7 @@ int main(int argc, char** argv) ...@@ -10,10 +9,7 @@ int main(int argc, char** argv)
QCoreApplication app(argc, argv); QCoreApplication app(argc, argv);
Q_UNUSED(app); Q_UNUSED(app);
Comparators::registerComparators();
::testing::InitGoogleTest(&argc, argv); ::testing::InitGoogleTest(&argc, argv);
// run all google tests
return RUN_ALL_TESTS(); return RUN_ALL_TESTS();
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment