Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: gpu/command_buffer/service/mocks.h

Issue 5626008: Exposed support for dynamically enabling extensions in command buffer... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 definitions for mock objects, used for testing. 5 // This file contains definitions for mock objects, used for testing.
6 6
7 // TODO(apatrick): This file "manually" defines some mock objects. Using gMock 7 // TODO(apatrick): This file "manually" defines some mock objects. Using gMock
8 // would be definitely preferable, unfortunately it doesn't work on Windows yet. 8 // would be definitely preferable, unfortunately it doesn't work on Windows yet.
9 9
10 #ifndef GPU_COMMAND_BUFFER_SERVICE_MOCKS_H_ 10 #ifndef GPU_COMMAND_BUFFER_SERVICE_MOCKS_H_
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 private: 76 private:
77 CommandBufferEngine *engine_; 77 CommandBufferEngine *engine_;
78 }; 78 };
79 79
80 namespace gles2 { 80 namespace gles2 {
81 81
82 class MockShaderTranslator : public ShaderTranslatorInterface { 82 class MockShaderTranslator : public ShaderTranslatorInterface {
83 public: 83 public:
84 virtual ~MockShaderTranslator() { } 84 virtual ~MockShaderTranslator() { }
85 85
86 MOCK_METHOD3(Init, bool( 86 MOCK_METHOD4(Init, bool(
87 ShShaderType shader_type, 87 ShShaderType shader_type,
88 ShShaderSpec shader_spec, 88 ShShaderSpec shader_spec,
89 const ShBuiltInResources* resources)); 89 const ShBuiltInResources* resources,
90 bool implementation_is_glsl_es));
90 MOCK_METHOD1(Translate, bool(const char* shader)); 91 MOCK_METHOD1(Translate, bool(const char* shader));
91 MOCK_CONST_METHOD0(translated_shader, const char*()); 92 MOCK_CONST_METHOD0(translated_shader, const char*());
92 MOCK_CONST_METHOD0(info_log, const char*()); 93 MOCK_CONST_METHOD0(info_log, const char*());
93 MOCK_CONST_METHOD0(attrib_map, const VariableMap&()); 94 MOCK_CONST_METHOD0(attrib_map, const VariableMap&());
94 MOCK_CONST_METHOD0(uniform_map, const VariableMap&()); 95 MOCK_CONST_METHOD0(uniform_map, const VariableMap&());
95 }; 96 };
96 97
97 } // namespace gles2 98 } // namespace gles2
98 } // namespace gpu 99 } // namespace gpu
99 100
100 #endif // GPU_COMMAND_BUFFER_SERVICE_MOCKS_H_ 101 #endif // GPU_COMMAND_BUFFER_SERVICE_MOCKS_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h ('k') | gpu/command_buffer/service/shader_translator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698