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

Unified Diff: gpu/command_buffer/client/buffer_tracker_unittest.cc

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/client/buffer_tracker.cc ('k') | gpu/command_buffer/client/client_test_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/buffer_tracker_unittest.cc
diff --git a/gpu/command_buffer/client/buffer_tracker_unittest.cc b/gpu/command_buffer/client/buffer_tracker_unittest.cc
index c1ed0b6dfa592a02eca9f6ed45630cb7b63c9cc2..c44d3849fab306922ff85ec2cd5b37146b32fa91 100644
--- a/gpu/command_buffer/client/buffer_tracker_unittest.cc
+++ b/gpu/command_buffer/client/buffer_tracker_unittest.cc
@@ -8,6 +8,8 @@
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
+#include <stddef.h>
+#include <stdint.h>
#include "base/memory/scoped_ptr.h"
#include "gpu/command_buffer/client/client_test_helper.h"
#include "gpu/command_buffer/client/gles2_cmd_helper.h"
@@ -27,7 +29,7 @@ class MockClientCommandBufferImpl : public MockClientCommandBuffer {
~MockClientCommandBufferImpl() override {}
scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size,
- int32* id) override {
+ int32_t* id) override {
if (context_lost_) {
*id = -1;
return NULL;
@@ -45,8 +47,8 @@ class MockClientCommandBufferImpl : public MockClientCommandBuffer {
class BufferTrackerTest : public testing::Test {
protected:
- static const int32 kNumCommandEntries = 400;
- static const int32 kCommandBufferSizeBytes =
+ static const int32_t kNumCommandEntries = 400;
+ static const int32_t kCommandBufferSizeBytes =
kNumCommandEntries * sizeof(CommandBufferEntry);
void SetUp() override {
« no previous file with comments | « gpu/command_buffer/client/buffer_tracker.cc ('k') | gpu/command_buffer/client/client_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698