#ifndef GPU_COMMAND_BUFFER_TESTS_GL_TEST_SETUP_HELPER_H_
#define GPU_COMMAND_BUFFER_TESTS_GL_TEST_SETUP_HELPER_H_
#include "base/memory/raw_ptr.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/gl_display.h"
namespace gpu {
class GLTestSetupHelper : public testing::EmptyTestEventListener {
public:
GLTestSetupHelper();
~GLTestSetupHelper();
void OnTestStart(const testing::TestInfo& test_info) override;
void OnTestEnd(const testing::TestInfo& test_info) override;
private:
std::unique_ptr<base::test::TaskEnvironment> task_environment_;
raw_ptr<gl::GLDisplay> display_ = nullptr;
};
}
#endif