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

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

Issue 1542513002: Switch to standard integer types in gpu/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 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
« no previous file with comments | « gpu/command_buffer/service/context_state.cc ('k') | gpu/command_buffer/service/error_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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/context_state.h" 5 #include "gpu/command_buffer/service/context_state.h"
6 6
7 #include <stddef.h>
8
7 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
8 10
9 namespace gpu { 11 namespace gpu {
10 namespace gles2 { 12 namespace gles2 {
11 13
12 TEST(ContextStateVec4Test, DefaultValues) { 14 TEST(ContextStateVec4Test, DefaultValues) {
13 Vec4 v; 15 Vec4 v;
14 EXPECT_EQ(Vec4::kFloat, v.type()); 16 EXPECT_EQ(Vec4::kFloat, v.type());
15 GLfloat f[4]; 17 GLfloat f[4];
16 v.GetValues(f); 18 v.GetValues(f);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const GLint kIntValues2[4] = { 2, 3, 4, 6 }; 79 const GLint kIntValues2[4] = { 2, 3, 4, 6 };
78 v2.SetValues(kIntValues2); 80 v2.SetValues(kIntValues2);
79 EXPECT_FALSE(v1.Equal(v2)); 81 EXPECT_FALSE(v1.Equal(v2));
80 EXPECT_FALSE(v2.Equal(v1)); 82 EXPECT_FALSE(v2.Equal(v1));
81 } 83 }
82 84
83 } // namespace gles2 85 } // namespace gles2
84 } // namespace gpu 86 } // namespace gpu
85 87
86 88
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/context_state.cc ('k') | gpu/command_buffer/service/error_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698