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

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

Issue 1208603002: content: implement unittests backend for Ozone GBM Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: exclude content_unittests as all GMBs tests are moved to gpu_unittests Created 4 years, 8 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 | « gpu/command_buffer/common/unittest_main.cc ('k') | ui/ozone/public/ozone_gpu_test_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « gpu/command_buffer/common/unittest_main.cc ('k') | ui/ozone/public/ozone_gpu_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698