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

Issue 2580003002: Follow-up fix for leaking mock object in AutoplayUmaHelperTest (Closed)

Created:
4 years ago by Zhiqiang Zhang (Slow)
Modified:
4 years ago
Reviewers:
whywhat
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Follow-up fix for leaking mock object in AutoplayUmaHelperTest A previous attempt for fixing AutoplayUmaHelperTest uses ::testing::Mock::VerifyAndClear to clean up the expectations on the mock. However it does not ignore the mock object to be leaked. This CL solves the issue by calling ::testing::Mock::AllowLeak in SetUp(). BUG=672831 Committed: https://crrev.com/99ac6d968116db3f8257044d3215fd222f9d7b81 Cr-Commit-Position: refs/heads/master@{#439205}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M third_party/WebKit/Source/core/html/AutoplayUmaHelperTest.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
Zhiqiang Zhang (Slow)
+avayvod@ to review since he reviewed the original CL +CC:mlamouri@ since there's a related test ...
4 years ago (2016-12-16 14:53:34 UTC) #4
whywhat
the object is not leaked, it should be GC-ed, right? how does leaking manifest itself ...
4 years ago (2016-12-16 16:05:38 UTC) #5
whywhat
ok, I guess gmock checks for the object to be destroyed anyway :/ I find ...
4 years ago (2016-12-16 16:11:32 UTC) #6
Zhiqiang Zhang (Slow)
On 2016/12/16 16:11:32, whywhat wrote: > ok, I guess gmock checks for the object to ...
4 years ago (2016-12-16 16:51:04 UTC) #9
Zhiqiang Zhang (Slow)
On 2016/12/16 16:51:04, Zhiqiang Zhang wrote: > On 2016/12/16 16:11:32, whywhat wrote: > > ok, ...
4 years ago (2016-12-16 16:52:47 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2580003002/1
4 years ago (2016-12-16 21:51:22 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-16 21:58:42 UTC) #15
commit-bot: I haz the power
4 years ago (2016-12-16 22:01:41 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/99ac6d968116db3f8257044d3215fd222f9d7b81
Cr-Commit-Position: refs/heads/master@{#439205}

Powered by Google App Engine
This is Rietveld 408576698