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 // This file is auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // DO NOT EDIT! | 7 // DO NOT EDIT! |
8 | 8 |
9 // This file is included by gles2_implementation.h to declare the | 9 // This file is included by gles2_implementation.h to declare the |
10 // GL api functions. | 10 // GL api functions. |
(...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1626 expected.cmd.Init(1, result1.id, result1.offset); | 1626 expected.cmd.Init(1, result1.id, result1.offset); |
1627 | 1627 |
1628 EXPECT_CALL(*command_buffer(), OnFlush()) | 1628 EXPECT_CALL(*command_buffer(), OnFlush()) |
1629 .WillOnce(SetMemory(result1.ptr, uint32(1))) | 1629 .WillOnce(SetMemory(result1.ptr, uint32(1))) |
1630 .RetiresOnSaturation(); | 1630 .RetiresOnSaturation(); |
1631 | 1631 |
1632 GLboolean result = gl_->IsVertexArrayOES(1); | 1632 GLboolean result = gl_->IsVertexArrayOES(1); |
1633 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1633 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1634 EXPECT_TRUE(result); | 1634 EXPECT_TRUE(result); |
1635 } | 1635 } |
1636 | |
1637 TEST_F(GLES2ImplementationTest, BindVertexArrayOES) { | |
1638 struct Cmds { | |
1639 BindVertexArrayOES cmd; | |
1640 }; | |
1641 Cmds expected; | |
1642 expected.cmd.Init(1); | |
1643 | |
1644 gl_->BindVertexArrayOES(1); | |
1645 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | |
1646 ClearCommands(); | |
1647 gl_->BindVertexArrayOES(1); | |
1648 EXPECT_TRUE(NoCommandsWritten()); | |
1649 } | |
1650 // TODO: Implement unit test for GenSharedIdsCHROMIUM | 1636 // TODO: Implement unit test for GenSharedIdsCHROMIUM |
1651 // TODO: Implement unit test for DeleteSharedIdsCHROMIUM | 1637 // TODO: Implement unit test for DeleteSharedIdsCHROMIUM |
1652 // TODO: Implement unit test for RegisterSharedIdsCHROMIUM | 1638 // TODO: Implement unit test for RegisterSharedIdsCHROMIUM |
1653 // TODO: Implement unit test for EnableFeatureCHROMIUM | 1639 // TODO: Implement unit test for EnableFeatureCHROMIUM |
1654 | 1640 |
1655 TEST_F(GLES2ImplementationTest, ResizeCHROMIUM) { | 1641 TEST_F(GLES2ImplementationTest, ResizeCHROMIUM) { |
1656 struct Cmds { | 1642 struct Cmds { |
1657 ResizeCHROMIUM cmd; | 1643 ResizeCHROMIUM cmd; |
1658 }; | 1644 }; |
1659 Cmds expected; | 1645 Cmds expected; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1778 TraceEndCHROMIUM cmd; | 1764 TraceEndCHROMIUM cmd; |
1779 }; | 1765 }; |
1780 Cmds expected; | 1766 Cmds expected; |
1781 expected.cmd.Init(); | 1767 expected.cmd.Init(); |
1782 | 1768 |
1783 gl_->TraceEndCHROMIUM(); | 1769 gl_->TraceEndCHROMIUM(); |
1784 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1770 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1785 } | 1771 } |
1786 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 1772 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
1787 | 1773 |
OLD | NEW |