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

Unified Diff: gpu/command_buffer/tests/gl_lose_context_chromium_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_gpu_memory_buffer_unittest.cc ('k') | gpu/command_buffer/tests/gl_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/gl_lose_context_chromium_unittest.cc
diff --git a/gpu/command_buffer/tests/gl_lose_context_chromium_unittest.cc b/gpu/command_buffer/tests/gl_lose_context_chromium_unittest.cc
index 94381ac31ad7be8585e1320c79622f0236bdc6f5..92024378825853dfd5f70c50babf34d0952342cf 100644
--- a/gpu/command_buffer/tests/gl_lose_context_chromium_unittest.cc
+++ b/gpu/command_buffer/tests/gl_lose_context_chromium_unittest.cc
@@ -5,6 +5,7 @@
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <GLES2/gl2extchromium.h>
+#include <stdint.h>
#include "base/logging.h"
#include "gpu/command_buffer/service/feature_info.h"
@@ -49,11 +50,9 @@ TEST_F(GLLoseContextTest, ShareGroup) {
glLoseContextCHROMIUM(
GL_GUILTY_CONTEXT_RESET_EXT, GL_INNOCENT_CONTEXT_RESET_EXT);
- uint8 expected_no_draw[] = {
- GLTestHelper::kCheckClearValue,
- GLTestHelper::kCheckClearValue,
- GLTestHelper::kCheckClearValue,
- GLTestHelper::kCheckClearValue,
+ uint8_t expected_no_draw[] = {
+ GLTestHelper::kCheckClearValue, GLTestHelper::kCheckClearValue,
+ GLTestHelper::kCheckClearValue, GLTestHelper::kCheckClearValue,
};
// Expect the read will fail.
EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, 1, 1, 0, expected_no_draw));
@@ -61,7 +60,9 @@ TEST_F(GLLoseContextTest, ShareGroup) {
// Expect the read will fail.
EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, 1, 1, 0, expected_no_draw));
gl2_.MakeCurrent();
- uint8 expected_draw[] = { 0, 0, 0, 0, };
+ uint8_t expected_draw[] = {
+ 0, 0, 0, 0,
+ };
// Expect the read will succeed.
EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, 1, 1, 0, expected_draw));
}
« no previous file with comments | « gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc ('k') | gpu/command_buffer/tests/gl_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698