Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Unified Diff: chrome/test/data/extensions/api_test/systeminfo/storage/test_storage_api.js

Issue 16707002: [SystemInfo API] Rewrite storage info provider using storage monitor impl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments of jyasskin Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/systeminfo/storage/test_storage_api.js
diff --git a/chrome/test/data/extensions/api_test/systeminfo/storage/test_storage_api.js b/chrome/test/data/extensions/api_test/systeminfo/storage/test_storage_api.js
index e400206cc18813b99dfe4763be6020098ee88c53..42d6b53e56ebf6743bbb6b595c22f9a7b9ca0db5 100644
--- a/chrome/test/data/extensions/api_test/systeminfo/storage/test_storage_api.js
+++ b/chrome/test/data/extensions/api_test/systeminfo/storage/test_storage_api.js
@@ -8,11 +8,11 @@ chrome.systemInfo = chrome.experimental.systemInfo;
// Testing data should be the same as that in system_info_storage_apitest.cc
var testData = [
- { id: "0xbeaf", type: "unknown", capacity: 4098,
+ { id:"transient:0004", name: "0xbeaf", type: "unknown", capacity: 4098,
availableCapacity: 1000, step: 0 },
- { id: "/home", type: "fixed", capacity: 4098,
+ { id:"transient:002", name: "/home", type: "fixed", capacity: 4098,
availableCapacity: 1000, step: 10 },
- { id: "/data", type: "fixed", capacity: 10000,
+ { id:"transient:003", name: "/data", type: "fixed", capacity: 10000,
availableCapacity: 1000, step: 4097 }
];
@@ -22,6 +22,7 @@ chrome.test.runTests([
chrome.test.assertTrue(units.length == 3);
for (var i = 0; i < units.length; ++i) {
chrome.test.assertEq(testData[i].id, units[i].id);
+ chrome.test.assertEq(testData[i].name, units[i].name);
chrome.test.assertEq(testData[i].type, units[i].type);
chrome.test.assertEq(testData[i].capacity, units[i].capacity);
chrome.test.assertEq(testData[i].availableCapacity,

Powered by Google App Engine
This is Rietveld 408576698