BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
widgetbasedtest.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // qt-mvvm: Model-view-view-model framework for large GUI applications
4 //
5 //! @file mvvm/tests/libtestmachinery/widgetbasedtest.h
6 //! @brief Defines class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_MVVM_TESTS_LIBTESTMACHINERY_WIDGETBASEDTEST_H
16 #define BORNAGAIN_MVVM_TESTS_LIBTESTMACHINERY_WIDGETBASEDTEST_H
17 
18 #include <gtest/gtest.h>
19 
20 class QApplication;
21 
22 //! Convenience class to setup QApplication for tests involving QWidget creation.
23 
24 class WidgetBasedTest : public ::testing::Test {
25 public:
27 
28  static void SetUpTestSuite();
29 
30  static void TearDownTestSuite();
31 
32 protected:
33  static QApplication* m_app;
34 };
35 
36 #endif // BORNAGAIN_MVVM_TESTS_LIBTESTMACHINERY_WIDGETBASEDTEST_H
Convenience class to setup QApplication for tests involving QWidget creation.
static void SetUpTestSuite()
static QApplication * m_app
static void TearDownTestSuite()