| OLD | NEW |
| 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/biod_client.h" | 5 #include "chromeos/dbus/biod/biod_client.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/message_loop/message_loop.h" |
| 11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 12 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 13 #include "chromeos/dbus/biod/messages.pb.h" | 14 #include "chromeos/dbus/biod/messages.pb.h" |
| 14 #include "chromeos/dbus/biod/test_utils.h" | 15 #include "chromeos/dbus/biod/test_utils.h" |
| 15 #include "dbus/mock_bus.h" | 16 #include "dbus/mock_bus.h" |
| 16 #include "dbus/mock_object_proxy.h" | 17 #include "dbus/mock_object_proxy.h" |
| 17 #include "dbus/object_path.h" | 18 #include "dbus/object_path.h" |
| 18 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 20 | 21 |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 client_->RemoveObserver(&observer); | 423 client_->RemoveObserver(&observer); |
| 423 | 424 |
| 424 EmitEnrollScanDoneSignal(scan_signal, enroll_session_complete, | 425 EmitEnrollScanDoneSignal(scan_signal, enroll_session_complete, |
| 425 percent_complete); | 426 percent_complete); |
| 426 EmitAuthScanDoneSignal(scan_signal, test_attempt); | 427 EmitAuthScanDoneSignal(scan_signal, test_attempt); |
| 427 EXPECT_EQ(1, observer.NumEnrollScansReceived()); | 428 EXPECT_EQ(1, observer.NumEnrollScansReceived()); |
| 428 EXPECT_EQ(1, observer.NumAuthScansReceived()); | 429 EXPECT_EQ(1, observer.NumAuthScansReceived()); |
| 429 EXPECT_EQ(1, observer.num_failures_received()); | 430 EXPECT_EQ(1, observer.num_failures_received()); |
| 430 } | 431 } |
| 431 } // namespace chromeos | 432 } // namespace chromeos |
| OLD | NEW |