Add ICU message format support
[chromium-blink-merge.git] / extensions / browser / api / system_storage / storage_api_test_util.cc
blobf06c3570d4bbd96397c075ca514d8d93cd434d32
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.
5 #include "extensions/browser/api/system_storage/storage_api_test_util.h"
7 #include "base/strings/utf_string_conversions.h"
9 namespace extensions {
10 namespace test {
12 const struct TestStorageUnitInfo kRemovableStorageData = {"dcim:device:001",
13 "/media/usb1",
14 4098,
15 1000};
17 storage_monitor::StorageInfo BuildStorageInfoFromTestStorageUnitInfo(
18 const TestStorageUnitInfo& unit) {
19 return storage_monitor::StorageInfo(
20 unit.device_id, 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);
27 } // namespace test
28 } // namespace extensions