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

Issue 7736001: Adding unit tests to RLZ code. Refactoring RLZ code to make it more testable. (Closed)

Created:
9 years, 4 months ago by Roger Tawa OOO till Jul 10th
Modified:
9 years, 3 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Adding unit tests to RLZ code. Refactoring RLZ code to make it more testable. There is one new functionality, which is to support the CHROME_HOME_PAGE access point, but in this CL that new function is disabled. However, it is unit tested. BUG=None TEST=See new unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98775

Patch Set 1 #

Patch Set 2 : Taking out dependence on PageTransition::HOME_PAGE. Will fix once home page feature is implemented #

Total comments: 2

Patch Set 3 : Set non-organic brand code in registry for testing purposes #

Patch Set 4 : Uploading any merged files after sync, no new changes #

Total comments: 22

Patch Set 5 : Addressing review comments #

Total comments: 2

Patch Set 6 : Uploading any merged files after sync, no new changes #

Patch Set 7 : '' #

Patch Set 8 : Removing all references to headless envvar #

Unified diffs Side-by-side diffs Delta from patch set Stats (+892 lines, -292 lines) Patch
M chrome/browser/browser_main.cc View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/rlz/rlz.h View 1 2 3 4 5 3 chunks +112 lines, -10 lines 0 comments Download
M chrome/browser/rlz/rlz.cc View 1 2 3 4 5 6 7 4 chunks +261 lines, -251 lines 0 comments Download
M chrome/browser/rlz/rlz_unittest.cc View 1 2 3 4 5 6 1 chunk +515 lines, -30 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Roger Tawa OOO till Jul 10th
9 years, 4 months ago (2011-08-24 21:28:53 UTC) #1
cpu_(ooo_6.6-7.5)
On 2011/08/24 21:28:53, Roger Tawa wrote: I am OOO today. I'll look at it tomorrow.
9 years, 4 months ago (2011-08-25 17:06:13 UTC) #2
Glenn Wilson
http://codereview.chromium.org/7736001/diff/6006/chrome/browser/rlz/rlz.cc File chrome/browser/rlz/rlz.cc (right): http://codereview.chromium.org/7736001/diff/6006/chrome/browser/rlz/rlz.cc#newcode186 chrome/browser/rlz/rlz.cc:186: registrar_.Add(this, chrome::NOTIFICATION_OMNIBOX_OPENED_URL, Do we know that NotificationService acts the ...
9 years, 4 months ago (2011-08-26 01:04:27 UTC) #3
Roger Tawa OOO till Jul 10th
Thanks Glenn. Have a good vacation! http://codereview.chromium.org/7736001/diff/6006/chrome/browser/rlz/rlz.cc File chrome/browser/rlz/rlz.cc (right): http://codereview.chromium.org/7736001/diff/6006/chrome/browser/rlz/rlz.cc#newcode186 chrome/browser/rlz/rlz.cc:186: registrar_.Add(this, chrome::NOTIFICATION_OMNIBOX_OPENED_URL, On ...
9 years, 4 months ago (2011-08-26 01:21:02 UTC) #4
cpu_(ooo_6.6-7.5)
Good job on the testing. See my comments so far: http://codereview.chromium.org/7736001/diff/13005/chrome/browser/rlz/rlz.h File chrome/browser/rlz/rlz.h (right): http://codereview.chromium.org/7736001/diff/13005/chrome/browser/rlz/rlz.h#newcode70 ...
9 years, 4 months ago (2011-08-26 21:37:51 UTC) #5
Roger Tawa OOO till Jul 10th
Thanks Carlos, addressed most comments. See below for more details. http://codereview.chromium.org/7736001/diff/13005/chrome/browser/rlz/rlz.h File chrome/browser/rlz/rlz.h (right): http://codereview.chromium.org/7736001/diff/13005/chrome/browser/rlz/rlz.h#newcode70 ...
9 years, 4 months ago (2011-08-27 02:00:05 UTC) #6
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/7736001/diff/13005/chrome/browser/rlz/rlz_unittest.cc File chrome/browser/rlz/rlz_unittest.cc (right): http://codereview.chromium.org/7736001/diff/13005/chrome/browser/rlz/rlz_unittest.cc#newcode73 chrome/browser/rlz/rlz_unittest.cc:73: EXPECT_PRED_FORMAT2(CmpHelperSTRNC, str, substr) On 2011/08/27 02:00:06, Roger Tawa wrote: ...
9 years, 3 months ago (2011-08-29 19:43:03 UTC) #7
cpu_(ooo_6.6-7.5)
lgtm http://codereview.chromium.org/7736001/diff/19001/chrome/browser/rlz/rlz.cc File chrome/browser/rlz/rlz.cc (right): http://codereview.chromium.org/7736001/diff/19001/chrome/browser/rlz/rlz.cc#newcode212 chrome/browser/rlz/rlz.cc:212: // because sometimes the very act of loading ...
9 years, 3 months ago (2011-08-29 19:51:30 UTC) #8
Roger Tawa OOO till Jul 10th
Tbanks Carlos. I will check with Pawel if the env var is still needed, and ...
9 years, 3 months ago (2011-08-29 19:53:35 UTC) #9
Roger Tawa OOO till Jul 10th
9 years, 3 months ago (2011-08-30 03:26:42 UTC) #10
http://codereview.chromium.org/7736001/diff/19001/chrome/browser/rlz/rlz.cc
File chrome/browser/rlz/rlz.cc (right):

http://codereview.chromium.org/7736001/diff/19001/chrome/browser/rlz/rlz.cc#n...
chrome/browser/rlz/rlz.cc:212: // because sometimes the very act of loading the
dll causes QEMU to crash.
On 2011/08/29 19:51:30, cpu wrote:
> I don't think this is true anymore. I believe you can remove this env var
test.

Done.

Powered by Google App Engine
This is Rietveld 408576698