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

Side by Side Diff: chrome/browser/system_monitor/test_removable_storage_notifications.cc

Issue 12147002: Add a receiver interface to RemovableStorageNotifications. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merging Created 7 years, 10 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "chrome/browser/system_monitor/test_removable_storage_notifications.h" 5 #include "chrome/browser/system_monitor/test_removable_storage_notifications.h"
6 6
7 namespace chrome { 7 namespace chrome {
8 namespace test { 8 namespace test {
9 9
10 TestRemovableStorageNotifications::TestRemovableStorageNotifications() 10 TestRemovableStorageNotifications::TestRemovableStorageNotifications()
(...skipping 14 matching lines...) Expand all
25 25
26 #if defined(OS_WIN) 26 #if defined(OS_WIN)
27 bool TestRemovableStorageNotifications::GetMTPStorageInfoFromDeviceId( 27 bool TestRemovableStorageNotifications::GetMTPStorageInfoFromDeviceId(
28 const std::string& storage_device_id, 28 const std::string& storage_device_id,
29 string16* device_location, 29 string16* device_location,
30 string16* storage_object_id) const { 30 string16* storage_object_id) const {
31 return false; 31 return false;
32 } 32 }
33 #endif 33 #endif
34 34
35 void TestRemovableStorageNotifications::ProcessAttach(
36 const std::string& id,
37 const string16& name,
38 const FilePath::StringType& location) {
39 receiver()->ProcessAttach(id, name, location);
40 }
41
42 void TestRemovableStorageNotifications::ProcessDetach(const std::string& id) {
43 receiver()->ProcessDetach(id);
44 }
45
46 RemovableStorageNotifications::Receiver*
47 TestRemovableStorageNotifications::receiver() const {
48 return RemovableStorageNotifications::receiver();
49 }
50
35 } // namespace test 51 } // namespace test
36 } // namespace chrome 52 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698