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

Side by Side Diff: chromeos/dbus/biod/test_utils.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_TEST_UTILS_H_ 5 #ifndef CHROMEOS_DBUS_BIOD_TEST_UTILS_H_
6 #define CHROMEOS_DBUS_BIOD_TEST_UTILS_H_ 6 #define CHROMEOS_DBUS_BIOD_TEST_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 57 }
58 58
59 int NumEnrollScansReceived() const; 59 int NumEnrollScansReceived() const;
60 int NumAuthScansReceived() const; 60 int NumAuthScansReceived() const;
61 61
62 void ResetAllCounts(); 62 void ResetAllCounts();
63 63
64 // BiodClient::Observer: 64 // BiodClient::Observer:
65 void BiodServiceRestarted() override; 65 void BiodServiceRestarted() override;
66 void BiodEnrollScanDoneReceived(biod::ScanResult scan_result, 66 void BiodEnrollScanDoneReceived(biod::ScanResult scan_result,
67 bool is_complete) override; 67 bool is_complete,
68 int32_t percent_complete) override;
68 void BiodAuthScanDoneReceived(biod::ScanResult scan_result, 69 void BiodAuthScanDoneReceived(biod::ScanResult scan_result,
69 const AuthScanMatches& matches) override; 70 const AuthScanMatches& matches) override;
70 void BiodSessionFailedReceived() override; 71 void BiodSessionFailedReceived() override;
71 72
72 private: 73 private:
73 int num_complete_enroll_scans_received_ = 0; 74 int num_complete_enroll_scans_received_ = 0;
74 int num_incomplete_enroll_scans_received_ = 0; 75 int num_incomplete_enroll_scans_received_ = 0;
75 int num_matched_auth_scans_received_ = 0; 76 int num_matched_auth_scans_received_ = 0;
76 int num_unmatched_auth_scans_received_ = 0; 77 int num_unmatched_auth_scans_received_ = 0;
77 int num_failures_received_ = 0; 78 int num_failures_received_ = 0;
78 79
79 // When auth scan is received, store the result. 80 // When auth scan is received, store the result.
80 AuthScanMatches last_auth_scan_matches_; 81 AuthScanMatches last_auth_scan_matches_;
81 82
82 DISALLOW_COPY_AND_ASSIGN(TestBiodObserver); 83 DISALLOW_COPY_AND_ASSIGN(TestBiodObserver);
83 }; 84 };
84 85
85 } // namespace test_utils 86 } // namespace test_utils
86 } // chromeos 87 } // chromeos
87 88
88 #endif // CHROMEOS_DBUS_BIOD_TEST_UTILS_H_ 89 #endif // CHROMEOS_DBUS_BIOD_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698