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

Side by Side Diff: chromeos/dbus/biod/fake_biod_client.h

Issue 2858003002: Roll src/third_party/cros_system_api/ c6eab9e4d..6139ae009 + API change (Closed)
Patch Set: Created 3 years, 7 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_DBUS_BIOD_FAKE_BIOD_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_BIOD_FAKE_BIOD_CLIENT_H_
6 #define CHROMEOS_DBUS_BIOD_FAKE_BIOD_CLIENT_H_ 6 #define CHROMEOS_DBUS_BIOD_FAKE_BIOD_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 22 matching lines...) Expand all
33 ~FakeBiodClient() override; 33 ~FakeBiodClient() override;
34 34
35 // Emulates the biod daemon by sending events which the daemon normally sends. 35 // Emulates the biod daemon by sending events which the daemon normally sends.
36 // Notifies |observers_| about various events. These will be used in tests. 36 // Notifies |observers_| about various events. These will be used in tests.
37 37
38 // Emulates a scan that occurs during enrolling a new fingerprint. 38 // Emulates a scan that occurs during enrolling a new fingerprint.
39 // |fingerprint| is the fake data of the finger as a string. If |is_complete| 39 // |fingerprint| is the fake data of the finger as a string. If |is_complete|
40 // is true the enroll session is finished, and the record is stored. 40 // is true the enroll session is finished, and the record is stored.
41 void SendEnrollScanDone(const std::string& fingerprint, 41 void SendEnrollScanDone(const std::string& fingerprint,
42 biod::ScanResult type_result, 42 biod::ScanResult type_result,
43 bool is_complete); 43 bool is_complete,
44 int32_t percent_complete);
44 // Emulates a scan that occurs during a authentication session. |fingerprint| 45 // Emulates a scan that occurs during a authentication session. |fingerprint|
45 // is a string which represents the finger, and will be compared with all the 46 // is a string which represents the finger, and will be compared with all the
46 // stored fingerprints. 47 // stored fingerprints.
47 void SendAuthScanDone(const std::string& fingerprint, 48 void SendAuthScanDone(const std::string& fingerprint,
48 biod::ScanResult type_result); 49 biod::ScanResult type_result);
49 void SendSessionFailed(); 50 void SendSessionFailed();
50 51
51 // Clears all stored and current records from the fake storage. 52 // Clears all stored and current records from the fake storage.
52 void Reset(); 53 void Reset();
53 54
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 FingerprintSession current_session_ = FingerprintSession::NONE; 103 FingerprintSession current_session_ = FingerprintSession::NONE;
103 104
104 base::ObserverList<Observer> observers_; 105 base::ObserverList<Observer> observers_;
105 106
106 DISALLOW_COPY_AND_ASSIGN(FakeBiodClient); 107 DISALLOW_COPY_AND_ASSIGN(FakeBiodClient);
107 }; 108 };
108 109
109 } // namespace chromeos 110 } // namespace chromeos
110 111
111 #endif // CHROMEOS_DBUS_BIOD_FAKE_BIOD_CLIENT_H_ 112 #endif // CHROMEOS_DBUS_BIOD_FAKE_BIOD_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698