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

Issue 2333983004: Add a mock class for DiskMountManagerObserver. disk_mount_manager_observer_unittests. (Closed)

Created:
4 years, 3 months ago by yamaguchi
Modified:
4 years, 3 months ago
Reviewers:
satorux1, fukino
CC:
chromium-reviews, oshima+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor disk_mount_manager_unittest by replacing gmock with a dedicated mock class of DiskMountManagerObserver. This change is based on https://codereview.chromium.org/2292473002/ which was once merged but reverted by https://codereview.chromium.org/2340433002/ BUG=641943 Committed: https://crrev.com/a07c4fb1ece6ee6c6a2170825208b1f873012a0a Cr-Commit-Position: refs/heads/master@{#418478}

Patch Set 1 : copy of 2292473002. #

Patch Set 2 : Delete the observer object in TearDown. #

Total comments: 2

Patch Set 3 : wrap with unique_ptr<> #

Patch Set 4 : Sync to head. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+401 lines, -220 lines) Patch
M chromeos/disks/disk_mount_manager_unittest.cc View 1 2 3 20 chunks +401 lines, -220 lines 1 comment Download

Messages

Total messages: 33 (21 generated)
yamaguchi
4 years, 3 months ago (2016-09-14 01:00:43 UTC) #8
satorux1
I forgot to notice with the original patch, but the patch description is outdated. Please ...
4 years, 3 months ago (2016-09-14 01:40:49 UTC) #10
satorux1
https://codereview.chromium.org/2333983004/diff/20001/chromeos/disks/disk_mount_manager_unittest.cc File chromeos/disks/disk_mount_manager_unittest.cc (right): https://codereview.chromium.org/2333983004/diff/20001/chromeos/disks/disk_mount_manager_unittest.cc#newcode435 chromeos/disks/disk_mount_manager_unittest.cc:435: delete(observer_); can we wrap observer_ std:unique_ptr<> instead?
4 years, 3 months ago (2016-09-14 01:41:59 UTC) #11
yamaguchi
Also updated the description. ptal. https://codereview.chromium.org/2333983004/diff/20001/chromeos/disks/disk_mount_manager_unittest.cc File chromeos/disks/disk_mount_manager_unittest.cc (right): https://codereview.chromium.org/2333983004/diff/20001/chromeos/disks/disk_mount_manager_unittest.cc#newcode435 chromeos/disks/disk_mount_manager_unittest.cc:435: delete(observer_); On 2016/09/14 01:41:59, ...
4 years, 3 months ago (2016-09-14 03:29:54 UTC) #19
satorux1
lgtm
4 years, 3 months ago (2016-09-14 03:53:26 UTC) #22
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/2333983004/60001
4 years, 3 months ago (2016-09-14 03:53:51 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-14 03:58:22 UTC) #26
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/a07c4fb1ece6ee6c6a2170825208b1f873012a0a Cr-Commit-Position: refs/heads/master@{#418478}
4 years, 3 months ago (2016-09-14 03:59:55 UTC) #28
stgao
FYI: this CL is causing test failures on waterfall. https://findit-for-me.appspot.com/waterfall/build-failure?url=https%3A%2F%2Fbuild.chromium.org%2Fp%2Fchromium.memory%2Fbuilders%2FLinux%2520Chromium%2520OS%2520ASan%2520LSan%2520Tests%2520%25281%2529%2Fbuilds%2F16138#
4 years, 3 months ago (2016-09-14 08:08:21 UTC) #29
yamaguchi
On 2016/09/14 08:08:21, stgao (slow) wrote: > FYI: this CL is causing test failures on ...
4 years, 3 months ago (2016-09-14 09:50:56 UTC) #30
yamaguchi
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2343593002/ by yamaguchi@chromium.org. ...
4 years, 3 months ago (2016-09-14 09:51:21 UTC) #31
fukino
4 years, 3 months ago (2016-09-15 03:15:00 UTC) #33
Message was sent while issue was closed.
https://codereview.chromium.org/2333983004/diff/60001/chromeos/disks/disk_mou...
File chromeos/disks/disk_mount_manager_unittest.cc (right):

https://codereview.chromium.org/2333983004/diff/60001/chromeos/disks/disk_mou...
chromeos/disks/disk_mount_manager_unittest.cc:165: struct ObserverEvent {
Virtual destructor should be required in this base class to delete the instance
of derived class.

Powered by Google App Engine
This is Rietveld 408576698