| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 class ContextGroup; | 28 class ContextGroup; |
| 29 class ErrorState; | 29 class ErrorState; |
| 30 class QueryManager; | 30 class QueryManager; |
| 31 | 31 |
| 32 class MockGLES2Decoder : public GLES2Decoder { | 32 class MockGLES2Decoder : public GLES2Decoder { |
| 33 public: | 33 public: |
| 34 MockGLES2Decoder(); | 34 MockGLES2Decoder(); |
| 35 virtual ~MockGLES2Decoder(); | 35 virtual ~MockGLES2Decoder(); |
| 36 | 36 |
| 37 MOCK_METHOD7(Initialize, | 37 MOCK_METHOD6(Initialize, |
| 38 bool(const scoped_refptr<gfx::GLSurface>& surface, | 38 bool(const scoped_refptr<gfx::GLSurface>& surface, |
| 39 const scoped_refptr<gfx::GLContext>& context, | 39 const scoped_refptr<gfx::GLContext>& context, |
| 40 bool offscreen, | 40 bool offscreen, |
| 41 const gfx::Size& size, | 41 const gfx::Size& size, |
| 42 const DisallowedFeatures& disallowed_features, | 42 const DisallowedFeatures& disallowed_features, |
| 43 const char* allowed_extensions, | |
| 44 const std::vector<int32>& attribs)); | 43 const std::vector<int32>& attribs)); |
| 45 MOCK_METHOD1(Destroy, void(bool have_context)); | 44 MOCK_METHOD1(Destroy, void(bool have_context)); |
| 46 MOCK_METHOD1(SetSurface, void(const scoped_refptr<gfx::GLSurface>& surface)); | 45 MOCK_METHOD1(SetSurface, void(const scoped_refptr<gfx::GLSurface>& surface)); |
| 47 MOCK_METHOD1(ProduceFrontBuffer, bool(const Mailbox& mailbox)); | 46 MOCK_METHOD1(ProduceFrontBuffer, bool(const Mailbox& mailbox)); |
| 48 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size)); | 47 MOCK_METHOD1(ResizeOffscreenFrameBuffer, bool(const gfx::Size& size)); |
| 49 MOCK_METHOD0(MakeCurrent, bool()); | 48 MOCK_METHOD0(MakeCurrent, bool()); |
| 50 MOCK_METHOD0(ReleaseCurrent, void()); | 49 MOCK_METHOD0(ReleaseCurrent, void()); |
| 51 MOCK_METHOD1(GetServiceIdForTesting, uint32(uint32 client_id)); | 50 MOCK_METHOD1(GetServiceIdForTesting, uint32(uint32 client_id)); |
| 52 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); | 51 MOCK_METHOD0(GetGLES2Util, GLES2Util*()); |
| 53 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*()); | 52 MOCK_METHOD0(GetGLSurface, gfx::GLSurface*()); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool()); | 111 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool()); |
| 113 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); | 112 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); |
| 114 | 113 |
| 115 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 114 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
| 116 }; | 115 }; |
| 117 | 116 |
| 118 } // namespace gles2 | 117 } // namespace gles2 |
| 119 } // namespace gpu | 118 } // namespace gpu |
| 120 | 119 |
| 121 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 120 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| OLD | NEW |