2022-02-11 09:07:11 +11:00
|
|
|
/* SPDX-License-Identifier: Apache-2.0 */
|
2021-05-14 07:55:01 +02:00
|
|
|
|
|
|
|
|
#include "gpu_testing.hh"
|
|
|
|
|
|
|
|
|
|
namespace blender::draw {
|
|
|
|
|
|
|
|
|
|
/* Base class for draw test cases. It will setup and tear down the GPU part around each test. */
|
2021-06-28 08:28:56 +02:00
|
|
|
class DrawOpenGLTest : public blender::gpu::GPUOpenGLTest {
|
2021-05-14 08:34:13 +02:00
|
|
|
public:
|
2021-05-14 07:55:01 +02:00
|
|
|
void SetUp() override;
|
|
|
|
|
};
|
|
|
|
|
|
2021-06-28 08:28:56 +02:00
|
|
|
#define DRAW_TEST(test_name) \
|
|
|
|
|
TEST_F(DrawOpenGLTest, test_name) \
|
|
|
|
|
{ \
|
|
|
|
|
test_##test_name(); \
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-14 07:55:01 +02:00
|
|
|
} // namespace blender::draw
|