Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_programs.cc |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_programs.cc b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_programs.cc |
index 5571adf990be504f72b77fd9864282e54b94df39..be022e1239d7842f5625ab165a811d76f86d0ddf 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_programs.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_programs.cc |
@@ -4,6 +4,9 @@ |
#include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
+#include <stddef.h> |
+#include <stdint.h> |
+ |
#include "base/command_line.h" |
#include "base/strings/string_number_conversions.h" |
#include "gpu/command_buffer/common/gles2_cmd_format.h" |
@@ -49,7 +52,7 @@ namespace gles2 { |
using namespace cmds; |
TEST_P(GLES2DecoderWithShaderTest, GetProgramInfoCHROMIUMValidArgs) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetProgramInfoCHROMIUM cmd; |
cmd.Init(client_program_id_, kBucketId); |
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
@@ -58,7 +61,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetProgramInfoCHROMIUMValidArgs) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetProgramInfoCHROMIUMInvalidArgs) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
CommonDecoder::Bucket* bucket = decoder_->GetBucket(kBucketId); |
EXPECT_TRUE(bucket == NULL); |
GetProgramInfoCHROMIUM cmd; |
@@ -77,7 +80,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetProgramInfoCHROMIUMInvalidArgs) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformBlocksCHROMIUMValidArgs) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetUniformBlocksCHROMIUM cmd; |
cmd.Init(client_program_id_, kBucketId); |
EXPECT_CALL(*gl_, GetProgramiv(kServiceProgramId, GL_LINK_STATUS, _)) |
@@ -100,7 +103,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformBlocksCHROMIUMValidArgs) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformBlocksCHROMIUMInvalidArgs) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
CommonDecoder::Bucket* bucket = decoder_->GetBucket(kBucketId); |
EXPECT_TRUE(bucket == NULL); |
GetUniformBlocksCHROMIUM cmd; |
@@ -118,7 +121,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformBlocksCHROMIUMInvalidArgs) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformsES3CHROMIUMValidArgs) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetUniformsES3CHROMIUM cmd; |
cmd.Init(client_program_id_, kBucketId); |
EXPECT_CALL(*gl_, GetProgramiv(kServiceProgramId, GL_LINK_STATUS, _)) |
@@ -141,7 +144,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformsES3CHROMIUMValidArgs) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformsES3CHROMIUMInvalidArgs) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
CommonDecoder::Bucket* bucket = decoder_->GetBucket(kBucketId); |
EXPECT_TRUE(bucket == NULL); |
GetUniformsES3CHROMIUM cmd; |
@@ -160,7 +163,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformsES3CHROMIUMInvalidArgs) { |
TEST_P(GLES2DecoderWithShaderTest, |
GetTransformFeedbackVaryingsCHROMIUMValidArgs) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetTransformFeedbackVaryingsCHROMIUM cmd; |
cmd.Init(client_program_id_, kBucketId); |
EXPECT_CALL(*(gl_.get()), |
@@ -194,7 +197,7 @@ TEST_P(GLES2DecoderWithShaderTest, |
TEST_P(GLES2DecoderWithShaderTest, |
GetTransformFeedbackVaryingsCHROMIUMInvalidArgs) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
CommonDecoder::Bucket* bucket = decoder_->GetBucket(kBucketId); |
EXPECT_TRUE(bucket == NULL); |
GetTransformFeedbackVaryingsCHROMIUM cmd; |
@@ -225,7 +228,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformivSucceeds) { |
.Times(1); |
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
EXPECT_EQ(GLES2Util::GetElementCountForUniformType(kUniform2Type), |
- static_cast<uint32>(result->GetNumResults())); |
+ static_cast<uint32_t>(result->GetNumResults())); |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformivArrayElementSucceeds) { |
@@ -242,7 +245,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformivArrayElementSucceeds) { |
.Times(1); |
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
EXPECT_EQ(GLES2Util::GetElementCountForUniformType(kUniform2Type), |
- static_cast<uint32>(result->GetNumResults())); |
+ static_cast<uint32_t>(result->GetNumResults())); |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformivBadProgramFails) { |
@@ -334,7 +337,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformuivSucceeds) { |
decoder_->set_unsafe_es3_apis_enabled(true); |
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
EXPECT_EQ(GLES2Util::GetElementCountForUniformType(kUniform2Type), |
- static_cast<uint32>(result->GetNumResults())); |
+ static_cast<uint32_t>(result->GetNumResults())); |
decoder_->set_unsafe_es3_apis_enabled(false); |
EXPECT_EQ(error::kUnknownCommand, ExecuteCmd(cmd)); |
} |
@@ -354,7 +357,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformuivArrayElementSucceeds) { |
decoder_->set_unsafe_es3_apis_enabled(true); |
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
EXPECT_EQ(GLES2Util::GetElementCountForUniformType(kUniform2Type), |
- static_cast<uint32>(result->GetNumResults())); |
+ static_cast<uint32_t>(result->GetNumResults())); |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformuivBadProgramFails) { |
@@ -448,7 +451,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformfvSucceeds) { |
.Times(1); |
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
EXPECT_EQ(GLES2Util::GetElementCountForUniformType(kUniform2Type), |
- static_cast<uint32>(result->GetNumResults())); |
+ static_cast<uint32_t>(result->GetNumResults())); |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformfvArrayElementSucceeds) { |
@@ -465,7 +468,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformfvArrayElementSucceeds) { |
.Times(1); |
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
EXPECT_EQ(GLES2Util::GetElementCountForUniformType(kUniform2Type), |
- static_cast<uint32>(result->GetNumResults())); |
+ static_cast<uint32_t>(result->GetNumResults())); |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformfvBadProgramFails) { |
@@ -676,7 +679,7 @@ TEST_P(GLES2DecoderWithShaderTest, |
TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformSucceeds) { |
const GLuint kUniformIndex = 1; |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetActiveUniform cmd; |
typedef GetActiveUniform::Result Result; |
Result* result = static_cast<Result*>(shared_memory_address_); |
@@ -701,7 +704,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformSucceeds) { |
TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformResultNotInitFails) { |
const GLuint kUniformIndex = 1; |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetActiveUniform cmd; |
typedef GetActiveUniform::Result Result; |
Result* result = static_cast<Result*>(shared_memory_address_); |
@@ -716,7 +719,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformResultNotInitFails) { |
TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformBadProgramFails) { |
const GLuint kUniformIndex = 1; |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetActiveUniform cmd; |
typedef GetActiveUniform::Result Result; |
Result* result = static_cast<Result*>(shared_memory_address_); |
@@ -743,7 +746,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformBadProgramFails) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformBadIndexFails) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetActiveUniform cmd; |
typedef GetActiveUniform::Result Result; |
Result* result = static_cast<Result*>(shared_memory_address_); |
@@ -760,7 +763,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformBadIndexFails) { |
TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformBadSharedMemoryFails) { |
const GLuint kUniformIndex = 1; |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetActiveUniform cmd; |
cmd.Init(client_program_id_, |
kUniformIndex, |
@@ -777,7 +780,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformBadSharedMemoryFails) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformBlockNameSucceeds) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetActiveUniformBlockName cmd; |
typedef GetActiveUniformBlockName::Result Result; |
Result* result = static_cast<Result*>(shared_memory_address_); |
@@ -815,7 +818,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformBlockNameSucceeds) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformBlockNameUnlinkedProgram) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetActiveUniformBlockName cmd; |
typedef GetActiveUniformBlockName::Result Result; |
Result* result = static_cast<Result*>(shared_memory_address_); |
@@ -836,7 +839,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformBlockNameUnlinkedProgram) { |
TEST_P(GLES2DecoderWithShaderTest, |
GetActiveUniformBlockNameResultNotInitFails) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetActiveUniformBlockName cmd; |
typedef GetActiveUniformBlockName::Result Result; |
Result* result = static_cast<Result*>(shared_memory_address_); |
@@ -851,7 +854,7 @@ TEST_P(GLES2DecoderWithShaderTest, |
} |
TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformBlockNameBadProgramFails) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetActiveUniformBlockName cmd; |
typedef GetActiveUniformBlockName::Result Result; |
Result* result = static_cast<Result*>(shared_memory_address_); |
@@ -869,7 +872,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformBlockNameBadProgramFails) { |
TEST_P(GLES2DecoderWithShaderTest, |
GetActiveUniformBlockNameBadSharedMemoryFails) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetActiveUniformBlockName cmd; |
decoder_->set_unsafe_es3_apis_enabled(true); |
cmd.Init(client_program_id_, |
@@ -1057,7 +1060,7 @@ TEST_P(GLES2DecoderWithShaderTest, |
TEST_P(GLES2DecoderWithShaderTest, GetActiveAttribSucceeds) { |
const GLuint kAttribIndex = 1; |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetActiveAttrib cmd; |
typedef GetActiveAttrib::Result Result; |
Result* result = static_cast<Result*>(shared_memory_address_); |
@@ -1081,7 +1084,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveAttribSucceeds) { |
TEST_P(GLES2DecoderWithShaderTest, GetActiveAttribResultNotInitFails) { |
const GLuint kAttribIndex = 1; |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetActiveAttrib cmd; |
typedef GetActiveAttrib::Result Result; |
Result* result = static_cast<Result*>(shared_memory_address_); |
@@ -1096,7 +1099,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveAttribResultNotInitFails) { |
TEST_P(GLES2DecoderWithShaderTest, GetActiveAttribBadProgramFails) { |
const GLuint kAttribIndex = 1; |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetActiveAttrib cmd; |
typedef GetActiveAttrib::Result Result; |
Result* result = static_cast<Result*>(shared_memory_address_); |
@@ -1123,7 +1126,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveAttribBadProgramFails) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetActiveAttribBadIndexFails) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetActiveAttrib cmd; |
typedef GetActiveAttrib::Result Result; |
Result* result = static_cast<Result*>(shared_memory_address_); |
@@ -1140,7 +1143,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveAttribBadIndexFails) { |
TEST_P(GLES2DecoderWithShaderTest, GetActiveAttribBadSharedMemoryFails) { |
const GLuint kAttribIndex = 1; |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetActiveAttrib cmd; |
cmd.Init(client_program_id_, |
kAttribIndex, |
@@ -1157,7 +1160,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveAttribBadSharedMemoryFails) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformIndicesSucceeds) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const char kName0[] = "Cow"; |
const char kName1[] = "Chicken"; |
const char* kNames[] = { kName0, kName1 }; |
@@ -1195,7 +1198,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformIndicesSucceeds) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformIndicesBadProgramFails) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const char kName0[] = "Cow"; |
const char kName1[] = "Chicken"; |
const char* kNames[] = { kName0, kName1 }; |
@@ -1230,7 +1233,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformIndicesBadProgramFails) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformIndicesBadParamsFails) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const char kName0[] = "Cow"; |
const char kName1[] = "Chicken"; |
const char* kNames[] = { kName0, kName1 }; |
@@ -1263,7 +1266,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformIndicesBadParamsFails) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformIndicesResultNotInitFails) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const char kName0[] = "Cow"; |
const char kName1[] = "Chicken"; |
const char* kNames[] = { kName0, kName1 }; |
@@ -1283,7 +1286,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformIndicesResultNotInitFails) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformIndicesBadSharedMemoryFails) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const char kName0[] = "Cow"; |
const char kName1[] = "Chicken"; |
const char* kNames[] = { kName0, kName1 }; |
@@ -1309,7 +1312,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformIndicesBadSharedMemoryFails) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformsivSucceeds) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const GLuint kIndices[] = { 1, 2 }; |
const GLint kResults[] = { 1976, 321 }; |
const size_t kCount = arraysize(kIndices); |
@@ -1347,7 +1350,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformsivSucceeds) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformsivBadProgramFails) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const GLuint kIndices[] = { 1, 2 }; |
const size_t kCount = arraysize(kIndices); |
SetBucketData(kBucketId, kIndices, sizeof(GLuint) * kCount); |
@@ -1381,7 +1384,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformsivBadProgramFails) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformsivBadParamsFails) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const GLuint kIndices[] = { 1, 2 }; |
const GLint kResults[] = { 1976, 321 }; |
const size_t kCount = arraysize(kIndices); |
@@ -1414,7 +1417,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformsivBadParamsFails) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformsivBadPnameFails) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const GLuint kIndices[] = { 1, 2 }; |
const size_t kCount = arraysize(kIndices); |
SetBucketData(kBucketId, kIndices, sizeof(GLuint) * kCount); |
@@ -1445,7 +1448,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformsivBadPnameFails) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformsivResultNotInitFails) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const GLuint kIndices[] = { 1, 2 }; |
const size_t kCount = arraysize(kIndices); |
SetBucketData(kBucketId, kIndices, sizeof(GLuint) * kCount); |
@@ -1463,7 +1466,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformsivResultNotInitFails) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformsivBadSharedMemoryFails) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const GLuint kIndices[] = { 1, 2 }; |
const size_t kCount = arraysize(kIndices); |
SetBucketData(kBucketId, kIndices, sizeof(GLuint) * kCount); |
@@ -1488,7 +1491,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetActiveUniformsivBadSharedMemoryFails) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetShaderInfoLogValidArgs) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const char kSource0[] = "void main() { gl_Position = vec4(1.0); }"; |
const char* kSource[] = {kSource0}; |
const char kValidStrEnd = 0; |
@@ -1525,7 +1528,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetShaderInfoLogValidArgs) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetShaderInfoLogInvalidArgs) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetShaderInfoLog cmd; |
cmd.Init(kInvalidClientId, kBucketId); |
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
@@ -1534,7 +1537,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetShaderInfoLogInvalidArgs) { |
TEST_P(GLES2DecoderWithShaderTest, GetTransformFeedbackVaryingSucceeds) { |
const GLuint kIndex = 1; |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const char kName[] = "HolyCow"; |
const GLsizei kBufferSize = static_cast<GLsizei>(strlen(kName) + 1); |
const GLsizei kSize = 2; |
@@ -1583,7 +1586,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetTransformFeedbackVaryingSucceeds) { |
TEST_P(GLES2DecoderWithShaderTest, GetTransformFeedbackVaryingNotInitFails) { |
const GLuint kIndex = 1; |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetTransformFeedbackVarying cmd; |
typedef GetTransformFeedbackVarying::Result Result; |
Result* result = static_cast<Result*>(shared_memory_address_); |
@@ -1599,7 +1602,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetTransformFeedbackVaryingNotInitFails) { |
TEST_P(GLES2DecoderWithShaderTest, GetTransformFeedbackVaryingBadProgramFails) { |
const GLuint kIndex = 1; |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetTransformFeedbackVarying cmd; |
typedef GetTransformFeedbackVarying::Result Result; |
Result* result = static_cast<Result*>(shared_memory_address_); |
@@ -1617,7 +1620,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetTransformFeedbackVaryingBadProgramFails) { |
TEST_P(GLES2DecoderWithShaderTest, GetTransformFeedbackVaryingBadParamsFails) { |
const GLuint kIndex = 1; |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const GLsizei kBufferSize = 10; |
GetTransformFeedbackVarying cmd; |
typedef GetTransformFeedbackVarying::Result Result; |
@@ -1653,7 +1656,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetTransformFeedbackVaryingBadParamsFails) { |
TEST_P(GLES2DecoderWithShaderTest, |
GetTransformFeedbackVaryingBadSharedMemoryFails) { |
const GLuint kIndex = 1; |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
GetTransformFeedbackVarying cmd; |
typedef GetTransformFeedbackVarying::Result Result; |
Result* result = static_cast<Result*>(shared_memory_address_); |
@@ -1675,7 +1678,7 @@ TEST_P(GLES2DecoderWithShaderTest, |
TEST_P(GLES2DecoderTest, CompileShaderValidArgs) { |
// ShaderSource should not actually call any GL calls yet. |
- const uint32 kInBucketId = 123; |
+ const uint32_t kInBucketId = 123; |
const char kSource0[] = "void main() { gl_Position = vec4(1.0); }"; |
const char* kSource[] = {kSource0}; |
const char kValidStrEnd = 0; |
@@ -1724,8 +1727,8 @@ TEST_P(GLES2DecoderTest, CompileShaderInvalidArgs) { |
} |
TEST_P(GLES2DecoderTest, ShaderSourceBucketAndGetShaderSourceValidArgs) { |
- const uint32 kInBucketId = 123; |
- const uint32 kOutBucketId = 125; |
+ const uint32_t kInBucketId = 123; |
+ const uint32_t kOutBucketId = 125; |
const char kSource0[] = "hello"; |
const char* kSource[] = { kSource0 }; |
const char kValidStrEnd = 0; |
@@ -1746,7 +1749,7 @@ TEST_P(GLES2DecoderTest, ShaderSourceBucketAndGetShaderSourceValidArgs) { |
#if GLES2_TEST_SHADER_VS_PROGRAM_IDS |
TEST_P(GLES2DecoderTest, ShaderSourceBucketWithProgramId) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const char kSource0[] = "hello"; |
const char* kSource[] = { kSource0 }; |
const char kValidStrEnd = 0; |
@@ -1759,7 +1762,7 @@ TEST_P(GLES2DecoderTest, ShaderSourceBucketWithProgramId) { |
#endif // GLES2_TEST_SHADER_VS_PROGRAM_IDS |
TEST_P(GLES2DecoderTest, ShaderSourceStripComments) { |
- const uint32 kInBucketId = 123; |
+ const uint32_t kInBucketId = 123; |
const char kSource0[] = "hello/*te\ast*/world//a\ab"; |
const char* kSource[] = { kSource0 }; |
const char kValidStrEnd = 0; |
@@ -1967,7 +1970,7 @@ TEST_P(GLES2DecoderWithShaderTest, Uniform4uivImmediateValidArgs) { |
} |
TEST_P(GLES2DecoderTest, BindAttribLocationBucket) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const GLint kLocation = 2; |
const char* kName = "testing"; |
EXPECT_CALL(*gl_, |
@@ -1980,7 +1983,7 @@ TEST_P(GLES2DecoderTest, BindAttribLocationBucket) { |
} |
TEST_P(GLES2DecoderTest, BindAttribLocationBucketInvalidArgs) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const GLint kLocation = 2; |
const char* kName = "testing"; |
EXPECT_CALL(*gl_, BindAttribLocation(_, _, _)).Times(0); |
@@ -2000,7 +2003,7 @@ TEST_P(GLES2DecoderTest, BindAttribLocationBucketInvalidArgs) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetAttribLocation) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const char* kNonExistentName = "foobar"; |
typedef GetAttribLocation::Result Result; |
Result* result = GetSharedMemoryAs<Result*>(); |
@@ -2018,7 +2021,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetAttribLocation) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetAttribLocationInvalidArgs) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
typedef GetAttribLocation::Result Result; |
Result* result = GetSharedMemoryAs<Result*>(); |
*result = -1; |
@@ -2048,7 +2051,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetAttribLocationInvalidArgs) { |
} |
TEST_P(GLES3DecoderWithESSL3ShaderTest, GetFragDataLocation) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
typedef GetFragDataLocation::Result Result; |
Result* result = GetSharedMemoryAs<Result*>(); |
SetBucketAsCString(kBucketId, kOutputVariable1NameESSL3); |
@@ -2063,7 +2066,7 @@ TEST_P(GLES3DecoderWithESSL3ShaderTest, GetFragDataLocation) { |
} |
TEST_P(GLES3DecoderWithESSL3ShaderTest, GetFragDataLocationInvalidArgs) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
typedef GetFragDataLocation::Result Result; |
Result* result = GetSharedMemoryAs<Result*>(); |
*result = -1; |
@@ -2095,7 +2098,7 @@ TEST_P(GLES3DecoderWithESSL3ShaderTest, GetFragDataLocationInvalidArgs) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformBlockIndex) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const GLuint kIndex = 10; |
const char* kName = "color"; |
typedef GetUniformBlockIndex::Result Result; |
@@ -2115,7 +2118,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformBlockIndex) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformBlockIndexInvalidArgs) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
typedef GetUniformBlockIndex::Result Result; |
Result* result = GetSharedMemoryAs<Result*>(); |
*result = GL_INVALID_INDEX; |
@@ -2147,7 +2150,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformBlockIndexInvalidArgs) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformLocation) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const char* kNonExistentName = "foobar"; |
typedef GetUniformLocation::Result Result; |
Result* result = GetSharedMemoryAs<Result*>(); |
@@ -2165,7 +2168,7 @@ TEST_P(GLES2DecoderWithShaderTest, GetUniformLocation) { |
} |
TEST_P(GLES2DecoderWithShaderTest, GetUniformLocationInvalidArgs) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
typedef GetUniformLocation::Result Result; |
Result* result = GetSharedMemoryAs<Result*>(); |
*result = -1; |
@@ -2207,7 +2210,7 @@ TEST_P(GLES2DecoderWithShaderTest, UniformBlockBindingValidArgs) { |
} |
TEST_P(GLES2DecoderWithShaderTest, BindUniformLocationCHROMIUMBucket) { |
- const uint32 kBucketId = 123; |
+ const uint32_t kBucketId = 123; |
const GLint kLocation = 2; |
const char* kName = "testing"; |
const char* kBadName1 = "gl_testing"; |