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

Unified Diff: gpu/command_buffer/common/command_buffer_mock.h

Issue 1542513002: Switch to standard integer types in gpu/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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 | « gpu/command_buffer/common/command_buffer.h ('k') | gpu/command_buffer/common/command_buffer_shared_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/command_buffer_mock.h
diff --git a/gpu/command_buffer/common/command_buffer_mock.h b/gpu/command_buffer/common/command_buffer_mock.h
index 9e1f7131e7a0d2687fa8086239e9c905875d2003..600ae7e553514a269e099f347b1a84dc4a51c456 100644
--- a/gpu/command_buffer/common/command_buffer_mock.h
+++ b/gpu/command_buffer/common/command_buffer_mock.h
@@ -5,6 +5,10 @@
#ifndef GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_MOCK_H_
#define GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_MOCK_H_
+#include <stddef.h>
+#include <stdint.h>
+
+#include "base/macros.h"
#include "gpu/command_buffer/service/command_buffer_service.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -23,23 +27,23 @@ class MockCommandBuffer : public CommandBufferServiceBase {
MOCK_METHOD0(Initialize, bool());
MOCK_METHOD0(GetLastState, State());
- MOCK_METHOD0(GetLastToken, int32());
- MOCK_METHOD1(Flush, void(int32 put_offset));
- MOCK_METHOD1(OrderingBarrier, void(int32 put_offset));
- MOCK_METHOD2(WaitForTokenInRange, void(int32 start, int32 end));
- MOCK_METHOD2(WaitForGetOffsetInRange, void(int32 start, int32 end));
- MOCK_METHOD1(SetGetBuffer, void(int32 transfer_buffer_id));
- MOCK_METHOD1(SetGetOffset, void(int32 get_offset));
+ MOCK_METHOD0(GetLastToken, int32_t());
+ MOCK_METHOD1(Flush, void(int32_t put_offset));
+ MOCK_METHOD1(OrderingBarrier, void(int32_t put_offset));
+ MOCK_METHOD2(WaitForTokenInRange, void(int32_t start, int32_t end));
+ MOCK_METHOD2(WaitForGetOffsetInRange, void(int32_t start, int32_t end));
+ MOCK_METHOD1(SetGetBuffer, void(int32_t transfer_buffer_id));
+ MOCK_METHOD1(SetGetOffset, void(int32_t get_offset));
MOCK_METHOD2(CreateTransferBuffer,
- scoped_refptr<gpu::Buffer>(size_t size, int32* id));
- MOCK_METHOD1(DestroyTransferBuffer, void(int32 id));
- MOCK_METHOD1(GetTransferBuffer, scoped_refptr<gpu::Buffer>(int32 id));
- MOCK_METHOD1(SetToken, void(int32 token));
+ scoped_refptr<gpu::Buffer>(size_t size, int32_t* id));
+ MOCK_METHOD1(DestroyTransferBuffer, void(int32_t id));
+ MOCK_METHOD1(GetTransferBuffer, scoped_refptr<gpu::Buffer>(int32_t id));
+ MOCK_METHOD1(SetToken, void(int32_t token));
MOCK_METHOD1(SetParseError, void(error::Error error));
MOCK_METHOD1(SetContextLostReason,
void(error::ContextLostReason context_lost_reason));
- MOCK_METHOD0(InsertSyncPoint, uint32());
- MOCK_METHOD0(GetPutOffset, int32());
+ MOCK_METHOD0(InsertSyncPoint, uint32_t());
+ MOCK_METHOD0(GetPutOffset, int32_t());
private:
DISALLOW_COPY_AND_ASSIGN(MockCommandBuffer);
« no previous file with comments | « gpu/command_buffer/common/command_buffer.h ('k') | gpu/command_buffer/common/command_buffer_shared_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698