| OLD | NEW | 
|---|
| 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 18 matching lines...) Expand all  Loading... | 
| 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( | 35 void TestRemovableStorageNotifications::ProcessAttach( | 
| 36     const std::string& id, | 36     const std::string& id, | 
| 37     const string16& name, | 37     const string16& name, | 
| 38     const FilePath::StringType& location) { | 38     const FilePath::StringType& location) { | 
| 39   receiver()->ProcessAttach(id, name, location); | 39   receiver()->ProcessAttach(RemovableStorageNotifications::StorageInfo( | 
|  | 40       id, name, location)); | 
| 40 } | 41 } | 
| 41 | 42 | 
| 42 void TestRemovableStorageNotifications::ProcessDetach(const std::string& id) { | 43 void TestRemovableStorageNotifications::ProcessDetach(const std::string& id) { | 
| 43   receiver()->ProcessDetach(id); | 44   receiver()->ProcessDetach(id); | 
| 44 } | 45 } | 
| 45 | 46 | 
| 46 RemovableStorageNotifications::Receiver* | 47 RemovableStorageNotifications::Receiver* | 
| 47 TestRemovableStorageNotifications::receiver() const { | 48 TestRemovableStorageNotifications::receiver() const { | 
| 48   return RemovableStorageNotifications::receiver(); | 49   return RemovableStorageNotifications::receiver(); | 
| 49 } | 50 } | 
| 50 | 51 | 
| 51 }  // namespace test | 52 }  // namespace test | 
| 52 }  // namespace chrome | 53 }  // namespace chrome | 
| OLD | NEW | 
|---|