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

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

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 544
545 TEST_P(GLES2DecoderTest1, CopyTexSubImage2DInvalidArgs7_0) { 545 TEST_P(GLES2DecoderTest1, CopyTexSubImage2DInvalidArgs7_0) {
546 EXPECT_CALL(*gl_, CopyTexSubImage2D(_, _, _, _, _, _, _, _)).Times(0); 546 EXPECT_CALL(*gl_, CopyTexSubImage2D(_, _, _, _, _, _, _, _)).Times(0);
547 SpecializedSetup<cmds::CopyTexSubImage2D, 0>(false); 547 SpecializedSetup<cmds::CopyTexSubImage2D, 0>(false);
548 cmds::CopyTexSubImage2D cmd; 548 cmds::CopyTexSubImage2D cmd;
549 cmd.Init(GL_TEXTURE_2D, 2, 3, 4, 5, 6, 7, -1); 549 cmd.Init(GL_TEXTURE_2D, 2, 3, 4, 5, 6, 7, -1);
550 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 550 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
551 EXPECT_EQ(GL_INVALID_VALUE, GetGLError()); 551 EXPECT_EQ(GL_INVALID_VALUE, GetGLError());
552 } 552 }
553 553
554 TEST_P(GLES2DecoderTest1, CopyTexSubImage3DValidArgs) {
555 EXPECT_CALL(*gl_, CopyTexSubImage3D(GL_TEXTURE_3D, 2, 3, 4, 5, 6, 7, 8, 9));
556 SpecializedSetup<cmds::CopyTexSubImage3D, 0>(true);
557 cmds::CopyTexSubImage3D cmd;
558 cmd.Init(GL_TEXTURE_3D, 2, 3, 4, 5, 6, 7, 8, 9);
559 decoder_->set_unsafe_es3_apis_enabled(true);
560 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
561 EXPECT_EQ(GL_NO_ERROR, GetGLError());
562 decoder_->set_unsafe_es3_apis_enabled(false);
563 EXPECT_EQ(error::kUnknownCommand, ExecuteCmd(cmd));
564 }
565
554 TEST_P(GLES2DecoderTest1, CreateProgramValidArgs) { 566 TEST_P(GLES2DecoderTest1, CreateProgramValidArgs) {
555 EXPECT_CALL(*gl_, CreateProgram()).WillOnce(Return(kNewServiceId)); 567 EXPECT_CALL(*gl_, CreateProgram()).WillOnce(Return(kNewServiceId));
556 SpecializedSetup<cmds::CreateProgram, 0>(true); 568 SpecializedSetup<cmds::CreateProgram, 0>(true);
557 cmds::CreateProgram cmd; 569 cmds::CreateProgram cmd;
558 cmd.Init(kNewClientId); 570 cmd.Init(kNewClientId);
559 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); 571 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
560 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 572 EXPECT_EQ(GL_NO_ERROR, GetGLError());
561 EXPECT_TRUE(GetProgram(kNewClientId)); 573 EXPECT_TRUE(GetProgram(kNewClientId));
562 } 574 }
563 575
(...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1936 static_cast<cmds::GetTexParameteriv::Result*>(shared_memory_address_); 1948 static_cast<cmds::GetTexParameteriv::Result*>(shared_memory_address_);
1937 result->size = 0; 1949 result->size = 0;
1938 cmds::GetTexParameteriv cmd; 1950 cmds::GetTexParameteriv cmd;
1939 cmd.Init(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, shared_memory_id_, 1951 cmd.Init(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, shared_memory_id_,
1940 kInvalidSharedMemoryOffset); 1952 kInvalidSharedMemoryOffset);
1941 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 1953 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
1942 EXPECT_EQ(0u, result->size); 1954 EXPECT_EQ(0u, result->size);
1943 } 1955 }
1944 // TODO(gman): GetUniformfv 1956 // TODO(gman): GetUniformfv
1945 1957
1946 // TODO(gman): GetUniformiv
1947
1948 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ 1958 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698