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

Issue 149345: Adding a non-templatized version of QI for times when the IID and type aren't... (Closed)

Created:
11 years, 5 months ago by tommi (sloooow) - chröme
Modified:
9 years, 7 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews_googlegroups.com, brettw
Visibility:
Public.

Description

Adding a non-templatized version of QI for times when the IID and type aren't associated. Also fixing the ScopedComPtrVector unit test. The problem with the test was that it expected AddRef to be called twice and Release() once when pushing a pointer to the vector. However that only happens when a push causes a reallocation. When there's no reallocation, there's only a single call to AddRef and no call to Release, causing the test to report failure. The fix is to simply use std::list instead and fix the expected values. TEST=Run *ScopedComPtr* unit tests. BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=20183

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -7 lines) Patch
M base/scoped_comptr_win.h View 1 chunk +7 lines, -0 lines 0 comments Download
M base/scoped_comptr_win_unittest.cc View 1 2 4 chunks +17 lines, -7 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
tommi (sloooow) - chröme
11 years, 5 months ago (2009-07-08 19:12:22 UTC) #1
M-A Ruel
lgtm http://codereview.chromium.org/149345/diff/5/7 File base/scoped_comptr_win_unittest.cc (right): http://codereview.chromium.org/149345/diff/5/7#newcode8 Line 8: #include "base/scoped_comptr_win.h" nit: Can you put this ...
11 years, 5 months ago (2009-07-08 19:15:10 UTC) #2
tommi (sloooow) - chröme
http://codereview.chromium.org/149345/diff/5/7 File base/scoped_comptr_win_unittest.cc (right): http://codereview.chromium.org/149345/diff/5/7#newcode8 Line 8: #include "base/scoped_comptr_win.h" On 2009/07/08 19:15:10, Marc-Antoine Ruel wrote: ...
11 years, 5 months ago (2009-07-08 19:36:33 UTC) #3
tommi (sloooow) - chröme
so, according to the buildbots, switching to list isn't enough<http://build.chromium.org/buildbot/try-server/builders/win/builds/9122/steps/base_unittests/logs/ScopedComPtrVector>so I'm just switching back to ...
11 years, 5 months ago (2009-07-08 19:41:35 UTC) #4
M-A Ruel
11 years, 5 months ago (2009-07-08 20:07:45 UTC) #5
lgtm

Powered by Google App Engine
This is Rietveld 408576698