#ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_TEST_HELPERS_H_
#define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_TEST_HELPERS_H_
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/gl_mock.h"
namespace gfx {
class Size;
}
namespace gpu {
namespace gles2 {
class FeatureInfo;
}
class ContextStateTestHelpers {
public:
using MockGL = ::testing::StrictMock<::gl::MockGLInterface>;
static void SetupInitState(MockGL* gl,
gles2::FeatureInfo* feature_info,
const gfx::Size& initial_size);
private:
static void SetupInitCapabilitiesExpectations(
MockGL* gl,
gles2::FeatureInfo* feature_info);
static void SetupInitStateExpectations(MockGL* gl,
gles2::FeatureInfo* feature_info,
const gfx::Size& initial_size);
static void SetupInitStateManualExpectations(
MockGL* gl,
gles2::FeatureInfo* feature_info);
static void SetupInitStateManualExpectationsForDoLineWidth(MockGL* gl,
GLfloat width);
static void ExpectEnableDisable(MockGL* gl, GLenum cap, bool enable);
};
}
#endif