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

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: Remove storage_info_provider_linux_unittest.cc in chrome_tests_unit.gypi 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..3cf7c30cb8525bb57a949c70d6981bdd09895917 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:"dcim:device:0004", location: "0xbeaf", type: "unknown", capacity: 4098,
availableCapacity: 1000, step: 0 },
- { id: "/home", type: "fixed", capacity: 4098,
+ { id:"path:device:002", location: "/home", type: "fixed", capacity: 4098,
availableCapacity: 1000, step: 10 },
- { id: "/data", type: "fixed", capacity: 10000,
+ { id:"path:device:003", location: "/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].location, units[i].location);
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