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

Unified Diff: gpu/command_buffer/tests/gl_clear_framebuffer_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
Index: gpu/command_buffer/tests/gl_clear_framebuffer_unittest.cc
diff --git a/gpu/command_buffer/tests/gl_clear_framebuffer_unittest.cc b/gpu/command_buffer/tests/gl_clear_framebuffer_unittest.cc
index 3ce80f9623a812ff17c1f2a7886d58051d35741a..496b3efd69e64fd23c7f523aea4998e0140b9054 100644
--- a/gpu/command_buffer/tests/gl_clear_framebuffer_unittest.cc
+++ b/gpu/command_buffer/tests/gl_clear_framebuffer_unittest.cc
@@ -9,6 +9,7 @@
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <GLES2/gl2extchromium.h>
+#include <stdint.h>
#include <vector>
@@ -111,7 +112,7 @@ TEST_P(GLClearFramebufferTest, ClearColor) {
glClear(GL_COLOR_BUFFER_BIT);
// Verify.
- const uint8 expected[] = {255, 128, 64, 128};
+ const uint8_t expected[] = {255, 128, 64, 128};
EXPECT_TRUE(
GLTestHelper::CheckPixels(0, 0, 1, 1, 1 /* tolerance */, expected));
}
@@ -122,7 +123,7 @@ TEST_P(GLClearFramebufferTest, ClearColorWithMask) {
glClear(GL_COLOR_BUFFER_BIT);
// Verify.
- const uint8 expected[] = {255, 0, 0, 0};
+ const uint8_t expected[] = {255, 0, 0, 0};
EXPECT_TRUE(
GLTestHelper::CheckPixels(0, 0, 1, 1, 0 /* tolerance */, expected));
}
@@ -134,7 +135,7 @@ TEST_P(GLClearFramebufferTest, ClearColorWithScissor) {
glClear(GL_COLOR_BUFFER_BIT);
// Verify.
- const uint8 expected[] = {255, 255, 255, 255};
+ const uint8_t expected[] = {255, 255, 255, 255};
EXPECT_TRUE(
GLTestHelper::CheckPixels(0, 0, 1, 1, 0 /* tolerance */, expected));
@@ -155,8 +156,8 @@ TEST_P(GLClearFramebufferTest, ClearDepthStencil) {
SetDrawColor(1.0f, 0.0f, 0.0f, 1.0f);
DrawQuad();
// Verify.
- const uint8 kRed[] = {255, 0, 0, 255};
- const uint8 kGreen[] = {0, 255, 0, 255};
+ const uint8_t kRed[] = {255, 0, 0, 255};
+ const uint8_t kGreen[] = {0, 255, 0, 255};
EXPECT_TRUE(
GLTestHelper::CheckPixels(0, 0, 1, 1, 0 /* tolerance */, kRed));

Powered by Google App Engine
This is Rietveld 408576698