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

Issue 12084029: Simplify how TestChromeWebUIControllerFactory is registered now that multiple WebUIControllerFactor… (Closed)

Created:
7 years, 10 months ago by jam
Modified:
7 years, 10 months ago
Reviewers:
Sheridan Rawlins, scr
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, creis+watch_chromium.org, estade+watch_chromium.org, jam, joi+watch-content_chromium.org, Aaron Boodman, eroman, darin-cc_chromium.org, ajwong+watch_chromium.org, chromium-apps-reviews_chromium.org, mmenke, pedrosimonetti+watch_chromium.org
Visibility:
Public.

Description

Simplify how TestChromeWebUIControllerFactory is registered now that multiple WebUIControllerFactory instances are supported. Instead of compiling the test code into the shipping product, have tests which use it unregister the default one and register the test one. This also makes the non-test version used for the majority of the test, which keeps the browser_tests more like the shipping product. I've also moved the test harness code to chrome\test\base, which is where test harnesses live. BUG=169170 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179271

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : fix MostVisitedWebUITest tests #

Total comments: 4

Patch Set 5 : sync to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -1230 lines) Patch
M chrome/browser/ui/webui/bidi_checker_web_ui_test.h View 1 2 3 4 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 3 4 3 chunks +1 line, -17 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/most_visited_browsertest.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
D chrome/browser/ui/webui/test_chrome_web_ui_controller_factory.h View 1 2 3 4 1 chunk +0 lines, -66 lines 0 comments Download
D chrome/browser/ui/webui/test_chrome_web_ui_controller_factory.cc View 1 2 3 4 1 chunk +0 lines, -63 lines 0 comments Download
D chrome/browser/ui/webui/test_chrome_web_ui_controller_factory_browsertest.cc View 1 2 3 4 1 chunk +0 lines, -73 lines 0 comments Download
D chrome/browser/ui/webui/web_ui_browsertest.h View 1 2 3 4 1 chunk +0 lines, -203 lines 0 comments Download
D chrome/browser/ui/webui/web_ui_browsertest.cc View 1 2 3 4 1 chunk +0 lines, -720 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/test/base/js2gtest.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/base/test_chrome_web_ui_controller_factory.h View 4 chunks +8 lines, -14 lines 0 comments Download
A + chrome/test/base/test_chrome_web_ui_controller_factory.cc View 3 chunks +5 lines, -11 lines 0 comments Download
A + chrome/test/base/test_chrome_web_ui_controller_factory_browsertest.cc View 2 chunks +14 lines, -6 lines 0 comments Download
A + chrome/test/base/web_ui_browsertest.h View 4 chunks +6 lines, -9 lines 0 comments Download
A + chrome/test/base/web_ui_browsertest.cc View 4 chunks +16 lines, -16 lines 0 comments Download
M chrome/test/data/webui/async_gen.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/webui/certificate_viewer_ui_test-inl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/webui/chrome_send_browsertest.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/webui/ntp4_browsertest.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/webui/print_preview.h View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M chrome/test/data/webui/print_preview.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/site_instance_impl_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/render_view_host_manager_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/webui/web_ui_controller_factory_registry.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/webui/web_ui_controller_factory_registry.cc View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M content/public/browser/web_ui_controller_factory.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
jam
7 years, 10 months ago (2013-01-28 22:45:24 UTC) #1
scr
https://codereview.chromium.org/12084029/diff/2007/chrome/test/base/web_ui_browsertest.cc File chrome/test/base/web_ui_browsertest.cc (right): https://codereview.chromium.org/12084029/diff/2007/chrome/test/base/web_ui_browsertest.cc#newcode326 chrome/test/base/web_ui_browsertest.cc:326: ChromeWebUIControllerFactory::GetInstance()); See comment below - would it be easier ...
7 years, 10 months ago (2013-01-29 01:01:53 UTC) #2
scr
https://codereview.chromium.org/12084029/diff/2007/chrome/test/base/web_ui_browsertest.cc File chrome/test/base/web_ui_browsertest.cc (right): https://codereview.chromium.org/12084029/diff/2007/chrome/test/base/web_ui_browsertest.cc#newcode326 chrome/test/base/web_ui_browsertest.cc:326: ChromeWebUIControllerFactory::GetInstance()); Per IM, the goal is to get to ...
7 years, 10 months ago (2013-01-29 01:30:10 UTC) #3
scr
7 years, 10 months ago (2013-01-29 01:30:17 UTC) #4
lgtm

Powered by Google App Engine
This is Rietveld 408576698