Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
| 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 458 kInvalidSharedMemoryOffset, | 458 kInvalidSharedMemoryOffset, |
| 459 kCount, | 459 kCount, |
| 460 kSharedMemoryId, | 460 kSharedMemoryId, |
| 461 kSharedMemoryOffset + kResultsOffset, | 461 kSharedMemoryOffset + kResultsOffset, |
| 462 result_size); | 462 result_size); |
| 463 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); | 463 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); |
| 464 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 464 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 465 // Check bad count. | 465 // Check bad count. |
| 466 cmd.Init(kSharedMemoryId, | 466 cmd.Init(kSharedMemoryId, |
| 467 kSharedMemoryOffset + kPnameOffset, | 467 kSharedMemoryOffset + kPnameOffset, |
| 468 -1, | 468 static_cast<GLuint>(-1), |
|
no sievers
2014/07/08 00:51:13
-1u?
| |
| 469 kSharedMemoryId, | 469 kSharedMemoryId, |
| 470 kSharedMemoryOffset + kResultsOffset, | 470 kSharedMemoryOffset + kResultsOffset, |
| 471 result_size); | 471 result_size); |
| 472 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); | 472 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); |
| 473 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 473 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 474 // Check bad results pointer. | 474 // Check bad results pointer. |
| 475 cmd.Init(kSharedMemoryId, | 475 cmd.Init(kSharedMemoryId, |
| 476 kSharedMemoryOffset + kPnameOffset, | 476 kSharedMemoryOffset + kPnameOffset, |
| 477 kCount, | 477 kCount, |
| 478 kInvalidSharedMemoryId, | 478 kInvalidSharedMemoryId, |
| (...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1326 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderWithShaderTest, ::testing::Bool()); | 1326 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderWithShaderTest, ::testing::Bool()); |
| 1327 | 1327 |
| 1328 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderManualInitTest, ::testing::Bool()); | 1328 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderManualInitTest, ::testing::Bool()); |
| 1329 | 1329 |
| 1330 INSTANTIATE_TEST_CASE_P(Service, | 1330 INSTANTIATE_TEST_CASE_P(Service, |
| 1331 GLES2DecoderRGBBackbufferTest, | 1331 GLES2DecoderRGBBackbufferTest, |
| 1332 ::testing::Bool()); | 1332 ::testing::Bool()); |
| 1333 | 1333 |
| 1334 } // namespace gles2 | 1334 } // namespace gles2 |
| 1335 } // namespace gpu | 1335 } // namespace gpu |
| OLD | NEW |