Go to the documentation of this file.
10 #include <boost/shared_ptr.hpp>
27 using Ptr = boost::shared_ptr<DummyColormapProvider>;
45 using Ptr = boost::shared_ptr<TestData>;
90 struct timespec
t = {0, 0};
TiledBitmapInterface::Ptr tbi
Definition: test-helpers.hh:52
bool setupTest8bpp(int zoom, int width, int height)
Definition: test-helpers.cc:200
static Colormap::Ptr createDefault(int n)
Definition: colormappable.hh:51
TiledBitmapInterface::Ptr createTiledBitmap(int bitmapWidth, int bitmapHeight, LayerSpec const &ls)
Definition: tiled-bitmap.cc:28
bool setupTest4bpp(int zoom, int width, int height)
Definition: test-helpers.cc:182
bool setupTest8bpp(int zoom, int width, int height)
Definition: test-helpers.cc:200
Colormap::Ptr colormap
Definition: test-helpers.hh:30
bool wait()
Definition: test-helpers.cc:68
TestData operator=(const TestData &)=delete
Definition: test-helpers.hh:85
static Ptr create(ColormapProvider::Ptr colormapProvider)
Definition: layeroperations.cc:378
static Ptr create(DummyColormapProvider::Ptr colormapProvider, const LayerSpec &ls, const TiledBitmapInterface::Ptr &tbi, SourcePresentation::Ptr sp, int zoom)
Definition: test-helpers.cc:59
Definition: test-helpers.hh:42
DummyColormapProvider(Colormap::Ptr colormap)
Definition: test-helpers.cc:29
ViewInterface::Ptr vi
Definition: test-helpers.hh:49
Colormap::Ptr getColormap() override
Definition: test-helpers.cc:39
int drawingAreaHeight
Definition: test-helpers.cc:23
TestData::Ptr testData
Definition: sampleiterator-tests.cc:20
static Ptr create(ColormapProvider::Ptr colormapProvider)
Definition: layeroperations.cc:262
bool wait()
Definition: test-helpers.cc:134
unsigned int secs
Definition: test-helpers.hh:88
boost::shared_ptr< DummyColormapProvider > Ptr
Definition: test-helpers.hh:27
boost::shared_ptr< ViewInterface > Ptr
Definition: viewinterface.hh:193
boost::shared_ptr< SourcePresentation > Ptr
Definition: tiledbitmapinterface.hh:198
std::vector< LayerOperations::Ptr > LayerSpec
Definition: tiledbitmapinterface.hh:190
bool quit()
Definition: test-helpers.cc:120
int drawingAreaHeight
Definition: test-helpers.cc:23
void init_tests()
Definition: measure-framerate-tests.cc:152
boost::shared_ptr< TestData > Ptr
Definition: test-helpers.hh:45
bool reset()
Definition: test-helpers.cc:127
boost::shared_ptr< ColormapProvider > Ptr
Definition: colormappable.hh:149
Definition: test-helpers.hh:24
LayerSpec ls
Definition: test-helpers.hh:51
TestData::Ptr testData
Definition: test-helpers.cc:25
Definition: measure-framerate-stubs.hh:45
Definition: measure-framerate-stubs.hh:22
struct timespec t
Definition: test-helpers.hh:90
Definition: colormappable.hh:146
~TestData()
Definition: test-helpers.cc:70
bool wait()
Definition: test-helpers.cc:134
Sleeper(unsigned int secs)
Definition: test-helpers.cc:93
bool setupTest2bpp(int zoom, int width, int height)
Definition: test-helpers.cc:164
bool reset()
Definition: test-helpers.cc:127
boost::shared_ptr< Colormap > Ptr
Definition: colormappable.hh:31
const Colormap::Ptr colormap
Definition: colormaphelpers_test.cc:54
ProgressInterfaceStub::Ptr pi
Definition: test-helpers.hh:48
bool started
Definition: test-helpers.hh:89
boost::shared_ptr< ProgressInterfaceStub > Ptr
Definition: measure-framerate-stubs.hh:25
static Ptr create(ColormapProvider::Ptr colormapProvider, int bpp)
Definition: layeroperations.cc:574
bool setupTest1bpp(int zoom, int width, int height)
Definition: test-helpers.cc:146
int drawingAreaWidth
Definition: test-helpers.cc:22
static Ptr create(ColormapProvider::Ptr colormapProvider, int bpp)
Definition: layeroperations.cc:723
bool quit()
Definition: test-helpers.cc:120
Definition: measure-framerate-stubs.hh:71
bool operator()()
Definition: test-helpers.cc:98
int drawingAreaWidth
Definition: test-helpers.cc:22
bool setupTest8bppColormapped(int zoom, int width, int height)
Definition: test-helpers.cc:217
static Ptr create(Colormap::Ptr colormap)
Definition: test-helpers.cc:34
Definition: measure-framerate-stubs.hh:79
void init()
Definition: measure-framerate-callbacks.cc:98
double pixelSizeFromZoom(int zoom)
Definition: cairo-helpers.cc:112
bool setupTest2bpp(int zoom, int width, int height)
Definition: test-helpers.cc:164
void redraw(cairo_t *cr)
Definition: test-helpers.cc:80
boost::shared_ptr< TiledBitmapInterface > Ptr
Definition: tiledbitmapinterface.hh:239
bool setupTest1bpp(int zoom, int width, int height)
Definition: test-helpers.cc:146
SourcePresentation::Ptr sp
Definition: test-helpers.hh:53
Definition: measure-framerate-stubs.hh:95
bool setupTest4bpp(int zoom, int width, int height)
Definition: test-helpers.cc:182
DummyColormapProvider::Ptr colormapProvider
Definition: test-helpers.hh:50
void create(NewPresentationInterface *interface)
Definition: loader.cc:175
int zoom
Definition: test-helpers.hh:54
Definition: measure-framerate-stubs.hh:87
TestData(DummyColormapProvider::Ptr colormapProvider, LayerSpec ls, const TiledBitmapInterface::Ptr &tbi, SourcePresentation::Ptr sp, int zoom)
Definition: test-helpers.cc:43
bool setupTest8bppColormapped(int zoom, int width, int height)
Definition: test-helpers.cc:217