Chromium Code Reviews| 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 5a740ac4ec87da493667c0fcd4d376363a5a0610..fa39521c19ebe20e583e1b64610101ef221ca17d 100644 |
| --- a/ui/ozone/public/ozone_gpu_test_helper.h |
| +++ b/ui/ozone/public/ozone_gpu_test_helper.h |
| @@ -44,6 +44,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 { |
|
reveman
2016/01/11 19:13:51
Do we really need this class? I feel like the code
dshwang
2016/01/11 20:17:45
The first patch set was similar to what you say no
reveman
2016/01/13 15:05:17
I didn't mean that we should hide the need for ipc
dshwang
2016/01/13 15:37:32
I see that you want light-version ozone backend fo
|
| + public: |
| + static scoped_ptr<OzoneInitializerForTest> Create(); |
| + ~OzoneInitializerForTest(); |
| + |
| + private: |
| + OzoneInitializerForTest(); |
| + bool Initialize(); |
| + |
| + scoped_ptr<OzoneGpuTestHelper> gpu_helper_; |
|
reveman
2016/01/11 19:13:51
What is this used for?
dshwang
2016/01/11 20:17:45
This sets up message forwarding between the "gpu"
reveman
2016/01/13 15:05:17
I guess this is a more general Ozone testing probl
dshwang
2016/01/13 15:37:32
As I explain above, it's accidental problem to reu
|
| + |
| + DISALLOW_COPY_AND_ASSIGN(OzoneInitializerForTest); |
| +}; |
| + |
| } // namespace ui |
| #endif // UI_OZONE_PUBLIC_OZONE_GPU_THREAD_HELPER_H_ |