| Index: third_party/WebKit/Source/platform/graphics/test/FakeGLES2Interface.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/test/MockGLES2Interface.h b/third_party/WebKit/Source/platform/graphics/test/FakeGLES2Interface.h
|
| similarity index 68%
|
| rename from third_party/WebKit/Source/platform/graphics/test/MockGLES2Interface.h
|
| rename to third_party/WebKit/Source/platform/graphics/test/FakeGLES2Interface.h
|
| index ecab6e018af2e1b431a9be98d6d518049bb37442..1c1e2fd7d30c0e4de1b5e2cd0a13944ac7204cb3 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/test/MockGLES2Interface.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/test/FakeGLES2Interface.h
|
| @@ -2,22 +2,24 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef MockGLES2Interface_h
|
| -#define MockGLES2Interface_h
|
| +#ifndef FakeGLES2Interface_h
|
| +#define FakeGLES2Interface_h
|
|
|
| #include "gpu/command_buffer/client/gles2_interface_stub.h"
|
|
|
| -class MockGLES2Interface : public gpu::gles2::GLES2InterfaceStub {
|
| +class FakeGLES2Interface : public gpu::gles2::GLES2InterfaceStub {
|
| public:
|
| + // GLES2Interface implementation.
|
| GLenum GetGraphicsResetStatusKHR() override
|
| {
|
| return m_contextLost ? GL_INVALID_OPERATION : GL_NO_ERROR;
|
| }
|
|
|
| + // Methods for tests.
|
| void setIsContextLost(bool lost) { m_contextLost = lost; }
|
|
|
| private:
|
| bool m_contextLost = false;
|
| };
|
|
|
| -#endif // MockGLES2Interface_h
|
| +#endif // FakeGLES2Interface_h
|
|
|