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

Side by Side Diff: components/storage_monitor/test_storage_monitor_win.cc

Issue 1250713002: Fix pointer truncation in component_unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/storage_monitor/test_storage_monitor_win.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // TestStorageMonitorWin implementation. 5 // TestStorageMonitorWin implementation.
6 6
7 #include "components/storage_monitor/test_storage_monitor_win.h" 7 #include "components/storage_monitor/test_storage_monitor_win.h"
8 8
9 #include "components/storage_monitor/test_portable_device_watcher_win.h" 9 #include "components/storage_monitor/test_portable_device_watcher_win.h"
10 #include "components/storage_monitor/test_volume_mount_watcher_win.h" 10 #include "components/storage_monitor/test_volume_mount_watcher_win.h"
11 11
12 namespace storage_monitor { 12 namespace storage_monitor {
13 13
14 TestStorageMonitorWin::TestStorageMonitorWin( 14 TestStorageMonitorWin::TestStorageMonitorWin(
15 TestVolumeMountWatcherWin* volume_mount_watcher, 15 TestVolumeMountWatcherWin* volume_mount_watcher,
16 TestPortableDeviceWatcherWin* portable_device_watcher) 16 TestPortableDeviceWatcherWin* portable_device_watcher)
17 : StorageMonitorWin(volume_mount_watcher, portable_device_watcher) { 17 : StorageMonitorWin(volume_mount_watcher, portable_device_watcher) {
18 DCHECK(volume_mount_watcher_); 18 DCHECK(volume_mount_watcher_);
19 DCHECK(portable_device_watcher); 19 DCHECK(portable_device_watcher);
20 } 20 }
21 21
22 TestStorageMonitorWin::~TestStorageMonitorWin() { 22 TestStorageMonitorWin::~TestStorageMonitorWin() {
23 } 23 }
24 24
25 void TestStorageMonitorWin::InjectDeviceChange(UINT event_type, DWORD data) { 25 void TestStorageMonitorWin::InjectDeviceChange(UINT event_type, LPARAM data) {
26 OnDeviceChange(event_type, data); 26 OnDeviceChange(event_type, data);
27 } 27 }
28 28
29 VolumeMountWatcherWin* 29 VolumeMountWatcherWin*
30 TestStorageMonitorWin::volume_mount_watcher() { 30 TestStorageMonitorWin::volume_mount_watcher() {
31 return volume_mount_watcher_.get(); 31 return volume_mount_watcher_.get();
32 } 32 }
33 33
34 StorageMonitor::Receiver* TestStorageMonitorWin::receiver() const { 34 StorageMonitor::Receiver* TestStorageMonitorWin::receiver() const {
35 return StorageMonitor::receiver(); 35 return StorageMonitor::receiver();
36 } 36 }
37 37
38 } // namespace storage_monitor 38 } // namespace storage_monitor
OLDNEW
« no previous file with comments | « components/storage_monitor/test_storage_monitor_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698