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

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

Issue 295803002: Moves responsibility for shader resource string generation to ANGLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add DCHECK for string length Created 6 years, 7 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/program_cache.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 GlslImplementationType glsl_implementation_type, 86 GlslImplementationType glsl_implementation_type,
87 ShCompileOptions driver_bug_workarounds)); 87 ShCompileOptions 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 GetStringForOptionsThatWouldAffectCompilation, std::string());
97 }; 97 };
98 98
99 class MockProgramCache : public ProgramCache { 99 class MockProgramCache : public ProgramCache {
100 public: 100 public:
101 MockProgramCache(); 101 MockProgramCache();
102 virtual ~MockProgramCache(); 102 virtual ~MockProgramCache();
103 103
104 MOCK_METHOD7(LoadLinkedProgram, ProgramLoadResult( 104 MOCK_METHOD7(LoadLinkedProgram, ProgramLoadResult(
105 GLuint program, 105 GLuint program,
106 Shader* shader_a, 106 Shader* shader_a,
(...skipping 28 matching lines...) Expand all
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_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/program_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698