1 // Copyright 2013 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "chrome/browser/extensions/api/system_storage/storage_api_test_util.h" 6 7 #include "base/strings/utf_string_conversions.h" 8 9 namespace extensions { 10 namespace test { 11 12 const struct TestStorageUnitInfo kRemovableStorageData = { 13 "dcim:device:001", "/media/usb1", 4098, 1000 14 }; 15 16 storage_monitor::StorageInfo BuildStorageInfoFromTestStorageUnitInfo( 17 const TestStorageUnitInfo& unit) { 18 return storage_monitor::StorageInfo( 19 unit.device_id, 20 base::FilePath::StringType(), /* no location */ 21 base::UTF8ToUTF16(unit.name), /* storage label */ 22 base::string16(), /* no storage vendor */ 23 base::string16(), /* no storage model */ 24 unit.capacity); 25 } 26 27 } // namespace test 28 } // namespace extensions 29