| 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 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 class MockShaderTranslator : public ShaderTranslatorInterface { | 77 class MockShaderTranslator : public ShaderTranslatorInterface { |
| 78 public: | 78 public: |
| 79 MockShaderTranslator(); | 79 MockShaderTranslator(); |
| 80 virtual ~MockShaderTranslator(); | 80 virtual ~MockShaderTranslator(); |
| 81 | 81 |
| 82 MOCK_METHOD5(Init, bool( | 82 MOCK_METHOD5(Init, bool( |
| 83 ShShaderType shader_type, | 83 ShShaderType shader_type, |
| 84 ShShaderSpec shader_spec, | 84 ShShaderSpec shader_spec, |
| 85 const ShBuiltInResources* resources, | 85 const ShBuiltInResources* resources, |
| 86 GlslImplementationType glsl_implementation_type, | 86 GlslImplementationType glsl_implementation_type, |
| 87 GlslBuiltInFunctionBehavior glsl_built_in_function_behavior)); | 87 int driver_bug_workarounds)); |
| 88 MOCK_METHOD1(Translate, bool(const char* shader)); | 88 MOCK_METHOD1(Translate, bool(const char* shader)); |
| 89 MOCK_CONST_METHOD0(translated_shader, const char*()); | 89 MOCK_CONST_METHOD0(translated_shader, const char*()); |
| 90 MOCK_CONST_METHOD0(info_log, const char*()); | 90 MOCK_CONST_METHOD0(info_log, const char*()); |
| 91 MOCK_CONST_METHOD0(attrib_map, const VariableMap&()); | 91 MOCK_CONST_METHOD0(attrib_map, const VariableMap&()); |
| 92 MOCK_CONST_METHOD0(uniform_map, const VariableMap&()); | 92 MOCK_CONST_METHOD0(uniform_map, const VariableMap&()); |
| 93 MOCK_CONST_METHOD0(varying_map, const VariableMap&()); | 93 MOCK_CONST_METHOD0(varying_map, const VariableMap&()); |
| 94 MOCK_CONST_METHOD0(name_map, const NameMap&()); | 94 MOCK_CONST_METHOD0(name_map, const NameMap&()); |
| 95 MOCK_CONST_METHOD0( | 95 MOCK_CONST_METHOD0( |
| 96 GetStringForOptionsThatWouldEffectCompilation, std::string()); | 96 GetStringForOptionsThatWouldEffectCompilation, std::string()); |
| 97 }; | 97 }; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 private: | 135 private: |
| 136 friend class ::testing::StrictMock<MockMemoryTracker>; | 136 friend class ::testing::StrictMock<MockMemoryTracker>; |
| 137 friend class base::RefCounted< ::testing::StrictMock<MockMemoryTracker> >; | 137 friend class base::RefCounted< ::testing::StrictMock<MockMemoryTracker> >; |
| 138 virtual ~MockMemoryTracker(); | 138 virtual ~MockMemoryTracker(); |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 } // namespace gles2 | 141 } // namespace gles2 |
| 142 } // namespace gpu | 142 } // namespace gpu |
| 143 | 143 |
| 144 #endif // GPU_COMMAND_BUFFER_SERVICE_MOCKS_H_ | 144 #endif // GPU_COMMAND_BUFFER_SERVICE_MOCKS_H_ |
| OLD | NEW |