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

Issue 6111011: Move launcher_.reset() from UITestBase constructor to SetUp(). (Closed)

Created:
9 years, 11 months ago by dtu
Modified:
9 years, 7 months ago
Reviewers:
Paweł Hajdan Jr.
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Followup to http://codereview.chromium.org/5967003/ UITestBase now creates its ProxyLauncher instance in SetUp() rather than its constructor. LaunchState no longer contains references. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71398

Patch Set 1 #

Patch Set 2 : Move launcher_.reset() from constructor into SetUp(). #

Total comments: 2

Patch Set 3 : Move CreateProxyLauncher to SetUp(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -9 lines) Patch
M chrome/test/automation/automation_proxy_uitest.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M chrome/test/automation/proxy_launcher.h View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/test/ui/ui_test.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Paweł Hajdan Jr.
Thank you, could you just fix the last issue? http://codereview.chromium.org/5967003/diff/206001/chrome/test/automation/automation_proxy_uitest.cc#newcode890
9 years, 11 months ago (2011-01-12 19:56:45 UTC) #1
dtu
Let me know if any other changes are needed. For this: launcher_.reset(CreateProxyLauncher()); I mentioned it ...
9 years, 11 months ago (2011-01-12 20:04:28 UTC) #2
Paweł Hajdan Jr.
On 2011/01/12 20:04:28, Dave Tu wrote: > Let me know if any other changes are ...
9 years, 11 months ago (2011-01-12 21:11:28 UTC) #3
dtu
Done.
9 years, 11 months ago (2011-01-12 21:23:39 UTC) #4
Paweł Hajdan Jr.
9 years, 11 months ago (2011-01-12 21:34:29 UTC) #5
LGTM with comments. Thank you for fixing all the review comments, I know it
wasn't easy.

Please also update the CL description to briefly describe the changes made here
and not just that it's a follow-up.

http://codereview.chromium.org/6111011/diff/6001/chrome/test/automation/autom...
File chrome/test/automation/automation_proxy_uitest.h (right):

http://codereview.chromium.org/6111011/diff/6001/chrome/test/automation/autom...
chrome/test/automation/automation_proxy_uitest.h:112: ExternalTabUITest() :
UITest(MessageLoop::TYPE_UI) {}
nit: Please keep the constructor's body in the .cc file, just remove the call to
CreateProxyLauncher. Decluttering headers helps with binary size and build time,
ask Elliot Glaysher (erg/eglaysher) for more info.

http://codereview.chromium.org/6111011/diff/6001/chrome/test/ui/ui_test.cc
File chrome/test/ui/ui_test.cc (right):

http://codereview.chromium.org/6111011/diff/6001/chrome/test/ui/ui_test.cc#ne...
chrome/test/ui/ui_test.cc:117: if (!launcher_.get())
nit: Add a comment above why this NULL-check is needed.

For example: Some tests (SessionRestore...) call SetUp multiple times.
ProxyLauncher should only be created once.
// TODO(phajdan.jr): Fix tests that abuse SetUp and remove this check.

Powered by Google App Engine
This is Rietveld 408576698