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

Unified Diff: gpu/command_buffer/service/framebuffer_manager_unittest.cc

Issue 7889040: Change X11 error handler override to allow easy X11 error checking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build issues Created 9 years, 3 months 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
Index: gpu/command_buffer/service/framebuffer_manager_unittest.cc
diff --git a/gpu/command_buffer/service/framebuffer_manager_unittest.cc b/gpu/command_buffer/service/framebuffer_manager_unittest.cc
index 77c6622ae829f9e75d6b20d3636b419518d58a88..3bc761053118c7a3eeb2862f57d37b62853d55c1 100644
--- a/gpu/command_buffer/service/framebuffer_manager_unittest.cc
+++ b/gpu/command_buffer/service/framebuffer_manager_unittest.cc
@@ -6,6 +6,13 @@
#include "gpu/command_buffer/service/feature_info.h"
#include "gpu/command_buffer/common/gl_mock.h"
+
+#if defined(USE_X11)
Ami GONE FROM CHROMIUM 2011/09/21 22:21:42 Ditto comment on id_manager_unittest.cc.
dominich 2011/09/22 17:00:15 Done.
+// This is defined by both gtest and Xlib so we need to undefine it before
+// including the gtest header. Obviously the gtest definition will replace the
+// Xlib one for the remainder of this file.
+#undef Bool
+#endif
#include "testing/gtest/include/gtest/gtest.h"
namespace gpu {
@@ -364,5 +371,3 @@ TEST_F(FramebufferInfoTest, AttachTexture) {
} // namespace gles2
} // namespace gpu
-
-

Powered by Google App Engine
This is Rietveld 408576698