#include <gtest/gtest.h>
#include <string.h>
-extern "C" {
#include "glxclient.h"
#include "glx_error.h"
-}
#include <xcb/glx.h>
#include "mock_xdisplay.h"
return GL_TRUE;
}
+bool GetGLXScreenConfigs_called = false;
+
extern "C" struct glx_screen *
GetGLXScreenConfigs(Display * dpy, int scrn)
{
(void) dpy;
(void) scrn;
+
+ GetGLXScreenConfigs_called = true;
return psc;
}
EXPECT_EQ(0, fake_glx_context::contexts_allocated);
}
-TEST_F(glXCreateContextAttribARB_test, NULL_fbconfig_returns_None)
-{
- GLXContext ctx =
- glXCreateContextAttribsARB(this->dpy, NULL, 0, False, NULL);
-
- EXPECT_EQ(None, ctx);
- EXPECT_EQ(0, fake_glx_context::contexts_allocated);
-}
-
TEST_F(glXCreateContextAttribARB_test, NULL_screen_returns_None)
{
delete psc;