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

Issue 5967003: Refactor UITestBase/ProxyLauncher. (Closed)

Created:
10 years ago by dtu
Modified:
9 years, 7 months ago
CC:
chromium-reviews, jam, brettw-cc_chromium.org, darin-cc_chromium.org, krisr, Paweł Hajdan Jr.
Visibility:
Public.

Description

Moves everything related to launching and terminating the browser from UITestBase into ProxyLauncher. The primary changes are in ui_test.* and proxy_launcher.*. The changes in the remaining files are mostly just changing namespaces from UITestBase:: to ProxyLauncher::. BUG=None. TEST=All tests should pass. No functionality change. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=70827

Patch Set 1 #

Patch Set 2 : Re-add timeout after browser launch. #

Patch Set 3 : Cleanup of >80 lines, part 1. #

Patch Set 4 : Resync to HEAD. #

Patch Set 5 : Fix issues and clean up. #

Total comments: 43

Patch Set 6 : Changes per Paweł's comments. #

Total comments: 28

Patch Set 7 : Nits fixed and process_, process_id_ moved to ProxyLauncher. #

Patch Set 8 : Nits fixed; homepage_ moved to UITestBase; process_, process_id_ moved to ProxyLauncher. #

Total comments: 23

Patch Set 9 : Undo previous patch set. #

Patch Set 10 : Nits and comments. #

Patch Set 11 : Add POD struct to hold some launcher variables. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+1016 lines, -721 lines) Patch
M chrome/browser/dom_ui/new_tab_ui_uitest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/metrics/metrics_service_uitest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host_uitest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sanity_uitest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/session_history_uitest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sessions/session_restore_uitest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/tests/browser_uitest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/logging_chrome_uitest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/test/automation/automation_proxy_uitest.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/automation/automation_proxy_uitest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -2 lines 1 comment Download
M chrome/test/automation/proxy_launcher.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +266 lines, -11 lines 3 comments Download
M chrome/test/automation/proxy_launcher.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +477 lines, -9 lines 0 comments Download
M chrome/test/interactive_ui/fast_shutdown_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/interactive_ui/npapi_interactive_test.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/reliability/page_load_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/startup/feature_startup_test.cc View 5 chunks +11 lines, -11 lines 0 comments Download
M chrome/test/startup/shutdown_test.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +10 lines, -8 lines 0 comments Download
M chrome/test/startup/startup_test.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +21 lines, -18 lines 0 comments Download
M chrome/test/ui/layout_plugin_uitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/ui/npapi_uitest.cc View 1 14 chunks +14 lines, -14 lines 0 comments Download
M chrome/test/ui/ui_perf_test.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/test/ui/ui_test.h View 1 2 3 4 5 6 7 8 9 10 11 chunks +111 lines, -186 lines 0 comments Download
M chrome/test/ui/ui_test.cc View 1 2 3 4 5 6 7 8 9 10 17 chunks +62 lines, -428 lines 0 comments Download
M chrome/test/ui/ui_test_suite.cc View 3 chunks +11 lines, -11 lines 0 comments Download
M chrome/worker/worker_uitest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
dtu
9 years, 11 months ago (2011-01-05 20:02:59 UTC) #1
Paweł Hajdan Jr.
Drive-by with automation comments. Thank you for the follow-up. http://codereview.chromium.org/5967003/diff/70001/chrome/test/automation/automation_proxy_uitest.h File chrome/test/automation/automation_proxy_uitest.h (right): http://codereview.chromium.org/5967003/diff/70001/chrome/test/automation/automation_proxy_uitest.h#newcode111 chrome/test/automation/automation_proxy_uitest.h:111: ...
9 years, 11 months ago (2011-01-05 21:47:59 UTC) #2
dtu
Nits fixed, thanks! Will wait for more feedback to see how far we want to ...
9 years, 11 months ago (2011-01-06 01:41:13 UTC) #3
Paweł Hajdan Jr.
Okay, so we still need to find a way to reduce the number of parameters ...
9 years, 11 months ago (2011-01-06 20:37:14 UTC) #4
Nirnimesh
I have only minor nits. LGTM http://codereview.chromium.org/5967003/diff/25004/chrome/test/automation/proxy_launcher.h File chrome/test/automation/proxy_launcher.h (right): http://codereview.chromium.org/5967003/diff/25004/chrome/test/automation/proxy_launcher.h#newcode49 chrome/test/automation/proxy_launcher.h:49: // connection with ...
9 years, 11 months ago (2011-01-06 22:56:44 UTC) #5
dtu
Nits fixed. Also moved process_ and process_id_ from UITestBase to ProxyLauncher. http://codereview.chromium.org/5967003/diff/25004/chrome/test/automation/proxy_launcher.cc File chrome/test/automation/proxy_launcher.cc (right): ...
9 years, 11 months ago (2011-01-07 01:46:16 UTC) #6
John Grabowski
3 issues. 1, need more comments. 2, consider "params" struct (see below). if you strongly ...
9 years, 11 months ago (2011-01-07 03:36:11 UTC) #7
dtu
Nits fixed, comments added. POD struct added. This reduces the lengths of the parameter lists. ...
9 years, 11 months ago (2011-01-08 01:54:50 UTC) #8
Paweł Hajdan Jr.
9 years, 11 months ago (2011-01-08 06:45:25 UTC) #9
Some more comments. Could you please do a follow-up-to-the-followup?

Let me also repeat my earlier comment: please do not commit a change if there
are unresolved comments by any reviewer, even if you have "LGTM" from someone
else.

http://codereview.chromium.org/5967003/diff/206001/chrome/test/automation/aut...
File chrome/test/automation/automation_proxy_uitest.cc (right):

http://codereview.chromium.org/5967003/diff/206001/chrome/test/automation/aut...
chrome/test/automation/automation_proxy_uitest.cc:890:
launcher_.reset(CreateProxyLauncher());
Again, *why* do we need this?

http://codereview.chromium.org/5967003/diff/206001/chrome/test/automation/pro...
File chrome/test/automation/proxy_launcher.h (right):

http://codereview.chromium.org/5967003/diff/206001/chrome/test/automation/pro...
chrome/test/automation/proxy_launcher.h:45: typedef struct {
nit: *Again* why is this typedef needed here?

http://codereview.chromium.org/5967003/diff/206001/chrome/test/automation/pro...
chrome/test/automation/proxy_launcher.h:51: FilePath& template_user_data;
Why is this a reference? It seems quite dangerous.

http://codereview.chromium.org/5967003/diff/206001/chrome/test/automation/pro...
chrome/test/automation/proxy_launcher.h:60: CommandLine& arguments;
Why is this a reference? It seems quite dangerous.

Powered by Google App Engine
This is Rietveld 408576698