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

Issue 2320923002: Add a full Blimp integration test. (Closed)

Created:
4 years, 3 months ago by David Trainor- moved to gerrit
Modified:
4 years, 3 months ago
Reviewers:
jam, Khushal
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a full Blimp integration test. - Add a full integration test that spawns both an engine and client in the same process and validates that the rendering pipeline produces the correct thing. - Also add Linux support for BlimpContents and exposed a BlimpContentsView, which is required to gain access to the right classes to validate the rendering path. Marking this as NOPRESUBMIT because there are some ScopedAllowIO calls during test setup and client tear down. Please feel free to revert or ping me on any landing issues. BUG=644262 NOPRESUBMIT=true Committed: https://crrev.com/452f128c9232adc0c58caef4564f2fbf1b4bd9b0 Cr-Commit-Position: refs/heads/master@{#418633}

Patch Set 1 #

Patch Set 2 : Fixed this a bit more. Still some thread violations :(. #

Total comments: 24

Patch Set 3 : Fixed test, added infrastructure to make it work. Still thread wait issue #

Patch Set 4 : Addressed some comments #

Patch Set 5 : Addressed more comments, added thread restriction bypass for tests. #

Total comments: 16

Patch Set 6 : Addressed Comments #

Patch Set 7 : Rebased #

Patch Set 8 : Fixed gn check failure #

Patch Set 9 : Fix build break with chrome embedder #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1035 lines, -652 lines) Patch
M base/threading/thread_restrictions.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M blimp/client/app/compositor/browser_compositor.h View 1 2 3 4 5 6 2 chunks +13 lines, -64 lines 0 comments Download
M blimp/client/app/compositor/browser_compositor.cc View 1 2 3 4 5 6 2 chunks +7 lines, -177 lines 0 comments Download
M blimp/client/core/BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M blimp/client/core/blimp_client_context_impl.h View 1 2 chunks +9 lines, -7 lines 0 comments Download
M blimp/client/core/blimp_client_context_impl.cc View 1 2 3 4 5 6 5 chunks +13 lines, -8 lines 0 comments Download
M blimp/client/core/blimp_client_context_impl_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M blimp/client/core/compositor/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M blimp/client/core/compositor/blimp_compositor.h View 1 2 3 4 5 6 4 chunks +22 lines, -0 lines 0 comments Download
M blimp/client/core/compositor/blimp_compositor.cc View 1 2 3 4 5 6 6 chunks +39 lines, -0 lines 0 comments Download
M blimp/client/core/compositor/blimp_compositor_dependencies.cc View 1 2 3 chunks +12 lines, -2 lines 0 comments Download
M blimp/client/core/compositor/blimp_compositor_manager.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M blimp/client/core/compositor/blimp_compositor_manager.cc View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M blimp/client/core/compositor/blimp_compositor_manager_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M blimp/client/core/compositor/blimp_compositor_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M blimp/client/core/contents/BUILD.gn View 1 4 chunks +7 lines, -6 lines 0 comments Download
M blimp/client/core/contents/android/blimp_contents_impl_android.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M blimp/client/core/contents/android/blimp_contents_observer_proxy.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/core/contents/android/blimp_contents_observer_proxy.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M blimp/client/core/contents/android/blimp_view.h View 1 2 3 3 chunks +12 lines, -6 lines 0 comments Download
M blimp/client/core/contents/android/blimp_view.cc View 3 chunks +5 lines, -6 lines 0 comments Download
M blimp/client/core/contents/android/java/src/org/chromium/blimp/core/contents/BlimpContentsObserverProxy.java View 1 1 chunk +8 lines, -0 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_impl.h View 1 6 chunks +4 lines, -6 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_impl.cc View 1 2 3 4 5 6 4 chunks +8 lines, -8 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_impl_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M blimp/client/core/contents/blimp_contents_manager_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M blimp/client/core/contents/blimp_contents_observer_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
D blimp/client/core/contents/blimp_contents_view.h View 1 chunk +0 lines, -38 lines 0 comments Download
D blimp/client/core/contents/blimp_contents_view_android.h View 1 chunk +0 lines, -45 lines 0 comments Download
D blimp/client/core/contents/blimp_contents_view_android.cc View 1 chunk +0 lines, -51 lines 0 comments Download
D blimp/client/core/contents/blimp_contents_view_aura.h View 1 chunk +0 lines, -29 lines 0 comments Download
D blimp/client/core/contents/blimp_contents_view_aura.cc View 1 chunk +0 lines, -31 lines 0 comments Download
A blimp/client/core/contents/blimp_contents_view_impl.h View 1 2 3 4 5 1 chunk +69 lines, -0 lines 0 comments Download
A blimp/client/core/contents/blimp_contents_view_impl.cc View 1 2 3 4 5 1 chunk +66 lines, -0 lines 0 comments Download
A + blimp/client/core/contents/blimp_contents_view_impl_android.h View 3 chunks +11 lines, -10 lines 0 comments Download
A + blimp/client/core/contents/blimp_contents_view_impl_android.cc View 2 chunks +13 lines, -11 lines 0 comments Download
A blimp/client/core/contents/blimp_contents_view_impl_aura.h View 1 1 chunk +34 lines, -0 lines 0 comments Download
A blimp/client/core/contents/blimp_contents_view_impl_aura.cc View 1 1 chunk +53 lines, -0 lines 0 comments Download
M blimp/client/core/contents/blimp_navigation_controller_delegate.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M blimp/client/core/contents/blimp_navigation_controller_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/core/contents/blimp_navigation_controller_impl_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/core/dummy_blimp_client_context.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/core/dummy_blimp_client_context.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M blimp/client/public/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/public/android/java/src/org/chromium/blimp_public/contents/BlimpContentsObserver.java View 1 1 chunk +6 lines, -0 lines 0 comments Download
M blimp/client/public/android/java/src/org/chromium/blimp_public/contents/EmptyBlimpContentsObserver.java View 1 1 chunk +3 lines, -0 lines 0 comments Download
M blimp/client/public/blimp_client_context.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/public/contents/blimp_contents.h View 2 chunks +7 lines, -3 lines 0 comments Download
M blimp/client/public/contents/blimp_contents_observer.h View 1 1 chunk +4 lines, -1 line 0 comments Download
A blimp/client/public/contents/blimp_contents_view.h View 1 2 3 4 5 1 chunk +70 lines, -0 lines 0 comments Download
M blimp/client/support/BUILD.gn View 1 1 chunk +0 lines, -8 lines 0 comments Download
M blimp/client/support/compositor/BUILD.gn View 1 2 3 4 2 chunks +2 lines, -17 lines 0 comments Download
A + blimp/client/support/compositor/blimp_embedder_compositor.h View 1 2 3 4 5 6 5 chunks +21 lines, -23 lines 0 comments Download
A + blimp/client/support/compositor/blimp_embedder_compositor.cc View 1 2 3 4 5 6 6 chunks +19 lines, -29 lines 0 comments Download
D blimp/client/support/compositor/mock_compositor_dependencies.h View 1 1 chunk +0 lines, -25 lines 0 comments Download
D blimp/client/support/compositor/mock_compositor_dependencies.cc View 1 1 chunk +0 lines, -20 lines 0 comments Download
M blimp/client/test/BUILD.gn View 1 2 chunks +2 lines, -0 lines 0 comments Download
A blimp/client/test/compositor/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +23 lines, -0 lines 0 comments Download
A + blimp/client/test/compositor/mock_compositor_dependencies.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + blimp/client/test/compositor/mock_compositor_dependencies.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A blimp/client/test/compositor/test_blimp_embedder_compositor.h View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
A blimp/client/test/compositor/test_blimp_embedder_compositor.cc View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
M blimp/engine/BUILD.gn View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M blimp/engine/browser_tests/blimp_browser_test.h View 1 2 3 4 3 chunks +10 lines, -0 lines 0 comments Download
M blimp/engine/browser_tests/blimp_browser_test.cc View 1 2 3 4 3 chunks +9 lines, -2 lines 0 comments Download
A blimp/engine/browser_tests/blimp_contents_view_readback_helper.h View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A blimp/engine/browser_tests/blimp_contents_view_readback_helper.cc View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A blimp/engine/browser_tests/integration_test.cc View 1 2 3 4 5 1 chunk +160 lines, -0 lines 0 comments Download
A blimp/engine/browser_tests/waitable_content_pump.h View 1 2 3 4 5 1 chunk +43 lines, -0 lines 0 comments Download
A blimp/engine/browser_tests/waitable_content_pump.cc View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/TabBlimpContentsObserver.java View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/android/tab_android.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 42 (31 generated)
Khushal
Added some comments while you're fixing stuff. :) https://codereview.chromium.org/2320923002/diff/20001/blimp/client/core/compositor/blimp_compositor_dependencies.cc File blimp/client/core/compositor/blimp_compositor_dependencies.cc (right): https://codereview.chromium.org/2320923002/diff/20001/blimp/client/core/compositor/blimp_compositor_dependencies.cc#newcode35 blimp/client/core/compositor/blimp_compositor_dependencies.cc:35: Shutdown(); ...
4 years, 3 months ago (2016-09-13 04:47:24 UTC) #2
David Trainor- moved to gerrit
https://codereview.chromium.org/2320923002/diff/20001/blimp/client/core/compositor/blimp_compositor_dependencies.cc File blimp/client/core/compositor/blimp_compositor_dependencies.cc (right): https://codereview.chromium.org/2320923002/diff/20001/blimp/client/core/compositor/blimp_compositor_dependencies.cc#newcode35 blimp/client/core/compositor/blimp_compositor_dependencies.cc:35: Shutdown(); On 2016/09/13 04:47:23, Khushal wrote: > I think ...
4 years, 3 months ago (2016-09-13 06:18:05 UTC) #3
David Trainor- moved to gerrit
jam@: Ptal at base/thread_restrictions.h. Thanks!
4 years, 3 months ago (2016-09-13 18:57:06 UTC) #5
Khushal
lgtm. Looks great. My comments were mostly nits. Thanks! https://codereview.chromium.org/2320923002/diff/20001/blimp/client/public/blimp_client_context.h File blimp/client/public/blimp_client_context.h (right): https://codereview.chromium.org/2320923002/diff/20001/blimp/client/public/blimp_client_context.h#newcode67 blimp/client/public/blimp_client_context.h:67: ...
4 years, 3 months ago (2016-09-13 23:47:10 UTC) #6
David Trainor- moved to gerrit
https://codereview.chromium.org/2320923002/diff/80001/blimp/client/core/compositor/blimp_compositor.h File blimp/client/core/compositor/blimp_compositor.h (right): https://codereview.chromium.org/2320923002/diff/80001/blimp/client/core/compositor/blimp_compositor.h#newcode104 blimp/client/core/compositor/blimp_compositor.h:104: void NotifyWhenDonePendingCommits(base::Closure callback); On 2016/09/13 23:47:10, Khushal wrote: > ...
4 years, 3 months ago (2016-09-14 00:31:09 UTC) #7
David Trainor- moved to gerrit
jam: Friendly ping r.e. base/threading/thread_restrictions. Thanks!
4 years, 3 months ago (2016-09-14 17:49:46 UTC) #24
jam
On 2016/09/14 17:49:46, David Trainor wrote: > jam: Friendly ping r.e. base/threading/thread_restrictions. Thanks! lgtm
4 years, 3 months ago (2016-09-14 18:03:49 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2320923002/160001
4 years, 3 months ago (2016-09-14 18:57:26 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2320923002/160001
4 years, 3 months ago (2016-09-14 19:09:24 UTC) #38
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 3 months ago (2016-09-14 19:12:05 UTC) #40
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 19:14:14 UTC) #42
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/452f128c9232adc0c58caef4564f2fbf1b4bd9b0
Cr-Commit-Position: refs/heads/master@{#418633}

Powered by Google App Engine
This is Rietveld 408576698