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

Unified Diff: gpu/command_buffer/tests/gl_program_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_pointcoord_unittest.cc ('k') | gpu/command_buffer/tests/gl_query_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_program_unittest.cc
diff --git a/gpu/command_buffer/tests/gl_program_unittest.cc b/gpu/command_buffer/tests/gl_program_unittest.cc
index fa3897eeebb34c9503ac7dc1f2b8e7eb4e07dae2..55e1d9e2ecc918c063d2de1dba2b259bfee592b1 100644
--- a/gpu/command_buffer/tests/gl_program_unittest.cc
+++ b/gpu/command_buffer/tests/gl_program_unittest.cc
@@ -5,6 +5,7 @@
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <GLES2/gl2extchromium.h>
+#include <stdint.h>
#include "gpu/command_buffer/service/context_group.h"
#include "gpu/command_buffer/tests/gl_manager.h"
@@ -127,7 +128,9 @@ TEST_F(GLProgramTest, NewShaderInCurrentProgram) {
GLuint position_loc = glGetAttribLocation(program, "a_position");
GLTestHelper::SetupUnitQuad(position_loc);
glDrawArrays(GL_TRIANGLES, 0, 6);
- uint8 expected_color[] = { 0, 0, 255, 255, };
+ uint8_t expected_color[] = {
+ 0, 0, 255, 255,
+ };
EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, 1, 1, 0, expected_color));
GLTestHelper::CheckGLError("no errors", __LINE__);
}
@@ -193,7 +196,9 @@ TEST_F(GLProgramTest, UniformsInCurrentProgram) {
GLuint position_loc = glGetAttribLocation(program, "a_position");
GLTestHelper::SetupUnitQuad(position_loc);
glDrawArrays(GL_TRIANGLES, 0, 6);
- uint8 expected_color[] = { 0, 0, 255, 255, };
+ uint8_t expected_color[] = {
+ 0, 0, 255, 255,
+ };
EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, 1, 1, 0, expected_color));
GLTestHelper::CheckGLError("no errors", __LINE__);
}
« no previous file with comments | « gpu/command_buffer/tests/gl_pointcoord_unittest.cc ('k') | gpu/command_buffer/tests/gl_query_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698