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

Unified Diff: gpu/command_buffer/tests/gl_object_bindings_unittest.cc

Issue 2527653002: Check IsApplicable in ObjectBindingsTest. (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/gl_object_bindings_unittest.cc
diff --git a/gpu/command_buffer/tests/gl_object_bindings_unittest.cc b/gpu/command_buffer/tests/gl_object_bindings_unittest.cc
index b51e9a34085a5e6eaa9642d81c571c9892c1fd68..8440c94eef342035f48a357d09c8949b76fa5b8e 100644
--- a/gpu/command_buffer/tests/gl_object_bindings_unittest.cc
+++ b/gpu/command_buffer/tests/gl_object_bindings_unittest.cc
@@ -30,6 +30,10 @@ class ObjectBindingsTest : public testing::Test {
};
TEST_F(ObjectBindingsTest, Buffers) {
+ if (!IsApplicable()) {
+ return;
+ }
+
const std::pair<GLenum, GLenum> buffer_bindings[] = {
{GL_ARRAY_BUFFER, GL_ARRAY_BUFFER_BINDING},
{GL_ELEMENT_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER_BINDING},
@@ -66,6 +70,10 @@ TEST_F(ObjectBindingsTest, Buffers) {
}
TEST_F(ObjectBindingsTest, FramebufferAttachments) {
+ if (!IsApplicable()) {
+ return;
+ }
+
GLuint texture = 0;
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D, texture);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698