Consolidate test-suite rendering harnesses (#2236)

This commit is contained in:
John Firebaugh
2015-09-02 16:53:41 -07:00
parent e49ef97a50
commit 15a66b8989
24 changed files with 81 additions and 696 deletions

View File

@@ -25,7 +25,7 @@ TEST(API, RepeatedRender) {
Map map(view, fileSource, MapMode::Still);
{
map.setStyleJSON(style, "test/suite");
map.setStyleJSON(style, "");
std::promise<std::unique_ptr<const StillImage>> promise;
map.renderStill([&promise](std::exception_ptr, std::unique_ptr<const StillImage> image) {
promise.set_value(std::move(image));