OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1735 expected.cmd.Init(1, result1.id, result1.offset); | 1735 expected.cmd.Init(1, result1.id, result1.offset); |
1736 | 1736 |
1737 EXPECT_CALL(*command_buffer(), OnFlush()) | 1737 EXPECT_CALL(*command_buffer(), OnFlush()) |
1738 .WillOnce(SetMemory(result1.ptr, uint32_t(1))) | 1738 .WillOnce(SetMemory(result1.ptr, uint32_t(1))) |
1739 .RetiresOnSaturation(); | 1739 .RetiresOnSaturation(); |
1740 | 1740 |
1741 GLboolean result = gl_->IsVertexArrayOES(1); | 1741 GLboolean result = gl_->IsVertexArrayOES(1); |
1742 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1742 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1743 EXPECT_TRUE(result); | 1743 EXPECT_TRUE(result); |
1744 } | 1744 } |
1745 // TODO: Implement unit test for GenSharedIdsCHROMIUM | |
1746 // TODO: Implement unit test for DeleteSharedIdsCHROMIUM | |
1747 // TODO: Implement unit test for RegisterSharedIdsCHROMIUM | |
1748 // TODO: Implement unit test for EnableFeatureCHROMIUM | 1745 // TODO: Implement unit test for EnableFeatureCHROMIUM |
1749 | 1746 |
1750 TEST_F(GLES2ImplementationTest, ResizeCHROMIUM) { | 1747 TEST_F(GLES2ImplementationTest, ResizeCHROMIUM) { |
1751 struct Cmds { | 1748 struct Cmds { |
1752 cmds::ResizeCHROMIUM cmd; | 1749 cmds::ResizeCHROMIUM cmd; |
1753 }; | 1750 }; |
1754 Cmds expected; | 1751 Cmds expected; |
1755 expected.cmd.Init(1, 2, 3); | 1752 expected.cmd.Init(1, 2, 3); |
1756 | 1753 |
1757 gl_->ResizeCHROMIUM(1, 2, 3); | 1754 gl_->ResizeCHROMIUM(1, 2, 3); |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1920 struct Cmds { | 1917 struct Cmds { |
1921 cmds::MatrixLoadIdentityCHROMIUM cmd; | 1918 cmds::MatrixLoadIdentityCHROMIUM cmd; |
1922 }; | 1919 }; |
1923 Cmds expected; | 1920 Cmds expected; |
1924 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); | 1921 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); |
1925 | 1922 |
1926 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); | 1923 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); |
1927 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1924 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1928 } | 1925 } |
1929 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 1926 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
OLD | NEW |