| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file contains the mock GLES2Decoder class. | 5 // This file contains the mock GLES2Decoder class. |
| 6 | 6 |
| 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class ContextGroup; | 26 class ContextGroup; |
| 27 class ErrorState; | 27 class ErrorState; |
| 28 class QueryManager; | 28 class QueryManager; |
| 29 struct ContextState; | 29 struct ContextState; |
| 30 | 30 |
| 31 class MockGLES2Decoder : public GLES2Decoder { | 31 class MockGLES2Decoder : public GLES2Decoder { |
| 32 public: | 32 public: |
| 33 MockGLES2Decoder(); | 33 MockGLES2Decoder(); |
| 34 virtual ~MockGLES2Decoder(); | 34 virtual ~MockGLES2Decoder(); |
| 35 | 35 |
| 36 MOCK_METHOD6(Initialize, | 36 MOCK_METHOD7( |
| 37 bool(const scoped_refptr<gfx::GLSurface>& surface, | 37 Initialize, |
| 38 const scoped_refptr<gfx::GLContext>& context, | 38 bool(const scoped_refptr<gfx::GLSurface>& surface, |
| 39 bool offscreen, | 39 const scoped_refptr<gfx::GLContext>& context, |
| 40 const gfx::Size& size, | 40 const scoped_refptr<ShaderTranslatorCache>& shader_translator_cache, |
| 41 const DisallowedFeatures& disallowed_features, | 41 bool offscreen, |
| 42 const std::vector<int32>& attribs)); | 42 const gfx::Size& size, |
| 43 const DisallowedFeatures& disallowed_features, |
| 44 const std::vector<int32>& attribs)); |
| 43 MOCK_METHOD1(Destroy, void(bool have_context)); | 45 MOCK_METHOD1(Destroy, void(bool have_context)); |
| 44 MOCK_METHOD1(SetSurface, void(const scoped_refptr<gfx::GLSurface>& surface)); | 46 MOCK_METHOD1(SetSurface, void(const scoped_refptr<gfx::GLSurface>& surface)); |
| 45 MOCK_METHOD1(ProduceFrontBuffer, void(const Mailbox& mailbox)); | 47 MOCK_METHOD1(ProduceFrontBuffer, void(const Mailbox& mailbox)); |
| 46 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size)); | 48 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size)); |
| 47 MOCK_METHOD0(MakeCurrent, bool()); | 49 MOCK_METHOD0(MakeCurrent, bool()); |
| 48 MOCK_METHOD1(GetServiceIdForTesting, uint32(uint32 client_id)); | 50 MOCK_METHOD1(GetServiceIdForTesting, uint32(uint32 client_id)); |
| 49 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); | 51 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); |
| 50 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*()); | 52 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*()); |
| 51 MOCK_METHOD0(GetGLContext, gfx::GLContext*()); | 53 MOCK_METHOD0(GetGLContext, gfx::GLContext*()); |
| 52 MOCK_METHOD0(GetContextGroup, ContextGroup*()); | 54 MOCK_METHOD0(GetContextGroup, ContextGroup*()); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool()); | 119 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool()); |
| 118 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); | 120 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); |
| 119 | 121 |
| 120 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 122 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
| 121 }; | 123 }; |
| 122 | 124 |
| 123 } // namespace gles2 | 125 } // namespace gles2 |
| 124 } // namespace gpu | 126 } // namespace gpu |
| 125 | 127 |
| 126 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 128 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| OLD | NEW |