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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc

Issue 375733004: Fixes for re-enabling more MSVC level 4 warnings: gpu/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
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 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "gpu/command_buffer/common/gles2_cmd_format.h" 9 #include "gpu/command_buffer/common/gles2_cmd_format.h"
10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 kInvalidSharedMemoryOffset, 458 kInvalidSharedMemoryOffset,
459 kCount, 459 kCount,
460 kSharedMemoryId, 460 kSharedMemoryId,
461 kSharedMemoryOffset + kResultsOffset, 461 kSharedMemoryOffset + kResultsOffset,
462 result_size); 462 result_size);
463 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 463 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
464 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 464 EXPECT_EQ(GL_NO_ERROR, GetGLError());
465 // Check bad count. 465 // Check bad count.
466 cmd.Init(kSharedMemoryId, 466 cmd.Init(kSharedMemoryId,
467 kSharedMemoryOffset + kPnameOffset, 467 kSharedMemoryOffset + kPnameOffset,
468 -1, 468 static_cast<GLuint>(-1),
469 kSharedMemoryId, 469 kSharedMemoryId,
470 kSharedMemoryOffset + kResultsOffset, 470 kSharedMemoryOffset + kResultsOffset,
471 result_size); 471 result_size);
472 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); 472 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd));
473 EXPECT_EQ(GL_NO_ERROR, GetGLError()); 473 EXPECT_EQ(GL_NO_ERROR, GetGLError());
474 // Check bad results pointer. 474 // Check bad results pointer.
475 cmd.Init(kSharedMemoryId, 475 cmd.Init(kSharedMemoryId,
476 kSharedMemoryOffset + kPnameOffset, 476 kSharedMemoryOffset + kPnameOffset,
477 kCount, 477 kCount,
478 kInvalidSharedMemoryId, 478 kInvalidSharedMemoryId,
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderWithShaderTest, ::testing::Bool()); 1326 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderWithShaderTest, ::testing::Bool());
1327 1327
1328 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderManualInitTest, ::testing::Bool()); 1328 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderManualInitTest, ::testing::Bool());
1329 1329
1330 INSTANTIATE_TEST_CASE_P(Service, 1330 INSTANTIATE_TEST_CASE_P(Service,
1331 GLES2DecoderRGBBackbufferTest, 1331 GLES2DecoderRGBBackbufferTest,
1332 ::testing::Bool()); 1332 ::testing::Bool());
1333 1333
1334 } // namespace gles2 1334 } // namespace gles2
1335 } // namespace gpu 1335 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698