OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This file is auto-generated. DO NOT EDIT! | 5 // This file is auto-generated. DO NOT EDIT! |
6 | 6 |
7 // It is included by gles2_cmd_decoder_unittest_2.cc | 7 // It is included by gles2_cmd_decoder_unittest_2.cc |
8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ | 8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ |
9 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ | 9 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ |
10 | 10 |
11 | 11 |
12 TEST_F(GLES2DecoderTest2, GetVertexAttribfvValidArgs) { | |
13 SpecializedSetup<GetVertexAttribfv, 0>(true); | |
14 typedef GetVertexAttribfv::Result Result; | |
15 Result* result = static_cast<Result*>(shared_memory_address_); | |
16 result->size = 0; | |
17 GetVertexAttribfv cmd; | |
18 cmd.Init( | |
19 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_, | |
20 shared_memory_offset_); | |
21 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | |
22 EXPECT_EQ(decoder_->GetGLES2Util()->GLGetNumValuesReturned( | |
23 GL_VERTEX_ATTRIB_ARRAY_NORMALIZED), | |
24 result->GetNumResults()); | |
25 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | |
26 } | |
27 | |
28 TEST_F(GLES2DecoderTest2, GetVertexAttribfvInvalidArgs2_0) { | |
29 EXPECT_CALL(*gl_, GetVertexAttribfv(_, _, _)).Times(0); | |
30 SpecializedSetup<GetVertexAttribfv, 0>(false); | |
31 GetVertexAttribfv::Result* result = | |
32 static_cast<GetVertexAttribfv::Result*>(shared_memory_address_); | |
33 result->size = 0; | |
34 GetVertexAttribfv cmd; | |
35 cmd.Init(1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, kInvalidSharedMemoryId, 0); | |
36 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); | |
37 EXPECT_EQ(0u, result->size); | |
38 } | |
39 | |
40 TEST_F(GLES2DecoderTest2, GetVertexAttribfvInvalidArgs2_1) { | |
41 EXPECT_CALL(*gl_, GetVertexAttribfv(_, _, _)).Times(0); | |
42 SpecializedSetup<GetVertexAttribfv, 0>(false); | |
43 GetVertexAttribfv::Result* result = | |
44 static_cast<GetVertexAttribfv::Result*>(shared_memory_address_); | |
45 result->size = 0; | |
46 GetVertexAttribfv cmd; | |
47 cmd.Init( | |
48 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_, | |
49 kInvalidSharedMemoryOffset); | |
50 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); | |
51 EXPECT_EQ(0u, result->size); | |
52 } | |
53 | |
54 TEST_F(GLES2DecoderTest2, GetVertexAttribivValidArgs) { | 12 TEST_F(GLES2DecoderTest2, GetVertexAttribivValidArgs) { |
55 SpecializedSetup<GetVertexAttribiv, 0>(true); | 13 SpecializedSetup<GetVertexAttribiv, 0>(true); |
56 typedef GetVertexAttribiv::Result Result; | 14 typedef GetVertexAttribiv::Result Result; |
57 Result* result = static_cast<Result*>(shared_memory_address_); | 15 Result* result = static_cast<Result*>(shared_memory_address_); |
58 result->size = 0; | 16 result->size = 0; |
59 GetVertexAttribiv cmd; | 17 GetVertexAttribiv cmd; |
60 cmd.Init( | 18 cmd.Init( |
61 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_, | 19 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_, |
62 shared_memory_offset_); | 20 shared_memory_offset_); |
63 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 21 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
(...skipping 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1604 // TODO(gman): GenSharedIdsCHROMIUM | 1562 // TODO(gman): GenSharedIdsCHROMIUM |
1605 | 1563 |
1606 // TODO(gman): DeleteSharedIdsCHROMIUM | 1564 // TODO(gman): DeleteSharedIdsCHROMIUM |
1607 | 1565 |
1608 // TODO(gman): RegisterSharedIdsCHROMIUM | 1566 // TODO(gman): RegisterSharedIdsCHROMIUM |
1609 | 1567 |
1610 // TODO(gman): CommandBufferEnableCHROMIUM | 1568 // TODO(gman): CommandBufferEnableCHROMIUM |
1611 | 1569 |
1612 // TODO(gman): CopyTextureToParentTextureCHROMIUM | 1570 // TODO(gman): CopyTextureToParentTextureCHROMIUM |
1613 // TODO(gman): ResizeCHROMIUM | 1571 // TODO(gman): ResizeCHROMIUM |
| 1572 // TODO(gman): GetRequestableExtensionsCHROMIUM |
| 1573 |
| 1574 // TODO(gman): RequestExtensionCHROMIUM |
| 1575 |
1614 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ | 1576 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ |
1615 | 1577 |
OLD | NEW |