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

Unified Diff: ui/gl/egl_api_unittest.cc

Issue 2491993002: ui/gl: Initialize the ANGLE Platform on all configurations (Closed)
Patch Set: Rebase on top of the renaming of ClearGLBindings Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/BUILD.gn ('k') | ui/gl/gl_surface_egl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/egl_api_unittest.cc
diff --git a/ui/gl/egl_api_unittest.cc b/ui/gl/egl_api_unittest.cc
index b9dbd15a034f5d8224cddae2aee5feaff4fcc131..772cf0646a1819ffa8b79583f0d719d14c527b6a 100644
--- a/ui/gl/egl_api_unittest.cc
+++ b/ui/gl/egl_api_unittest.cc
@@ -25,6 +25,7 @@ class EGLApiTest : public testing::Test {
g_driver_egl.fn.eglGetCurrentDisplayFn = &FakeGetCurrentDisplay;
g_driver_egl.fn.eglGetDisplayFn = &FakeGetDisplay;
g_driver_egl.fn.eglGetErrorFn = &FakeGetError;
+ g_driver_egl.fn.eglGetProcAddressFn = &FakeGetProcAddress;
}
void TearDown() override {
@@ -82,6 +83,11 @@ class EGLApiTest : public testing::Test {
return EGL_SUCCESS;
}
+ static __eglMustCastToProperFunctionPointerType GL_BINDING_CALL
+ FakeGetProcAddress(const char* procname) {
+ return nullptr;
+ }
+
std::pair<const char*, const char*> GetExtensions() {
return std::make_pair(
api_->eglQueryStringFn(EGL_NO_DISPLAY, EGL_EXTENSIONS),
« no previous file with comments | « ui/gl/BUILD.gn ('k') | ui/gl/gl_surface_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698