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

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

Issue 469673003: Consistently generate INVALID_VALUE on NaN line width (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 6 years, 4 months 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
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_autogen.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1869 matching lines...) Expand 10 before | Expand all | Expand 10 after
1880 } 1880 }
1881 1881
1882 TEST_P(GLES2DecoderTest1, LineWidthInvalidValue0_0) { 1882 TEST_P(GLES2DecoderTest1, LineWidthInvalidValue0_0) {
1883 SpecializedSetup<cmds::LineWidth, 0>(false); 1883 SpecializedSetup<cmds::LineWidth, 0>(false);
1884 cmds::LineWidth cmd; 1884 cmds::LineWidth cmd;
1885 cmd.Init(0.0f); 1885 cmd.Init(0.0f);
1886 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 1886 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1887 EXPECT_EQ(GL_INVALID_VALUE, GetGLError()); 1887 EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
1888 } 1888 }
1889 1889
1890 TEST_P(GLES2DecoderTest1, LineWidthNaNValue0) {
1891 SpecializedSetup<cmds::LineWidth, 0>(false);
1892 cmds::LineWidth cmd;
1893 cmd.Init(nanf(""));
1894 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1895 EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
1896 }
1897
1890 TEST_P(GLES2DecoderTest1, LinkProgramValidArgs) { 1898 TEST_P(GLES2DecoderTest1, LinkProgramValidArgs) {
1891 EXPECT_CALL(*gl_, LinkProgram(kServiceProgramId)); 1899 EXPECT_CALL(*gl_, LinkProgram(kServiceProgramId));
1892 SpecializedSetup<cmds::LinkProgram, 0>(true); 1900 SpecializedSetup<cmds::LinkProgram, 0>(true);
1893 cmds::LinkProgram cmd; 1901 cmds::LinkProgram cmd;
1894 cmd.Init(client_program_id_); 1902 cmd.Init(client_program_id_);
1895 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 1903 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1896 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 1904 EXPECT_EQ(GL_NO_ERROR, GetGLError());
1897 } 1905 }
1898 // TODO(gman): PixelStorei 1906 // TODO(gman): PixelStorei
1899 1907
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1946 1954
1947 TEST_P(GLES2DecoderTest1, SampleCoverageValidArgs) { 1955 TEST_P(GLES2DecoderTest1, SampleCoverageValidArgs) {
1948 EXPECT_CALL(*gl_, SampleCoverage(1, true)); 1956 EXPECT_CALL(*gl_, SampleCoverage(1, true));
1949 SpecializedSetup<cmds::SampleCoverage, 0>(true); 1957 SpecializedSetup<cmds::SampleCoverage, 0>(true);
1950 cmds::SampleCoverage cmd; 1958 cmds::SampleCoverage cmd;
1951 cmd.Init(1, true); 1959 cmd.Init(1, true);
1952 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 1960 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
1953 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 1961 EXPECT_EQ(GL_NO_ERROR, GetGLError());
1954 } 1962 }
1955 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ 1963 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_autogen.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698