| OLD | NEW |
| 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 #include <GLES2/gl2.h> | 5 #include <GLES2/gl2.h> |
| 6 #include <GLES2/gl2ext.h> | 6 #include <GLES2/gl2ext.h> |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 EXPECT_EQ(caps.occlusion_query_boolean, flags.occlusion_query_boolean); | 126 EXPECT_EQ(caps.occlusion_query_boolean, flags.occlusion_query_boolean); |
| 127 } | 127 } |
| 128 | 128 |
| 129 TEST_F(GLTest, GetString) { | 129 TEST_F(GLTest, GetString) { |
| 130 EXPECT_STREQ( | 130 EXPECT_STREQ( |
| 131 "OpenGL ES 2.0 Chromium", | 131 "OpenGL ES 2.0 Chromium", |
| 132 reinterpret_cast<const char*>(glGetString(GL_VERSION))); | 132 reinterpret_cast<const char*>(glGetString(GL_VERSION))); |
| 133 EXPECT_STREQ( | 133 EXPECT_STREQ( |
| 134 "OpenGL ES GLSL ES 1.0 Chromium", | 134 "OpenGL ES GLSL ES 1.0 Chromium", |
| 135 reinterpret_cast<const char*>(glGetString(GL_SHADING_LANGUAGE_VERSION))); | 135 reinterpret_cast<const char*>(glGetString(GL_SHADING_LANGUAGE_VERSION))); |
| 136 EXPECT_STREQ( | |
| 137 "Chromium", | |
| 138 reinterpret_cast<const char*>(glGetString(GL_RENDERER))); | |
| 139 EXPECT_STREQ( | |
| 140 "Chromium", | |
| 141 reinterpret_cast<const char*>(glGetString(GL_VENDOR))); | |
| 142 } | 136 } |
| 143 | 137 |
| 144 } // namespace gpu | 138 } // namespace gpu |
| 145 | |
| OLD | NEW |