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

Unified Diff: chrome/test/data/extensions/api_test/sync_file_system/get_usage_and_quota/test.js

Issue 11146034: Add GetUsageAndQuota() to Syncable API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mihai Review #2 Created 8 years, 2 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
« no previous file with comments | « chrome/test/data/extensions/api_test/sync_file_system/get_usage_and_quota/manifest.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/sync_file_system/get_usage_and_quota/test.js
diff --git a/chrome/test/data/extensions/api_test/sync_file_system/get_usage_and_quota/test.js b/chrome/test/data/extensions/api_test/sync_file_system/get_usage_and_quota/test.js
new file mode 100644
index 0000000000000000000000000000000000000000..4e164d4b18c06b84b8e74ba92189aa7ef23e455f
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/sync_file_system/get_usage_and_quota/test.js
@@ -0,0 +1,16 @@
+// Copyright (c) 2012 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.
+
+// TODO(calvinlo): Update test code after default quota is made const
+// (http://crbug.com/155488).
+chrome.test.runTests([
+ function getUsageAndQuota() {
+ chrome.syncFileSystem.getUsageAndQuota(
+ 'drive',
+ chrome.test.callbackPass(function(info) {
+ chrome.test.assertEq(0, info.usage);
+ chrome.test.assertEq(123456789, info.quota);
+ }));
+ }
+]);
« no previous file with comments | « chrome/test/data/extensions/api_test/sync_file_system/get_usage_and_quota/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698