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

Unified Diff: services/test/run_all_service_tests.cc

Issue 2907663003: Ensure the services gpu tests run with ozone. (Closed)
Patch Set: fix deps Created 3 years, 7 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 | « services/test/BUILD.gn ('k') | services/ui/common/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/test/run_all_service_tests.cc
diff --git a/services/test/run_all_service_tests.cc b/services/test/run_all_service_tests.cc
index 34530972dcfcb74fdc77d0f63270a7ece3baca19..c356fa6fb938f64568b4530616c48be44592c953 100644
--- a/services/test/run_all_service_tests.cc
+++ b/services/test/run_all_service_tests.cc
@@ -11,6 +11,10 @@
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/ui_base_paths.h"
+#if defined(USE_OZONE)
+#include "ui/ozone/public/ozone_platform.h"
+#endif
+
namespace {
class ServiceTestSuite : public base::TestSuite {
@@ -26,6 +30,12 @@ class ServiceTestSuite : public base::TestSuite {
base::FilePath ui_test_pak_path;
ASSERT_TRUE(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path));
ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path);
+
+#if defined(USE_OZONE)
+ ui::OzonePlatform::InitParams params;
+ params.single_process = true;
+ ui::OzonePlatform::InitializeForGPU(params);
+#endif
}
void Shutdown() override {
« no previous file with comments | « services/test/BUILD.gn ('k') | services/ui/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698