Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(485)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h

Issue 5626008: Exposed support for dynamically enabling extensions in command buffer... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_1.cc 7 // It is included by gles2_cmd_decoder_unittest_1.cc
8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ 8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_
9 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ 9 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_
10 10
(...skipping 1737 matching lines...) Expand 10 before | Expand all | Expand 10 after
1748 // TODO(gman): GetUniformfv 1748 // TODO(gman): GetUniformfv
1749 1749
1750 // TODO(gman): GetUniformiv 1750 // TODO(gman): GetUniformiv
1751 1751
1752 // TODO(gman): GetUniformLocation 1752 // TODO(gman): GetUniformLocation
1753 1753
1754 // TODO(gman): GetUniformLocationImmediate 1754 // TODO(gman): GetUniformLocationImmediate
1755 1755
1756 // TODO(gman): GetUniformLocationBucket 1756 // TODO(gman): GetUniformLocationBucket
1757 1757
1758
1759 TEST_F(GLES2DecoderTest1, GetVertexAttribfvValidArgs) {
1760 SpecializedSetup<GetVertexAttribfv, 0>(true);
1761 typedef GetVertexAttribfv::Result Result;
1762 Result* result = static_cast<Result*>(shared_memory_address_);
1763 result->size = 0;
1764 GetVertexAttribfv cmd;
1765 cmd.Init(
1766 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_,
1767 shared_memory_offset_);
1768 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1769 EXPECT_EQ(decoder_->GetGLES2Util()->GLGetNumValuesReturned(
1770 GL_VERTEX_ATTRIB_ARRAY_NORMALIZED),
1771 result->GetNumResults());
1772 EXPECT_EQ(GL_NO_ERROR, GetGLError());
1773 }
1774
1775 TEST_F(GLES2DecoderTest1, GetVertexAttribfvInvalidArgs2_0) {
1776 EXPECT_CALL(*gl_, GetVertexAttribfv(_, _, _)).Times(0);
1777 SpecializedSetup<GetVertexAttribfv, 0>(false);
1778 GetVertexAttribfv::Result* result =
1779 static_cast<GetVertexAttribfv::Result*>(shared_memory_address_);
1780 result->size = 0;
1781 GetVertexAttribfv cmd;
1782 cmd.Init(1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, kInvalidSharedMemoryId, 0);
1783 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
1784 EXPECT_EQ(0u, result->size);
1785 }
1786
1787 TEST_F(GLES2DecoderTest1, GetVertexAttribfvInvalidArgs2_1) {
1788 EXPECT_CALL(*gl_, GetVertexAttribfv(_, _, _)).Times(0);
1789 SpecializedSetup<GetVertexAttribfv, 0>(false);
1790 GetVertexAttribfv::Result* result =
1791 static_cast<GetVertexAttribfv::Result*>(shared_memory_address_);
1792 result->size = 0;
1793 GetVertexAttribfv cmd;
1794 cmd.Init(
1795 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_,
1796 kInvalidSharedMemoryOffset);
1797 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
1798 EXPECT_EQ(0u, result->size);
1799 }
1758 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ 1800 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_
1759 1801
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_1.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698