From 6f60ccf08e4878d0688ddaefd906290a2998a148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Mon, 17 Dec 2018 15:24:11 +0100 Subject: [build] generate header maps instead of -files.txt --- test/algorithm/mock.hpp | 50 ------------------------------ test/algorithm/update_renderables.test.cpp | 2 +- 2 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 test/algorithm/mock.hpp (limited to 'test/algorithm') diff --git a/test/algorithm/mock.hpp b/test/algorithm/mock.hpp deleted file mode 100644 index b8eb020105..0000000000 --- a/test/algorithm/mock.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include - -#include -#include - -struct MockTileData; - -struct MockSource { - mbgl::Range zoomRange { 0, 16 }; - std::map> dataTiles; - std::set idealTiles; - - // Test API - inline MockTileData* createTileData(const mbgl::OverscaledTileID& tileID); -}; - -struct MockBucket {}; - - -struct MockTileData { - MockTileData(const mbgl::OverscaledTileID& tileID_) : tileID(tileID_) {} - - bool hasTriedCache() const { - return triedOptional; - } - - bool isRenderable() const { - return renderable; - } - - bool isLoaded() const { - return loaded; - } - - bool renderable = false; - bool triedOptional = false; - bool loaded = false; - const mbgl::OverscaledTileID tileID; -}; - -MockTileData* MockSource::createTileData(const mbgl::OverscaledTileID& tileID) { - // Replace the existing MockTileData object, if any. - return (dataTiles[tileID] = std::make_unique(tileID)).get(); -} diff --git a/test/algorithm/update_renderables.test.cpp b/test/algorithm/update_renderables.test.cpp index e142758f29..22d8d79443 100644 --- a/test/algorithm/update_renderables.test.cpp +++ b/test/algorithm/update_renderables.test.cpp @@ -1,5 +1,5 @@ -#include "mock.hpp" #include +#include #include #include -- cgit v1.2.1