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

Issue 334016: First set of unittest fixes. Many more to come ;-)... (Closed)

Created:
11 years, 2 months ago by dmac
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org, John Grabowski, Erik does not do reviews, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

First set of unittest fixes. Many more to come ;-) TEST=run the unittests and watch them pass. BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30126

Patch Set 1 #

Total comments: 7

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -73 lines) Patch
M chrome/browser/cocoa/chrome_event_processing_window_unittest.mm View 6 chunks +14 lines, -13 lines 0 comments Download
M chrome/browser/cocoa/extension_shelf_controller_unittest.mm View 1 3 chunks +6 lines, -12 lines 0 comments Download
M chrome/browser/cocoa/find_bar_bridge_unittest.mm View 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/cocoa/infobar_gradient_view_unittest.mm View 1 1 chunk +7 lines, -21 lines 0 comments Download
M chrome/browser/cocoa/menu_button_unittest.mm View 1 2 chunks +8 lines, -22 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
dmac
First set of unittests that aren't bubbles or browsers.
11 years, 2 months ago (2009-10-24 00:23:16 UTC) #1
Scott Hess - ex-Googler
As I look at the TEST_VIEW stuff, I find myself wondering if it couldn't just ...
11 years, 2 months ago (2009-10-24 02:45:43 UTC) #2
dmac
On 2009/10/24 02:45:43, shess wrote: > As I look at the TEST_VIEW stuff, I find ...
11 years, 2 months ago (2009-10-24 23:12:19 UTC) #3
dmac
http://codereview.chromium.org/334016/diff/1/6 File chrome/browser/cocoa/extension_shelf_controller_unittest.mm (right): http://codereview.chromium.org/334016/diff/1/6#newcode32 Line 32: TEST_VIEW(ExtensionShelfControllerTest, [controller_ view]) On 2009/10/24 02:45:43, shess wrote: ...
11 years, 2 months ago (2009-10-24 23:12:33 UTC) #4
dmac
BTW this CL is going to fail on the Mac trybot until http://codereview.chromium.org/333017 gets submitted.
11 years, 2 months ago (2009-10-24 23:14:19 UTC) #5
pink (ping after 24hrs)
LGTM
11 years, 1 month ago (2009-10-26 14:46:06 UTC) #6
Mark Mentovai
LG™
11 years, 1 month ago (2009-10-26 14:48:37 UTC) #7
Scott Hess - ex-Googler
11 years, 1 month ago (2009-10-26 16:58:08 UTC) #8
lgtm

http://codereview.chromium.org/334016/diff/1/6
File chrome/browser/cocoa/extension_shelf_controller_unittest.mm (right):

http://codereview.chromium.org/334016/diff/1/6#newcode32
Line 32: TEST_VIEW(ExtensionShelfControllerTest, [controller_ view])
On 2009/10/24 23:12:33, dmac wrote:
> On 2009/10/24 02:45:43, shess wrote:
> > I don't like this.  Wasn't this defined to take a member variable as the
> second
> > parameter?
> 
> No need for it to be a member variable. It just had to be a view. I did call
it
> view_member_name in the macro, but it really just has to be a view.

For some reason, I was recalling TEST_VIEW as building
AddRemove##view_member_name.  Probably because I was thinking you could use it
with multiple views.  But I was wrong!  Feel free to send me a review where
"view_member_name" -> "view", if you care to :-).

Powered by Google App Engine
This is Rietveld 408576698