This source file includes following definitions.
- BuildStorageInfoFromTestStorageUnitInfo
#include "chrome/browser/extensions/api/system_storage/storage_api_test_util.h"
#include "base/strings/utf_string_conversions.h"
namespace extensions {
namespace test {
const struct TestStorageUnitInfo kRemovableStorageData = {
"dcim:device:001", "/media/usb1", 4098, 1000
};
storage_monitor::StorageInfo BuildStorageInfoFromTestStorageUnitInfo(
const TestStorageUnitInfo& unit) {
return storage_monitor::StorageInfo(
unit.device_id,
base::FilePath::StringType(),
base::UTF8ToUTF16(unit.name),
base::string16(),
base::string16(),
unit.capacity);
}
}
}