summaryrefslogtreecommitdiffstatsci
path: root/gunit_tests/drawTestBase.h
blob: 350e08c09eb6df88a01fd7858cc5abe5a590d82c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
#include <gtest/gtest.h>
#include "vkvg.h"
#include <filesystem>

namespace fs = std::filesystem;

class DrawTestBase : public testing::Test {
  public:
    VkvgDevice  dev;
    VkvgSurface surf;
    fs::path    targetDir;
    fs::path    diffDir;

  protected:
    DrawTestBase();
    ~DrawTestBase() override;
    void SetUp() override;
    void TearDown() override;

    void compareWithRefImage();
};