Index: chromeos/dbus/fake_biod_enroll_session_client.h |
diff --git a/chromeos/dbus/fake_biod_enroll_session_client.h b/chromeos/dbus/fake_biod_enroll_session_client.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dfe2c1140d6785ec557bcbfb33aed388cc6703e2 |
--- /dev/null |
+++ b/chromeos/dbus/fake_biod_enroll_session_client.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2017 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. |
+ |
+#ifndef CHROMEOS_DBUS_FAKE_BIOD_ENROLL_SESSION_CLIENT_H_ |
+#define CHROMEOS_DBUS_FAKE_BIOD_ENROLL_SESSION_CLIENT_H_ |
+ |
+#include "base/macros.h" |
+#include "base/memory/weak_ptr.h" |
+#include "chromeos/chromeos_export.h" |
+#include "chromeos/dbus/biod_enroll_session_client.h" |
+ |
+namespace chromeos { |
+ |
+class CHROMEOS_EXPORT FakeBiodEnrollSessionClient |
+ : public BiodEnrollSessionClient { |
+ public: |
+ FakeBiodEnrollSessionClient(); |
+ ~FakeBiodEnrollSessionClient() override; |
+ |
+ // BiodEnrollSessionClient overrides |
+ void Init(dbus::Bus* bus) override; |
+ void Cancel(const dbus::ObjectPath& enroll_session_path) override; |
+ |
+ private: |
+ // Note: This should remain the last member so it'll be destroyed and |
+ // invalidate its weak pointers before any other members are destroyed. |
+ base::WeakPtrFactory<FakeBiodEnrollSessionClient> weak_ptr_factory_; |
rkc
2017/03/21 00:01:32
Can we instead have this a protected member of Bio
sammiequon
2017/03/21 01:09:53
Removed this. Seems like it won't be needed.
|
+ |
+ DISALLOW_COPY_AND_ASSIGN(FakeBiodEnrollSessionClient); |
+}; |
+ |
+} // namespace chromeos |
+ |
+#endif // CHROMEOS_DBUS_FAKE_BIOD_ENROLL_SESSION_CLIENT_H_ |