OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/proximity_auth/messenger_impl.h" | 5 #include "components/proximity_auth/messenger_impl.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "components/cryptauth/remote_device.h" |
12 #include "components/proximity_auth/connection.h" | 13 #include "components/proximity_auth/connection.h" |
13 #include "components/proximity_auth/fake_connection.h" | 14 #include "components/proximity_auth/fake_connection.h" |
14 #include "components/proximity_auth/fake_secure_context.h" | 15 #include "components/proximity_auth/fake_secure_context.h" |
15 #include "components/proximity_auth/messenger_observer.h" | 16 #include "components/proximity_auth/messenger_observer.h" |
16 #include "components/proximity_auth/proximity_auth_test_util.h" | 17 #include "components/proximity_auth/proximity_auth_test_util.h" |
17 #include "components/proximity_auth/remote_device.h" | |
18 #include "components/proximity_auth/remote_status_update.h" | 18 #include "components/proximity_auth/remote_status_update.h" |
19 #include "components/proximity_auth/wire_message.h" | 19 #include "components/proximity_auth/wire_message.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
23 using testing::_; | 23 using testing::_; |
24 using testing::AllOf; | 24 using testing::AllOf; |
25 using testing::Eq; | 25 using testing::Eq; |
26 using testing::Field; | 26 using testing::Field; |
27 using testing::NiceMock; | 27 using testing::NiceMock; |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 "\"data\":\"YSB3aW5uZXIgaXMgeW91\"" | 432 "\"data\":\"YSB3aW5uZXIgaXMgeW91\"" |
433 "}, but encoded"); | 433 "}, but encoded"); |
434 | 434 |
435 // The unlock request should have remained buffered, and should only now be | 435 // The unlock request should have remained buffered, and should only now be |
436 // sent. | 436 // sent. |
437 EXPECT_CALL(observer, OnUnlockResponse(false)); | 437 EXPECT_CALL(observer, OnUnlockResponse(false)); |
438 messenger.GetFakeConnection()->FinishSendingMessageWithSuccess(false); | 438 messenger.GetFakeConnection()->FinishSendingMessageWithSuccess(false); |
439 } | 439 } |
440 | 440 |
441 } // namespace proximity_auth | 441 } // namespace proximity_auth |
OLD | NEW |