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 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYSTEM_STORAGE_STORAGE_API_TEST_UTIL_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_STORAGE_STORAGE_API_TEST_UTIL_H_
10 #include "chrome/browser/extensions/api/system_storage/storage_info_provider.h"
11 #include "chrome/browser/storage_monitor/storage_info.h"
13 namespace extensions {
16 struct TestStorageUnitInfo {
17 const char* device_id;
19 // Total amount of the storage device space, in bytes.
21 // The available amount of the storage space, in bytes.
22 double available_capacity;
25 extern const struct TestStorageUnitInfo kRemovableStorageData;
27 StorageInfo BuildStorageInfoFromTestStorageUnitInfo(
28 const TestStorageUnitInfo& unit);
31 } // namespace extensions
33 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_STORAGE_STORAGE_API_TEST_UTIL_H_