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

Issue 6153003: Refactor install.cc into the work item parts and the non-work item parts. (Closed)

Created:
9 years, 11 months ago by robertshield
Modified:
9 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Refactor out of install.cc the set of functions that operate on a work item list for better testability. Write preliminary test framework for testing these functions. BUG=61609 TEST=setup_unittests.exe Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71473

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 62

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : PostMergeTest #

Patch Set 7 : PostMergeTest2 #

Patch Set 8 : PostMergeTest3AddingMissingFile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1255 lines, -763 lines) Patch
M chrome/chrome_installer.gypi View 1 2 3 4 5 6 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/installer/setup/chrome_frame_ready_mode.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/setup/install.h View 1 2 3 4 5 6 1 chunk +0 lines, -33 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 2 3 4 5 6 8 chunks +28 lines, -666 lines 0 comments Download
A chrome/installer/setup/install_worker.h View 1 2 3 4 5 1 chunk +98 lines, -0 lines 0 comments Download
A chrome/installer/setup/install_worker.cc View 1 2 3 4 5 1 chunk +872 lines, -0 lines 0 comments Download
A chrome/installer/setup/install_worker_unittest.cc View 1 2 3 4 1 chunk +205 lines, -0 lines 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/installation_state.h View 1 2 3 4 5 6 2 chunks +4 lines, -10 lines 0 comments Download
M chrome/installer/util/installation_state.cc View 1 2 3 4 5 6 2 chunks +0 lines, -16 lines 0 comments Download
M chrome/installer/util/installer_state.h View 1 2 3 4 5 6 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/installer/util/installer_state.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/installer/util/work_item_list.h View 1 2 3 4 5 6 3 chunks +33 lines, -31 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
robertshield
Please find herein an attempt at making a large part of the installer functionality unit ...
9 years, 11 months ago (2011-01-11 22:01:27 UTC) #1
grt (UTC plus 2)
Sweet! http://codereview.chromium.org/6153003/diff/16001/chrome/installer/setup/install_worker.h File chrome/installer/setup/install_worker.h (right): http://codereview.chromium.org/6153003/diff/16001/chrome/installer/setup/install_worker.h#newcode11 chrome/installer/setup/install_worker.h:11: #include <vector> http://codereview.chromium.org/6153003/diff/16001/chrome/installer/setup/install_worker.h#newcode13 chrome/installer/setup/install_worker.h:13: #include "base/version.h" Looks like ...
9 years, 11 months ago (2011-01-12 16:18:02 UTC) #2
erikwright (departed)
http://codereview.chromium.org/6153003/diff/16001/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): http://codereview.chromium.org/6153003/diff/16001/chrome/installer/setup/install_worker.cc#newcode67 chrome/installer/setup/install_worker.cc:67: I assume these are identical to the originals? http://codereview.chromium.org/6153003/diff/16001/chrome/installer/setup/install_worker.h ...
9 years, 11 months ago (2011-01-12 16:31:49 UTC) #3
amit
Nice incremental change and I like the way we can write tests now. LGTM as ...
9 years, 11 months ago (2011-01-12 17:41:22 UTC) #4
tommi (sloooow) - chröme
very nice! I agree with Erik and Amit on having a separate factory interface. http://codereview.chromium.org/6153003/diff/16001/chrome/installer/setup/install_worker.cc ...
9 years, 11 months ago (2011-01-12 19:02:49 UTC) #5
grt (UTC plus 2)
http://codereview.chromium.org/6153003/diff/16001/chrome/installer/util/installation_state.h File chrome/installer/util/installation_state.h (right): http://codereview.chromium.org/6153003/diff/16001/chrome/installer/util/installation_state.h#newcode58 chrome/installer/util/installation_state.h:58: // Caller does NOT assume ownership of returned pointer. ...
9 years, 11 months ago (2011-01-12 19:23:57 UTC) #6
tommi (sloooow) - chröme
thanks. I had a hunch I would be wrong about this :) On Wed, Jan ...
9 years, 11 months ago (2011-01-12 20:13:51 UTC) #7
robertshield
Thanks! PTAL http://codereview.chromium.org/6153003/diff/16001/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): http://codereview.chromium.org/6153003/diff/16001/chrome/installer/setup/install_worker.cc#newcode50 chrome/installer/setup/install_worker.cc:50: typedef BOOL (WINAPI *WOW_FUNC)(HANDLE, PBOOL); On 2011/01/12 ...
9 years, 11 months ago (2011-01-13 17:06:32 UTC) #8
grt (UTC plus 2)
lgtm! you rock, dude.
9 years, 11 months ago (2011-01-13 18:18:05 UTC) #9
tommi (sloooow) - chröme
lgtm!
9 years, 11 months ago (2011-01-13 18:29:20 UTC) #10
erikwright (departed)
9 years, 11 months ago (2011-01-13 19:42:05 UTC) #11
On 2011/01/13 18:29:20, tommi wrote:
> lgtm!

LGTM.

Powered by Google App Engine
This is Rietveld 408576698