| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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> |
| 11 | 11 |
| 12 #include "gfx/size.h" | |
| 13 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 12 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 14 #include "base/callback.h" | 13 #include "base/callback.h" |
| 15 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
| 15 #include "ui/gfx/size.h" |
| 16 | 16 |
| 17 namespace gpu { | 17 namespace gpu { |
| 18 class GLContext; | 18 class GLContext; |
| 19 | 19 |
| 20 namespace gles2 { | 20 namespace gles2 { |
| 21 | 21 |
| 22 class ContextGroup; | 22 class ContextGroup; |
| 23 class MockGLES2Decoder : public GLES2Decoder { | 23 class MockGLES2Decoder : public GLES2Decoder { |
| 24 public: | 24 public: |
| 25 MockGLES2Decoder() | 25 MockGLES2Decoder() |
| (...skipping 27 matching lines...) Expand all Loading... |
| 53 uint32* service_texture_id)); | 53 uint32* service_texture_id)); |
| 54 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); | 54 MOCK_CONST_METHOD1(GetCommandName, const char*(unsigned int command_id)); |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 56 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace gles2 | 59 } // namespace gles2 |
| 60 } // namespace gpu | 60 } // namespace gpu |
| 61 | 61 |
| 62 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 62 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| OLD | NEW |