summaryrefslogtreecommitdiff
path: root/chromium/extensions/browser/api/system_storage/storage_api_test_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/extensions/browser/api/system_storage/storage_api_test_util.h')
-rw-r--r--chromium/extensions/browser/api/system_storage/storage_api_test_util.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/chromium/extensions/browser/api/system_storage/storage_api_test_util.h b/chromium/extensions/browser/api/system_storage/storage_api_test_util.h
new file mode 100644
index 00000000000..a035906416c
--- /dev/null
+++ b/chromium/extensions/browser/api/system_storage/storage_api_test_util.h
@@ -0,0 +1,33 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef EXTENSIONS_BROWSER_API_SYSTEM_STORAGE_STORAGE_API_TEST_UTIL_H_
+#define EXTENSIONS_BROWSER_API_SYSTEM_STORAGE_STORAGE_API_TEST_UTIL_H_
+
+#include <vector>
+
+#include "components/storage_monitor/storage_info.h"
+#include "extensions/browser/api/system_storage/storage_info_provider.h"
+
+namespace extensions {
+namespace test {
+
+struct TestStorageUnitInfo {
+ const char* device_id;
+ const char* name;
+ // Total amount of the storage device space, in bytes.
+ double capacity;
+ // The available amount of the storage space, in bytes.
+ double available_capacity;
+};
+
+extern const struct TestStorageUnitInfo kRemovableStorageData;
+
+storage_monitor::StorageInfo BuildStorageInfoFromTestStorageUnitInfo(
+ const TestStorageUnitInfo& unit);
+
+} // namespace test
+} // namespace extensions
+
+#endif // EXTENSIONS_BROWSER_API_SYSTEM_STORAGE_STORAGE_API_TEST_UTIL_H_