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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_OZONE_PUBLIC_OZONE_GPU_THREAD_HELPER_H_ 5 #ifndef UI_OZONE_PUBLIC_OZONE_GPU_THREAD_HELPER_H_
6 #define UI_OZONE_PUBLIC_OZONE_GPU_THREAD_HELPER_H_ 6 #define UI_OZONE_PUBLIC_OZONE_GPU_THREAD_HELPER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 27 matching lines...) Expand all
38 const scoped_refptr<base::SingleThreadTaskRunner>& gpu_task_runner); 38 const scoped_refptr<base::SingleThreadTaskRunner>& gpu_task_runner);
39 39
40 private: 40 private:
41 std::unique_ptr<FakeGpuProcess> fake_gpu_process_; 41 std::unique_ptr<FakeGpuProcess> fake_gpu_process_;
42 std::unique_ptr<FakeGpuProcessHost> fake_gpu_process_host_; 42 std::unique_ptr<FakeGpuProcessHost> fake_gpu_process_host_;
43 std::unique_ptr<base::Thread> io_helper_thread_; 43 std::unique_ptr<base::Thread> io_helper_thread_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(OzoneGpuTestHelper); 45 DISALLOW_COPY_AND_ASSIGN(OzoneGpuTestHelper);
46 }; 46 };
47 47
48 // Helper class for tests to initialize both UI and GPU Ozone platform.
49 class OZONE_EXPORT OzoneInitializerForTest {
50 public:
51 static std::unique_ptr<OzoneInitializerForTest> Create();
52 ~OzoneInitializerForTest();
53
54 private:
55 OzoneInitializerForTest();
56 bool Initialize();
57
58 std::unique_ptr<OzoneGpuTestHelper> gpu_helper_;
59
60 DISALLOW_COPY_AND_ASSIGN(OzoneInitializerForTest);
61 };
62
48 } // namespace ui 63 } // namespace ui
49 64
50 #endif // UI_OZONE_PUBLIC_OZONE_GPU_THREAD_HELPER_H_ 65 #endif // UI_OZONE_PUBLIC_OZONE_GPU_THREAD_HELPER_H_
OLDNEW
« 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