| Index: ui/gl/test/run_all_unittests.cc
|
| diff --git a/ui/gl/test/run_all_unittests.cc b/ui/gl/test/run_all_unittests.cc
|
| index c12715d6c062c53120e39d70c1b7a7361f7cf283..b2057f27cc0b21b07332a277f44e35ad2fa1d43c 100644
|
| --- a/ui/gl/test/run_all_unittests.cc
|
| +++ b/ui/gl/test/run_all_unittests.cc
|
| @@ -14,6 +14,7 @@
|
| #if defined(USE_OZONE)
|
| #include "base/message_loop/message_loop.h"
|
| #include "ui/ozone/public/client_native_pixmap_factory.h"
|
| +#include "ui/ozone/public/ozone_gpu_test_helper.h"
|
| #endif
|
|
|
| namespace {
|
| @@ -33,6 +34,7 @@ class GlTestSuite : public base::TestSuite {
|
| #if defined(USE_OZONE)
|
| // On Ozone, the backend initializes the event system using a UI thread.
|
| message_loop_.reset(new base::MessageLoopForUI);
|
| + ozone_test_ = ui::OzoneInitializerForTest::Create();
|
| client_native_pixmap_factory_ = ui::ClientNativePixmapFactory::Create();
|
| ui::ClientNativePixmapFactory::SetInstance(
|
| client_native_pixmap_factory_.get());
|
| @@ -46,6 +48,7 @@ class GlTestSuite : public base::TestSuite {
|
| private:
|
| #if defined(USE_OZONE)
|
| std::unique_ptr<base::MessageLoop> message_loop_;
|
| + std::unique_ptr<ui::OzoneInitializerForTest> ozone_test_;
|
| std::unique_ptr<ui::ClientNativePixmapFactory> client_native_pixmap_factory_;
|
| #endif
|
| DISALLOW_COPY_AND_ASSIGN(GlTestSuite);
|
|
|