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

Side by Side Diff: chromeos/dbus/biod/test_utils.cc

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 #include "chromeos/dbus/biod/test_utils.h" 5 #include "chromeos/dbus/biod/test_utils.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "dbus/object_path.h" 8 #include "dbus/object_path.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 num_complete_enroll_scans_received_ = 0; 51 num_complete_enroll_scans_received_ = 0;
52 num_incomplete_enroll_scans_received_ = 0; 52 num_incomplete_enroll_scans_received_ = 0;
53 num_matched_auth_scans_received_ = 0; 53 num_matched_auth_scans_received_ = 0;
54 num_unmatched_auth_scans_received_ = 0; 54 num_unmatched_auth_scans_received_ = 0;
55 num_failures_received_ = 0; 55 num_failures_received_ = 0;
56 } 56 }
57 57
58 void TestBiodObserver::BiodServiceRestarted() {} 58 void TestBiodObserver::BiodServiceRestarted() {}
59 59
60 void TestBiodObserver::BiodEnrollScanDoneReceived(biod::ScanResult scan_result, 60 void TestBiodObserver::BiodEnrollScanDoneReceived(biod::ScanResult scan_result,
61 bool is_complete) { 61 bool is_complete,
62 int32_t percent_complete) {
62 is_complete ? num_complete_enroll_scans_received_++ 63 is_complete ? num_complete_enroll_scans_received_++
63 : num_incomplete_enroll_scans_received_++; 64 : num_incomplete_enroll_scans_received_++;
64 } 65 }
65 66
66 void TestBiodObserver::BiodAuthScanDoneReceived( 67 void TestBiodObserver::BiodAuthScanDoneReceived(
67 biod::ScanResult scan_result, 68 biod::ScanResult scan_result,
68 const AuthScanMatches& matches) { 69 const AuthScanMatches& matches) {
69 matches.empty() ? num_unmatched_auth_scans_received_++ 70 matches.empty() ? num_unmatched_auth_scans_received_++
70 : num_matched_auth_scans_received_++; 71 : num_matched_auth_scans_received_++;
71 last_auth_scan_matches_ = matches; 72 last_auth_scan_matches_ = matches;
72 } 73 }
73 74
74 void TestBiodObserver::BiodSessionFailedReceived() { 75 void TestBiodObserver::BiodSessionFailedReceived() {
75 num_failures_received_++; 76 num_failures_received_++;
76 } 77 }
77 78
78 } // namepsace test_utils 79 } // namepsace test_utils
79 } // namespace chromeos 80 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698