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

Unified Diff: gpu/command_buffer/service/id_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/id_manager_unittest.cc
diff --git a/gpu/command_buffer/service/id_manager_unittest.cc b/gpu/command_buffer/service/id_manager_unittest.cc
index 015a44252eebd8f87a01f2d5aabe40d7b70057ff..de11ee94d80bc8a5dbe477c4e6e95e6b9bd1356d 100644
--- a/gpu/command_buffer/service/id_manager_unittest.cc
+++ b/gpu/command_buffer/service/id_manager_unittest.cc
@@ -3,6 +3,14 @@
// found in the LICENSE file.
#include "gpu/command_buffer/service/id_manager.h"
+#if defined(USE_X11)
+// These are defined by both gtest and Xlib so we need to undefine them before
Ami GONE FROM CHROMIUM 2011/09/21 22:21:42 An alternative is to #include gtest early, as in
dominich 2011/09/22 17:00:15 Done.
+// including the gtest header. Obviously the gtest definition will replace the
+// Xlib one for the remainder of this file.
+#undef Bool
+#undef None
+#undef Status
+#endif
#include "testing/gtest/include/gtest/gtest.h"
namespace gpu {
@@ -72,5 +80,3 @@ TEST_F(IdManagerTest, Basic) {
} // namespace gles2
} // namespace gpu
-
-

Powered by Google App Engine
This is Rietveld 408576698