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

Unified Diff: ui/ozone/public/ozone_gpu_test_helper.h

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 | « ui/gl/test/run_all_unittests.cc ('k') | ui/ozone/public/ozone_gpu_test_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/public/ozone_gpu_test_helper.h
diff --git a/ui/ozone/public/ozone_gpu_test_helper.h b/ui/ozone/public/ozone_gpu_test_helper.h
index 5e92b03c97a5d6c6c0d9ef5d917b994d11f4f7b0..1b2682ee955f13609e7d70404e3d7ebd7b017e60 100644
--- a/ui/ozone/public/ozone_gpu_test_helper.h
+++ b/ui/ozone/public/ozone_gpu_test_helper.h
@@ -45,6 +45,21 @@ class OZONE_EXPORT OzoneGpuTestHelper {
DISALLOW_COPY_AND_ASSIGN(OzoneGpuTestHelper);
};
+// Helper class for tests to initialize both UI and GPU Ozone platform.
+class OZONE_EXPORT OzoneInitializerForTest {
+ public:
+ static std::unique_ptr<OzoneInitializerForTest> Create();
+ ~OzoneInitializerForTest();
+
+ private:
+ OzoneInitializerForTest();
+ bool Initialize();
+
+ std::unique_ptr<OzoneGpuTestHelper> gpu_helper_;
+
+ DISALLOW_COPY_AND_ASSIGN(OzoneInitializerForTest);
+};
+
} // namespace ui
#endif // UI_OZONE_PUBLIC_OZONE_GPU_THREAD_HELPER_H_
« no previous file with comments | « ui/gl/test/run_all_unittests.cc ('k') | ui/ozone/public/ozone_gpu_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698