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 #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_ 7 8 #include <vector> 9 10 #include "chrome/browser/extensions/api/system_storage/storage_info_provider.h" 11 #include "components/storage_monitor/storage_info.h" 12 13 namespace extensions { 14 namespace test { 15 16 struct TestStorageUnitInfo { 17 const char* device_id; 18 const char* name; 19 // Total amount of the storage device space, in bytes. 20 double capacity; 21 // The available amount of the storage space, in bytes. 22 double available_capacity; 23 }; 24 25 extern const struct TestStorageUnitInfo kRemovableStorageData; 26 27 storage_monitor::StorageInfo BuildStorageInfoFromTestStorageUnitInfo( 28 const TestStorageUnitInfo& unit); 29 30 } // namespace test 31 } // namespace extensions 32 33 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_STORAGE_STORAGE_API_TEST_UTIL_H_ 34