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

Unified Diff: ui/message_center/test/run_all_unittests.cc

Issue 168193003: ui: message_center and app_list tests opt into real GL NullDraw contexts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nulldraw-applistmessagecenter: Created 6 years, 10 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
« no previous file with comments | « ui/message_center/test/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/test/run_all_unittests.cc
diff --git a/ui/message_center/test/run_all_unittests.cc b/ui/message_center/test/run_all_unittests.cc
index 094e1287688622ba745ad4a1716c3715b0904e01..64e408b27d035d97b5aeef22032d7a779b99e1f7 100644
--- a/ui/message_center/test/run_all_unittests.cc
+++ b/ui/message_center/test/run_all_unittests.cc
@@ -11,6 +11,10 @@
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/ui_base_paths.h"
+#if !defined(OS_MACOSX)
+#include "ui/gl/gl_surface.h"
+#endif
+
namespace {
class MessageCenterTestSuite : public base::TestSuite {
@@ -19,6 +23,9 @@ class MessageCenterTestSuite : public base::TestSuite {
protected:
virtual void Initialize() OVERRIDE {
+#if !defined(OS_MACOSX)
+ gfx::GLSurface::InitializeOneOffForTests(true);
+#endif
base::TestSuite::Initialize();
ui::RegisterPathProvider();
« no previous file with comments | « ui/message_center/test/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698