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

Unified Diff: chromeos/dbus/fake_cryptohome_client.cc

Issue 2111043003: Storage manager: Show the disk usage of other users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo and the order of storage items. Created 4 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
« no previous file with comments | « chromeos/dbus/fake_cryptohome_client.h ('k') | chromeos/dbus/mock_cryptohome_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_cryptohome_client.cc
diff --git a/chromeos/dbus/fake_cryptohome_client.cc b/chromeos/dbus/fake_cryptohome_client.cc
index e7ca09a34794cf271539cd88263318ac3d80d1ae..1ec74fdbe3fafc50a73d9552e6ff2d17c978ea9f 100644
--- a/chromeos/dbus/fake_cryptohome_client.cc
+++ b/chromeos/dbus/fake_cryptohome_client.cc
@@ -105,6 +105,17 @@ void FakeCryptohomeClient::RenameCryptohome(
ReturnProtobufMethodCallback(reply, callback);
}
+void FakeCryptohomeClient::GetAccountDiskUsage(
+ const cryptohome::Identification& account_id,
+ const ProtobufMethodCallback& callback) {
+ cryptohome::BaseReply reply;
+ cryptohome::GetAccountDiskUsageReply* get_account_disk_usage_reply =
+ reply.MutableExtension(cryptohome::GetAccountDiskUsageReply::reply);
+ // Sets 100 MB as a fake usage.
+ get_account_disk_usage_reply->set_size(100 * 1024 * 1024);
+ ReturnProtobufMethodCallback(reply, callback);
+}
+
void FakeCryptohomeClient::GetSystemSalt(
const GetSystemSaltCallback& callback) {
base::ThreadTaskRunnerHandle::Get()->PostTask(
« no previous file with comments | « chromeos/dbus/fake_cryptohome_client.h ('k') | chromeos/dbus/mock_cryptohome_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698