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

Issue 1208603002: content: implement unittests backend for Ozone GBM

Created:
5 years, 6 months ago by dshwang
Modified:
4 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

content: implement unittests backend for Ozone GBM GpuMemoryBufferImplTests and GpuMemoryBufferFactoryTests on Ozone GBM crash currently. Ozone uses chromium IPC internally unlike IOSurface and SurfaceTexture. These unittests initialize only GPU side Ozone; OzonePlatform::InitializeForGPU() is called in gfx::GLSurface::InitializeOneOffForTests(). Ozone GBM requires browser side initialization also. Introduce OzonePlatform::InitializeForTest() interface to initialize everything synchronously for unit tests. TEST=gpu_unittests --gtest_filter=GpuMemoryBuffer* --ozone-platform=gbm --ozone-use-surfaceless --single-process-tests gl_unittests --gtest_filter=GLImage* --ozone-platform=gbm --ozone-use-surfaceless --single-process-tests BUG=475633 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel

Patch Set 1 #

Total comments: 2

Patch Set 2 : ozone: Implement new interface for test #

Patch Set 3 : fix NavigationControllerTest failure #

Total comments: 2

Patch Set 4 : fix DCHECK(thread_checker_) in DrmDeviceManager::AddDrmDevice #

Patch Set 5 : WIP #

Total comments: 2

Patch Set 6 : rebase to ToT #

Patch Set 7 : force single process #

Total comments: 7

Patch Set 8 : ContentTestSuite initialize message loop #

Total comments: 2

Patch Set 9 : fix content_gl_tests #

Patch Set 10 : fix Mac bots #

Total comments: 11

Patch Set 11 : fix content_gl_tests for Mac bots #

Patch Set 12 : rebase to ToT #

Patch Set 13 : exclude content_unittests as all GMBs tests are moved to gpu_unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -0 lines) Patch
M gpu/command_buffer/common/unittest_main.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +18 lines, -0 lines 0 comments Download
M ui/gl/test/run_all_unittests.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -0 lines 0 comments Download
M ui/ozone/public/ozone_gpu_test_helper.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +15 lines, -0 lines 0 comments Download
M ui/ozone/public/ozone_gpu_test_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (14 generated)
dshwang
sky, could you review?
5 years, 6 months ago (2015-06-24 16:04:11 UTC) #2
reveman
I don't think we want our unit tests to require some form of ipc. Please ...
5 years, 6 months ago (2015-06-24 18:49:50 UTC) #3
vignatti (out of this project)
https://codereview.chromium.org/1208603002/diff/1/content/test/content_test_suite.cc File content/test/content_test_suite.cc (right): https://codereview.chromium.org/1208603002/diff/1/content/test/content_test_suite.cc#newcode81 content/test/content_test_suite.cc:81: scoped_ptr<ui::OzoneGpuTestHelper> gpu_helper_; would be better if we had the ...
5 years, 6 months ago (2015-06-24 22:16:17 UTC) #4
dshwang
On 2015/06/24 18:49:50, reveman wrote: > I don't think we want our unit tests to ...
5 years, 6 months ago (2015-06-25 05:38:40 UTC) #5
reveman
On 2015/06/25 at 05:38:40, dongseong.hwang wrote: > On 2015/06/24 18:49:50, reveman wrote: > > I ...
5 years, 6 months ago (2015-06-25 13:49:30 UTC) #6
dshwang
On 2015/06/25 13:49:30, reveman wrote: > On 2015/06/25 at 05:38:40, dongseong.hwang wrote: > > On ...
5 years, 6 months ago (2015-06-25 15:49:25 UTC) #8
reveman
On 2015/06/25 at 15:49:25, dongseong.hwang wrote: > On 2015/06/25 13:49:30, reveman wrote: > > On ...
5 years, 6 months ago (2015-06-25 16:23:45 UTC) #9
dshwang
On 2015/06/25 16:23:45, reveman wrote: > On 2015/06/25 at 15:49:25, dongseong.hwang wrote: > > On ...
5 years, 6 months ago (2015-06-25 16:30:58 UTC) #10
reveman
On 2015/06/25 at 16:30:58, dongseong.hwang wrote: > On 2015/06/25 16:23:45, reveman wrote: > > On ...
5 years, 6 months ago (2015-06-25 16:54:15 UTC) #11
dshwang
On 2015/06/25 16:54:15, reveman wrote: > On 2015/06/25 at 16:30:58, dongseong.hwang wrote: > > On ...
5 years, 6 months ago (2015-06-25 17:20:57 UTC) #12
vignatti (out of this project)
I just tried Patch Set 2 and tests are still broken.
5 years, 6 months ago (2015-06-25 18:47:04 UTC) #13
dshwang
On 2015/06/25 18:47:04, vignatti wrote: > I just tried Patch Set 2 and tests are ...
5 years, 6 months ago (2015-06-26 09:04:34 UTC) #14
vignatti (out of this project)
On 2015/06/26 09:04:34, dshwang wrote: > On 2015/06/25 18:47:04, vignatti wrote: > > I just ...
5 years, 5 months ago (2015-06-29 20:53:08 UTC) #15
dshwang
On 2015/06/29 20:53:08, vignatti wrote: > On 2015/06/26 09:04:34, dshwang wrote: > > On 2015/06/25 ...
5 years, 5 months ago (2015-06-30 12:04:25 UTC) #16
dshwang
On 2015/06/30 12:04:25, dshwang wrote: > sky, spang, could you review? sky, spang, could you ...
5 years, 5 months ago (2015-07-07 08:59:31 UTC) #17
dshwang
On 2015/07/07 08:59:31, dshwang wrote: > On 2015/06/30 12:04:25, dshwang wrote: > > sky, spang, ...
5 years, 5 months ago (2015-07-13 13:56:50 UTC) #18
spang
Sorry, I started reviewing and got sidetracked. Can we maybe just make a helper class ...
5 years, 5 months ago (2015-07-13 17:08:26 UTC) #19
dshwang
On 2015/07/13 17:08:26, spang wrote: > Sorry, I started reviewing and got sidetracked. > > ...
5 years, 5 months ago (2015-07-13 18:41:05 UTC) #20
dshwang
this CL is WIP. https://codereview.chromium.org/1208603002/diff/100001/ui/ozone/public/ozone_gpu_test_helper.cc File ui/ozone/public/ozone_gpu_test_helper.cc (right): https://codereview.chromium.org/1208603002/diff/100001/ui/ozone/public/ozone_gpu_test_helper.cc#newcode134 ui/ozone/public/ozone_gpu_test_helper.cc:134: message_loop.reset(new base::MessageLoopForUI); MessageLoopForUI creation is ...
5 years, 5 months ago (2015-07-15 16:02:41 UTC) #21
dshwang
https://codereview.chromium.org/1208603002/diff/100001/ui/ozone/public/ozone_gpu_test_helper.cc File ui/ozone/public/ozone_gpu_test_helper.cc (right): https://codereview.chromium.org/1208603002/diff/100001/ui/ozone/public/ozone_gpu_test_helper.cc#newcode134 ui/ozone/public/ozone_gpu_test_helper.cc:134: message_loop.reset(new base::MessageLoopForUI); On 2015/07/15 16:02:41, dshwang wrote: > MessageLoopForUI ...
5 years, 5 months ago (2015-07-15 16:07:19 UTC) #22
dshwang
spang, could you review it again? It makes it possible to run GpuMemoryBuffer unittest as ...
5 years ago (2015-11-27 15:37:42 UTC) #23
spang
https://codereview.chromium.org/1208603002/diff/160001/base/test/launcher/unit_test_launcher.cc File base/test/launcher/unit_test_launcher.cc (right): https://codereview.chromium.org/1208603002/diff/160001/base/test/launcher/unit_test_launcher.cc#newcode197 base/test/launcher/unit_test_launcher.cc:197: force_single_process = true; I don't think this is worth ...
5 years ago (2015-12-02 17:00:03 UTC) #25
dshwang
Thanks for reviewing. I'm back from vacation, so delay to response. https://codereview.chromium.org/1208603002/diff/160001/base/test/launcher/unit_test_launcher.cc File base/test/launcher/unit_test_launcher.cc (right): ...
5 years ago (2015-12-08 01:12:38 UTC) #26
spang
On 2015/12/08 01:12:38, dshwang wrote: > Thanks for reviewing. I'm back from vacation, so delay ...
5 years ago (2015-12-08 16:46:29 UTC) #27
dshwang
https://codereview.chromium.org/1208603002/diff/160001/base/test/launcher/unit_test_launcher.cc File base/test/launcher/unit_test_launcher.cc (right): https://codereview.chromium.org/1208603002/diff/160001/base/test/launcher/unit_test_launcher.cc#newcode197 base/test/launcher/unit_test_launcher.cc:197: force_single_process = true; On 2015/12/08 01:12:38, dshwang wrote: > ...
5 years ago (2015-12-08 22:19:34 UTC) #28
spang
On 2015/12/08 22:19:34, dshwang wrote: > https://codereview.chromium.org/1208603002/diff/160001/base/test/launcher/unit_test_launcher.cc > File base/test/launcher/unit_test_launcher.cc (right): > > https://codereview.chromium.org/1208603002/diff/160001/base/test/launcher/unit_test_launcher.cc#newcode197 > ...
5 years ago (2015-12-08 22:45:26 UTC) #29
dshwang
Your message is clear. Let me apply soon. Thank you :) https://codereview.chromium.org/1208603002/diff/160001/base/test/launcher/unit_test_launcher.cc File base/test/launcher/unit_test_launcher.cc (right): ...
5 years ago (2015-12-08 23:04:34 UTC) #30
spang
On 2015/12/08 23:04:34, dshwang wrote: > Your message is clear. Let me apply soon. Thank ...
5 years ago (2015-12-09 16:54:10 UTC) #31
dshwang
spang, could you review again? Now ContentTestSuite creates message loop.
5 years ago (2015-12-12 07:07:41 UTC) #33
spang
https://codereview.chromium.org/1208603002/diff/180001/content/test/content_test_suite.cc File content/test/content_test_suite.cc (right): https://codereview.chromium.org/1208603002/diff/180001/content/test/content_test_suite.cc#newcode92 content/test/content_test_suite.cc:92: ozone_ = ui::OzoneInitializerForTest::Create(); Can you just call ui::OzonePlatform::InitializeForUI here? ...
5 years ago (2015-12-14 17:51:37 UTC) #34
dshwang
https://codereview.chromium.org/1208603002/diff/180001/content/test/content_test_suite.cc File content/test/content_test_suite.cc (right): https://codereview.chromium.org/1208603002/diff/180001/content/test/content_test_suite.cc#newcode92 content/test/content_test_suite.cc:92: ozone_ = ui::OzoneInitializerForTest::Create(); On 2015/12/14 17:51:37, spang wrote: > ...
5 years ago (2015-12-15 03:44:00 UTC) #35
dshwang
hi spang, could you review it again? gl_unittests requires it. https://codereview.chromium.org/1484473003/
4 years, 11 months ago (2016-01-11 13:09:38 UTC) #37
reveman
https://codereview.chromium.org/1208603002/diff/260001/content/test/content_test_suite.cc File content/test/content_test_suite.cc (right): https://codereview.chromium.org/1208603002/diff/260001/content/test/content_test_suite.cc#newcode92 content/test/content_test_suite.cc:92: if (!base::MessageLoop::current()) is this conditional needed? https://codereview.chromium.org/1208603002/diff/260001/ui/ozone/public/ozone_gpu_test_helper.h File ui/ozone/public/ozone_gpu_test_helper.h ...
4 years, 11 months ago (2016-01-11 19:13:52 UTC) #38
dshwang
https://codereview.chromium.org/1208603002/diff/260001/content/common/gpu/client/gl_helper_unittest.cc File content/common/gpu/client/gl_helper_unittest.cc (right): https://codereview.chromium.org/1208603002/diff/260001/content/common/gpu/client/gl_helper_unittest.cc#newcode1994 content/common/gpu/client/gl_helper_unittest.cc:1994: base::MessageLoopForUI message_loop; content_gl_tests creates a ContentTestSuite instance after creating ...
4 years, 11 months ago (2016-01-11 20:17:45 UTC) #39
dshwang
spang, could you review again?
4 years, 11 months ago (2016-01-12 16:43:07 UTC) #40
reveman
https://codereview.chromium.org/1208603002/diff/260001/ui/ozone/public/ozone_gpu_test_helper.h File ui/ozone/public/ozone_gpu_test_helper.h (right): https://codereview.chromium.org/1208603002/diff/260001/ui/ozone/public/ozone_gpu_test_helper.h#newcode48 ui/ozone/public/ozone_gpu_test_helper.h:48: class OZONE_EXPORT OzoneInitializerForTest { On 2016/01/11 at 20:17:45, dshwang ...
4 years, 11 months ago (2016-01-13 15:05:17 UTC) #41
dshwang
https://codereview.chromium.org/1208603002/diff/260001/ui/ozone/public/ozone_gpu_test_helper.h File ui/ozone/public/ozone_gpu_test_helper.h (right): https://codereview.chromium.org/1208603002/diff/260001/ui/ozone/public/ozone_gpu_test_helper.h#newcode48 ui/ozone/public/ozone_gpu_test_helper.h:48: class OZONE_EXPORT OzoneInitializerForTest { On 2016/01/13 15:05:17, reveman wrote: ...
4 years, 11 months ago (2016-01-13 15:37:32 UTC) #42
spang
My apologies, I haven't given this the attention it deserves. I think you are on ...
4 years, 11 months ago (2016-01-18 20:39:56 UTC) #43
spang
On 2016/01/18 20:39:56, spang wrote: > My apologies, I haven't given this the attention it ...
4 years, 11 months ago (2016-01-18 21:12:32 UTC) #44
dshwang
Ok, GBM needs to make something like video_decode_accelerator_unittest, rather than reusing existing content unittests. The ...
4 years, 11 months ago (2016-01-19 15:59:13 UTC) #45
spang
You can still reuse any necessary code, it just needs a test harness that is ...
4 years, 11 months ago (2016-01-19 20:07:21 UTC) #46
dshwang
On 2016/01/19 20:07:21, spang wrote: > You can still reuse any necessary code, it just ...
4 years, 11 months ago (2016-01-20 18:41:53 UTC) #47
dshwang
When VGEM is removed, it's fixed. so close it as WontFix
4 years, 8 months ago (2016-03-30 10:32:17 UTC) #48
dshwang
4 years, 8 months ago (2016-04-07 10:08:51 UTC) #51
On 2016/03/30 10:32:17, dshwang wrote:
> When VGEM is removed, it's fixed. so close it as WontFix

I was wrong. It's still issue.

Powered by Google App Engine
This is Rietveld 408576698