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

Unified Diff: gpu/command_buffer/common/gles2_cmd_format_test.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/common/gles2_cmd_format_autogen.h ('k') | gpu/command_buffer/common/gles2_cmd_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/gles2_cmd_format_test.cc
diff --git a/gpu/command_buffer/common/gles2_cmd_format_test.cc b/gpu/command_buffer/common/gles2_cmd_format_test.cc
index d11b2c5d1340f36f59858cb0b3a5eaa918d10117..4403886486e3713b0ab272505c6c28de60e30ed2 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_test.cc
+++ b/gpu/command_buffer/common/gles2_cmd_format_test.cc
@@ -4,6 +4,9 @@
// This file contains unit tests for gles2 commmands
+#include <stddef.h>
+#include <stdint.h>
+
#include <limits>
#include "base/bind.h"
@@ -50,8 +53,8 @@ class GLES2FormatTest : public testing::Test {
unsigned char buffer_[1024];
};
-void SignalCompletion(uint32* assigned_async_token_ptr,
- uint32 async_token,
+void SignalCompletion(uint32_t* assigned_async_token_ptr,
+ uint32_t async_token,
AsyncUploadSync* sync) {
EXPECT_EQ(async_token, *assigned_async_token_ptr);
sync->SetAsyncUploadToken(async_token);
@@ -69,11 +72,11 @@ TEST(GLES2FormatAsyncUploadSyncTest, AsyncUploadSync) {
AsyncUploadSync sync;
sync.Reset();
- uint32 buffer_tokens[kSize];
+ uint32_t buffer_tokens[kSize];
memset(buffer_tokens, 0, sizeof(buffer_tokens));
// Start with a token large enough so that we'll wrap.
- uint32 async_token = std::numeric_limits<uint32>::max() - kCount / 2;
+ uint32_t async_token = std::numeric_limits<uint32_t>::max() - kCount / 2;
// Set initial async token.
sync.SetAsyncUploadToken(async_token);
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format_autogen.h ('k') | gpu/command_buffer/common/gles2_cmd_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698