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

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

Issue 1309743005: command_buffer: Implement EXT_blend_func_extended (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: ~ Created 5 years, 3 months 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
OLDNEW
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 class MockShaderTranslator : public ShaderTranslatorInterface { 88 class MockShaderTranslator : public ShaderTranslatorInterface {
89 public: 89 public:
90 MockShaderTranslator(); 90 MockShaderTranslator();
91 91
92 MOCK_METHOD5(Init, 92 MOCK_METHOD5(Init,
93 bool(sh::GLenum shader_type, 93 bool(sh::GLenum shader_type,
94 ShShaderSpec shader_spec, 94 ShShaderSpec shader_spec,
95 const ShBuiltInResources* resources, 95 const ShBuiltInResources* resources,
96 ShShaderOutput shader_output_language, 96 ShShaderOutput shader_output_language,
97 ShCompileOptions driver_bug_workarounds)); 97 ShCompileOptions driver_bug_workarounds));
98 MOCK_CONST_METHOD8(Translate, bool( 98 MOCK_CONST_METHOD9(Translate,
99 const std::string& shader_source, 99 bool(const std::string& shader_source,
100 std::string* info_log, 100 std::string* info_log,
101 std::string* translated_source, 101 std::string* translated_source,
102 int* shader_version, 102 int* shader_version,
103 AttributeMap* attrib_map, 103 AttributeMap* attrib_map,
104 UniformMap* uniform_map, 104 UniformMap* uniform_map,
105 VaryingMap* varying_map, 105 VaryingMap* varying_map,
106 NameMap* name_map)); 106 AttributeList* output_variable_list,
107 NameMap* name_map));
107 MOCK_CONST_METHOD0( 108 MOCK_CONST_METHOD0(
108 GetStringForOptionsThatWouldAffectCompilation, std::string()); 109 GetStringForOptionsThatWouldAffectCompilation, std::string());
109 private: 110 private:
110 ~MockShaderTranslator() override; 111 ~MockShaderTranslator() override;
111 }; 112 };
112 113
113 class MockProgramCache : public ProgramCache { 114 class MockProgramCache : public ProgramCache {
114 public: 115 public:
115 MockProgramCache(); 116 MockProgramCache();
116 virtual ~MockProgramCache(); 117 virtual ~MockProgramCache();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 private: 152 private:
152 friend class ::testing::StrictMock<MockMemoryTracker>; 153 friend class ::testing::StrictMock<MockMemoryTracker>;
153 friend class base::RefCounted< ::testing::StrictMock<MockMemoryTracker> >; 154 friend class base::RefCounted< ::testing::StrictMock<MockMemoryTracker> >;
154 virtual ~MockMemoryTracker(); 155 virtual ~MockMemoryTracker();
155 }; 156 };
156 157
157 } // namespace gles2 158 } // namespace gles2
158 } // namespace gpu 159 } // namespace gpu
159 160
160 #endif // GPU_COMMAND_BUFFER_SERVICE_MOCKS_H_ 161 #endif // GPU_COMMAND_BUFFER_SERVICE_MOCKS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698