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

Side by Side Diff: chromeos/dbus/fake_biod_record_client.h

Issue 2578323004: cros: Fake implementation of DBUS biometrics client. (Closed)
Patch Set: Rebased to master. Created 3 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROMEOS_DBUS_FAKE_BIOD_RECORD_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_BIOD_RECORD_CLIENT_H_
7
8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h"
10 #include "chromeos/chromeos_export.h"
11 #include "chromeos/dbus/biod_record_client.h"
12
13 namespace chromeos {
14
15 class CHROMEOS_EXPORT FakeBiodRecordClient : public BiodRecordClient {
16 public:
17 FakeBiodRecordClient();
18 ~FakeBiodRecordClient() override;
19
20 // BiodRecordClient overrides
21 void Init(dbus::Bus* bus) override;
22 void SetLabel(const dbus::ObjectPath& record_path,
23 const std::string& label) override;
24 void Remove(const dbus::ObjectPath& record_path) override;
25 void GetLabel(const dbus::ObjectPath& record_path,
26 const StringCallback& callback) override;
27 std::string GetLabelBlocking(const dbus::ObjectPath& record_path) override;
28
29 private:
30 // Note: This should remain the last member so it'll be destroyed and
31 // invalidate its weak pointers before any other members are destroyed.
32 base::WeakPtrFactory<FakeBiodRecordClient> weak_ptr_factory_;
33
34 DISALLOW_COPY_AND_ASSIGN(FakeBiodRecordClient);
35 };
36
37 } // namespace chromeos
38
39 #endif // CHROMEOS_DBUS_FAKE_BIOD_RECORD_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698