Index: gpu/command_buffer/service/mocks.h |
diff --git a/gpu/command_buffer/service/mocks.h b/gpu/command_buffer/service/mocks.h |
index 6cdeb09982aa4fd81361b64ecd01636f799688e3..d32c031e47d4db20601b3a16d14728bbce55ad48 100644 |
--- a/gpu/command_buffer/service/mocks.h |
+++ b/gpu/command_buffer/service/mocks.h |
@@ -26,9 +26,14 @@ namespace gpu { |
// Mocks an AsyncAPIInterface, using GMock. |
class AsyncAPIMock : public AsyncAPIInterface { |
public: |
- AsyncAPIMock(); |
+ explicit AsyncAPIMock(bool default_do_commands); |
virtual ~AsyncAPIMock(); |
+ error::Error FakeDoCommands(unsigned int num_commands, |
+ const void* buffer, |
+ int num_entries, |
+ int* entries_processed); |
+ |
// Predicate that matches args passed to DoCommand, by looking at the values. |
class IsArgs { |
public: |
@@ -56,6 +61,12 @@ class AsyncAPIMock : public AsyncAPIInterface { |
unsigned int arg_count, |
const void* cmd_data)); |
+ MOCK_METHOD4(DoCommands, |
+ error::Error(unsigned int num_commands, |
+ const void* buffer, |
+ int num_entries, |
+ int* entries_processed)); |
+ |
const char* GetCommandName(unsigned int command_id) const { |
return ""; |
}; |