- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / extensions / api / system_storage / storage_api_test_util.cc
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 StorageInfo BuildStorageInfoFromTestStorageUnitInfo(
17     const TestStorageUnitInfo& unit) {
18   return StorageInfo(
19       unit.device_id,
20       UTF8ToUTF16(unit.name),
21       base::FilePath::StringType(), /* no location */
22       string16(), /* no storage label */
23       string16(), /* no storage vendor */
24       string16(), /* no storage model */
25       unit.capacity);
26 }
27
28 }  // namespace test
29 }  // namespace extensions