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 EXTENSIONS_BROWSER_API_SYSTEM_STORAGE_STORAGE_API_TEST_UTIL_H_
6 #define EXTENSIONS_BROWSER_API_SYSTEM_STORAGE_STORAGE_API_TEST_UTIL_H_
10 #include "components/storage_monitor/storage_info.h"
11 #include "extensions/browser/api/system_storage/storage_info_provider.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 storage_monitor::StorageInfo
BuildStorageInfoFromTestStorageUnitInfo(
28 const TestStorageUnitInfo
& unit
);
31 } // namespace extensions
33 #endif // EXTENSIONS_BROWSER_API_SYSTEM_STORAGE_STORAGE_API_TEST_UTIL_H_