| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |