Files
MapLibreParticleLab/platform/qt/test/qmapboxgl.test.hpp
Thiago Marcos P. Santos 3cc026dc16 [build] Remove Qt test dependency on core
This test is testing the Qt bindings and should only
link with QMapboxGL.
2019-09-17 12:28:55 +03:00

31 lines
553 B
C++

#include <QMapboxGL>
#include <QGLWidget>
#include <QGLFramebufferObject>
#include <gtest/gtest.h>
class QMapboxGLTest : public QObject, public ::testing::Test {
Q_OBJECT
public:
QMapboxGLTest();
void runUntil(QMapboxGL::MapChange);
private:
QGLWidget widget;
const QSize size;
QGLFramebufferObject fbo;
protected:
QMapboxGLSettings settings;
QMapboxGL map;
std::function<void(QMapboxGL::MapChange)> changeCallback;
private slots:
void onMapChanged(QMapboxGL::MapChange);
void onNeedsRendering();
};