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

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

Issue 2578323004: cros: Fake implementation of DBUS biometrics client. (Closed)
Patch Set: Oopsies. 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/BUILD.gn ('k') | chromeos/dbus/biod/fake_biod_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/biod/biod_client.cc
diff --git a/chromeos/dbus/biod/biod_client.cc b/chromeos/dbus/biod/biod_client.cc
index 58e7a09abd539cd85b8bf7c0b235662884432149..5a77c18fdea6ae424d98a9be688f32859a6cfc43 100644
--- a/chromeos/dbus/biod/biod_client.cc
+++ b/chromeos/dbus/biod/biod_client.cc
@@ -8,6 +8,7 @@
#include "base/bind.h"
#include "base/macros.h"
+#include "chromeos/dbus/biod/fake_biod_client.h"
#include "dbus/bus.h"
#include "dbus/message.h"
#include "dbus/object_path.h"
@@ -356,8 +357,11 @@ BiodClient::BiodClient() {}
BiodClient::~BiodClient() {}
// static
-BiodClient* BiodClient::Create(DBusClientImplementationType /* type */) {
- return new BiodClientImpl();
+BiodClient* BiodClient::Create(DBusClientImplementationType type) {
+ if (type == REAL_DBUS_CLIENT_IMPLEMENTATION)
+ return new BiodClientImpl();
+ DCHECK_EQ(FAKE_DBUS_CLIENT_IMPLEMENTATION, type);
+ return new FakeBiodClient();
}
} // namespace chromeos
« no previous file with comments | « chromeos/BUILD.gn ('k') | chromeos/dbus/biod/fake_biod_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698