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

Issue 9645003: Introduce abstractions to allow embedders to test RenderViewHost (Closed)

Created:
8 years, 9 months ago by Jói
Modified:
8 years, 9 months ago
Reviewers:
jam
CC:
chromium-reviews, GeorgeY, Avi (use Gerrit), creis+watch_chromium.org, dyu1, hashimoto+watch_chromium.org, aboxhall+watch_chromium.org, dhollowa+watch_chromium.org, ajwong+watch_chromium.org, yoshiki+watch_chromium.org, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, brettw-cc_chromium.org, ctguil+watch_chromium.org, Ilya Sherman, zork+watch_chromium.org
Visibility:
Public.

Description

Introduce abstractions to allow embedders to test RenderViewHost without knowing about content's internals. From the embedders' point of view, this is done by splitting the "tester" interface away from the RenderViewHost interface, rather than extending the parallel interface/implementation hierarchy; see comments on TestRenderViewHost for the rationale. TBR=ben@chromium.org BUG=98716 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=126200

Patch Set 1 : . #

Patch Set 2 : Add missing files, syntactic sugar. #

Patch Set 3 : Fix browser_tests failure. #

Patch Set 4 : Merge to LKGR (pure merge). #

Patch Set 5 : Fix Windows issue. #

Patch Set 6 : Merge to head. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+851 lines, -621 lines) Patch
M chrome/browser/DEPS View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/accessibility/accessibility_win_browsertest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_manager_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_host_unittest.cc View 1 2 4 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 3 4 5 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/thumbnail_generator_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tabs/tab_strip_model_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/translate/translate_manager_browsertest.cc View 1 19 chunks +27 lines, -22 lines 0 comments Download
M chrome/browser/ui/browser_list_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/content_settings/content_setting_image_model_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/web_ui_unittest.cc View 1 8 chunks +25 lines, -20 lines 0 comments Download
M chrome/browser/visitedlink/visitedlink_unittest.cc View 1 6 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/web_applications/web_app_unittest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/test/base/browser_with_test_window_test.h View 3 chunks +4 lines, -8 lines 0 comments Download
M chrome/test/base/browser_with_test_window_test.cc View 4 chunks +13 lines, -19 lines 0 comments Download
M chrome/test/base/chrome_render_view_host_test_harness.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/test/base/chrome_render_view_host_test_harness.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/debugger/devtools_manager_unittest.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_view_host_unittest.cc View 1 2 8 chunks +15 lines, -12 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_unittest.mm View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.h View 1 2 3 4 7 chunks +56 lines, -143 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.cc View 1 2 3 4 3 chunks +84 lines, -207 lines 0 comments Download
M content/browser/site_instance_impl_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/tab_contents/navigation_controller_impl_unittest.cc View 67 chunks +102 lines, -98 lines 0 comments Download
M content/browser/tab_contents/render_view_host_manager_unittest.cc View 8 chunks +11 lines, -8 lines 0 comments Download
M content/browser/tab_contents/tab_contents_unittest.cc View 1 2 3 44 chunks +53 lines, -44 lines 0 comments Download
M content/browser/tab_contents/test_tab_contents.h View 1 1 chunk +8 lines, -3 lines 0 comments Download
M content/browser/tab_contents/test_tab_contents.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M content/content_tests.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
A content/test/test_renderer_host.h View 1 2 3 4 1 chunk +179 lines, -0 lines 0 comments Download
A content/test/test_renderer_host.cc View 1 2 3 4 1 chunk +211 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Jói
Hi John, This takes care of TestRenderViewHost (and TestRenderWidgetHostView, which wasn't being used in Chrome). ...
8 years, 9 months ago (2012-03-08 19:19:00 UTC) #1
jam
qq before I look into this in detail: I'm curious why add an interface around ...
8 years, 9 months ago (2012-03-08 19:36:07 UTC) #2
Jói
Hi John, After fairly quickly abandoning the idea of extending the parallel inheritance hierarchy, I ...
8 years, 9 months ago (2012-03-08 20:46:05 UTC) #3
jam
Thanks for the explanation, I understand now. lgtm
8 years, 9 months ago (2012-03-09 06:09:39 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/9645003/9002
8 years, 9 months ago (2012-03-09 15:59:59 UTC) #5
commit-bot: I haz the power
Presubmit check for 9645003-9002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 9 months ago (2012-03-09 16:00:11 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/9645003/9002
8 years, 9 months ago (2012-03-09 16:28:39 UTC) #7
commit-bot: I haz the power
Try job failure for 9645003-9002 (retry) on mac_rel for step "ui_tests". It's a second try, ...
8 years, 9 months ago (2012-03-09 18:23:13 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/9645003/18001
8 years, 9 months ago (2012-03-12 15:22:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/9645003/20001
8 years, 9 months ago (2012-03-12 16:34:28 UTC) #10
commit-bot: I haz the power
Can't apply patch for file chrome/browser/DEPS. While running patch -p1 --forward --force; patching file chrome/browser/DEPS ...
8 years, 9 months ago (2012-03-12 16:34:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/9645003/11009
8 years, 9 months ago (2012-03-12 16:39:24 UTC) #12
commit-bot: I haz the power
8 years, 9 months ago (2012-03-12 19:22:11 UTC) #13
Try job failure for 9645003-11009 (retry) on win_rel for steps "ui_tests,
browser_tests".
It's a second try, previously, steps "ui_tests, browser_tests" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698