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

Unified Diff: gpu/command_buffer/tests/gl_query_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/tests/gl_program_unittest.cc ('k') | gpu/command_buffer/tests/gl_readback_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/gl_query_unittest.cc
diff --git a/gpu/command_buffer/tests/gl_query_unittest.cc b/gpu/command_buffer/tests/gl_query_unittest.cc
index b12adc333e473d66801233a040824da2cbd2e582..09d08e999b0cb13d392e80e1d861aea534a0def0 100644
--- a/gpu/command_buffer/tests/gl_query_unittest.cc
+++ b/gpu/command_buffer/tests/gl_query_unittest.cc
@@ -5,6 +5,7 @@
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <GLES2/gl2extchromium.h>
+#include <stdint.h>
#include "base/threading/platform_thread.h"
#include "gpu/command_buffer/tests/gl_manager.h"
@@ -72,7 +73,7 @@ TEST_F(QueryTest, MultipleQueries) {
&available);
EXPECT_TRUE(available);
glGetQueryObjectuivEXT(error_query, GL_QUERY_RESULT_EXT, &result);
- EXPECT_EQ(static_cast<uint32>(GL_INVALID_ENUM), result);
+ EXPECT_EQ(static_cast<uint32_t>(GL_INVALID_ENUM), result);
}
TEST_F(QueryTest, GetErrorBasic) {
@@ -95,7 +96,7 @@ TEST_F(QueryTest, GetErrorBasic) {
glGetQueryObjectuivEXT(query, GL_QUERY_RESULT_AVAILABLE_EXT, &result);
EXPECT_TRUE(result);
glGetQueryObjectuivEXT(query, GL_QUERY_RESULT_EXT, &query_status);
- EXPECT_EQ(static_cast<uint32>(GL_INVALID_ENUM), query_status);
+ EXPECT_EQ(static_cast<uint32_t>(GL_INVALID_ENUM), query_status);
}
TEST_F(QueryTest, DISABLED_LatencyQueryBasic) {
« no previous file with comments | « gpu/command_buffer/tests/gl_program_unittest.cc ('k') | gpu/command_buffer/tests/gl_readback_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698