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

Unified Diff: chromeos/dbus/biod/fake_biod_client.cc

Issue 2799043007: CrOS: Add success/failure indicators for biod methods with no callback. (Closed)
Patch Set: Empty -> null. Created 3 years, 8 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/biod/fake_biod_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/biod/fake_biod_client.cc
diff --git a/chromeos/dbus/biod/fake_biod_client.cc b/chromeos/dbus/biod/fake_biod_client.cc
index 0ff6ab5d9cf9732bdd43d4da22f608e819f405e0..6eab8cea92a14e7dc369363ed6381d6671315edd 100644
--- a/chromeos/dbus/biod/fake_biod_client.cc
+++ b/chromeos/dbus/biod/fake_biod_client.cc
@@ -60,7 +60,10 @@ void FakeBiodClient::GetRecordsForUser(const std::string& /* user_id */,
FROM_HERE, base::Bind(callback, std::vector<dbus::ObjectPath>()));
}
-void FakeBiodClient::DestroyAllRecords() {}
+void FakeBiodClient::DestroyAllRecords(const VoidDBusMethodCallback& callback) {
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS));
+}
void FakeBiodClient::StartAuthSession(const ObjectPathCallback& callback) {
base::ThreadTaskRunnerHandle::Get()->PostTask(
@@ -74,15 +77,31 @@ void FakeBiodClient::RequestType(const BiometricTypeCallback& callback) {
}
void FakeBiodClient::CancelEnrollSession(
- const dbus::ObjectPath& /* enroll_session_path */) {}
+ const dbus::ObjectPath& /* enroll_session_path */,
+ const VoidDBusMethodCallback& callback) {
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS));
+}
void FakeBiodClient::EndAuthSession(
- const dbus::ObjectPath& /* auth_session_path */) {}
+ const dbus::ObjectPath& /* auth_session_path */,
+ const VoidDBusMethodCallback& callback) {
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS));
+}
void FakeBiodClient::SetRecordLabel(const dbus::ObjectPath& /* record_path */,
- const std::string& /* label */) {}
+ const std::string& /* label */,
+ const VoidDBusMethodCallback& callback) {
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS));
+}
-void FakeBiodClient::RemoveRecord(const dbus::ObjectPath& /* record_path */) {}
+void FakeBiodClient::RemoveRecord(const dbus::ObjectPath& /* record_path */,
+ const VoidDBusMethodCallback& callback) {
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS));
+}
void FakeBiodClient::RequestRecordLabel(
const dbus::ObjectPath& /* record_path */,
« no previous file with comments | « chromeos/dbus/biod/fake_biod_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698