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

Unified Diff: command_buffer/service/cross/mocks.h

Issue 212018: Change command buffer client code to use structures.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « command_buffer/service/cross/gl/texture_gl.cc ('k') | command_buffer/service/win/d3d9/effect_d3d9.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: command_buffer/service/cross/mocks.h
===================================================================
--- command_buffer/service/cross/mocks.h (revision 26638)
+++ command_buffer/service/cross/mocks.h (working copy)
@@ -52,7 +52,7 @@
public:
AsyncAPIMock() {
testing::DefaultValue<BufferSyncInterface::ParseError>::Set(
- BufferSyncInterface::PARSE_NO_ERROR);
+ BufferSyncInterface::kParseNoError);
}
// Predicate that matches args passed to DoCommand, by looking at the values.
@@ -60,11 +60,12 @@
public:
IsArgs(unsigned int arg_count, const void* args)
: arg_count_(arg_count),
- args_(static_cast<CommandBufferEntry*>(const_cast<void*>(args))) { }
+ args_(static_cast<CommandBufferEntry*>(const_cast<void*>(args))) {
+ }
bool operator() (const void* _args) const {
const CommandBufferEntry* args =
- static_cast<const CommandBufferEntry*>(_args);
+ static_cast<const CommandBufferEntry*>(_args) + 1;
for (unsigned int i = 0; i < arg_count_; ++i) {
if (args[i].value_uint32 != args_[i].value_uint32) return false;
}
@@ -79,9 +80,9 @@
MOCK_METHOD3(DoCommand, BufferSyncInterface::ParseError(
unsigned int command,
unsigned int arg_count,
- const void* args));
+ const void* cmd_data));
- // Sets the engine, to forward SET_TOKEN commands to it.
+ // Sets the engine, to forward SetToken commands to it.
void set_engine(CommandBufferEngine *engine) { engine_ = engine; }
// Forwards the SetToken commands to the engine.
« no previous file with comments | « command_buffer/service/cross/gl/texture_gl.cc ('k') | command_buffer/service/win/d3d9/effect_d3d9.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698