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

Side by Side Diff: gpu/command_buffer/tests/gl_program_unittest.cc

Issue 138433004: Normalize _unittest.cc filename suffix for unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert ash_unittest change Created 6 years, 11 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 <GLES2/gl2.h> 5 #include <GLES2/gl2.h>
6 #include <GLES2/gl2ext.h> 6 #include <GLES2/gl2ext.h>
7 7
8 #include "gpu/command_buffer/tests/gl_manager.h" 8 #include "gpu/command_buffer/tests/gl_manager.h"
9 #include "gpu/command_buffer/tests/gl_test_utils.h" 9 #include "gpu/command_buffer/tests/gl_test_utils.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 GLuint position_loc = glGetAttribLocation(program, "a_position"); 157 GLuint position_loc = glGetAttribLocation(program, "a_position");
158 GLTestHelper::SetupUnitQuad(position_loc); 158 GLTestHelper::SetupUnitQuad(position_loc);
159 glDrawArrays(GL_TRIANGLES, 0, 6); 159 glDrawArrays(GL_TRIANGLES, 0, 6);
160 uint8 expected_color[] = { 0, 0, 255, 255, }; 160 uint8 expected_color[] = { 0, 0, 255, 255, };
161 EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, 1, 1, 0, expected_color)); 161 EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, 1, 1, 0, expected_color));
162 GLTestHelper::CheckGLError("no errors", __LINE__); 162 GLTestHelper::CheckGLError("no errors", __LINE__);
163 } 163 }
164 164
165 } // namespace gpu 165 } // namespace gpu
166 166
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_lose_context_chromium_unittests.cc ('k') | gpu/command_buffer/tests/gl_program_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698