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

Issue 12912013: Storage Monitor Linux: Do not try to initialize MediaTransferProtocolManager during unit tests. (Closed)

Created:
7 years, 9 months ago by Lei Zhang
Modified:
7 years, 8 months ago
Reviewers:
Greg Billock
CC:
chromium-reviews
Visibility:
Public.

Description

Storage Monitor Linux: Do not try to initialize MediaTransferProtocolManager during unit tests.

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M chrome/browser/storage_monitor/storage_monitor_linux.h View 1 chunk +3 lines, -0 lines 1 comment Download
M chrome/browser/storage_monitor/storage_monitor_linux.cc View 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/storage_monitor/storage_monitor_linux_unittest.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Lei Zhang
7 years, 9 months ago (2013-03-25 23:21:46 UTC) #1
Greg Billock
https://codereview.chromium.org/12912013/diff/1/chrome/browser/storage_monitor/storage_monitor_linux.h File chrome/browser/storage_monitor/storage_monitor_linux.h (right): https://codereview.chromium.org/12912013/diff/1/chrome/browser/storage_monitor/storage_monitor_linux.h#newcode109 chrome/browser/storage_monitor/storage_monitor_linux.h:109: virtual bool IsRunningTest() const; Instead of this, can we ...
7 years, 9 months ago (2013-03-26 16:03:43 UTC) #2
Lei Zhang
On 2013/03/26 16:03:43, Greg Billock wrote: > https://codereview.chromium.org/12912013/diff/1/chrome/browser/storage_monitor/storage_monitor_linux.h > File chrome/browser/storage_monitor/storage_monitor_linux.h (right): > > https://codereview.chromium.org/12912013/diff/1/chrome/browser/storage_monitor/storage_monitor_linux.h#newcode109 ...
7 years, 9 months ago (2013-03-26 18:32:00 UTC) #3
Greg Billock
On 2013/03/26 18:32:00, Lei Zhang wrote: > On 2013/03/26 16:03:43, Greg Billock wrote: > > ...
7 years, 9 months ago (2013-03-27 15:48:43 UTC) #4
Lei Zhang
7 years, 9 months ago (2013-03-28 22:41:40 UTC) #5
On 2013/03/27 15:48:43, Greg Billock wrote:
> Right. So instead of overriding IsRunningTest(), override StartupMTPManager()
> and ShutdownMTPManager(). I think that's preferable to having test-only
methods.

It's not possible as is, since MTPManager's Init/Shutdown are static methods.
There's also a weird problem where the shutdown task isn't getting a chance to
run. I'll get back to you on this...

Powered by Google App Engine
This is Rietveld 408576698