OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/cryptauth/cryptauth_enroller_impl.h" | 5 #include "components/proximity_auth/cryptauth/cryptauth_enroller_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/macros.h" |
8 #include "components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h" | 9 #include "components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h" |
9 #include "components/proximity_auth/cryptauth/fake_secure_message_delegate.h" | 10 #include "components/proximity_auth/cryptauth/fake_secure_message_delegate.h" |
10 #include "components/proximity_auth/cryptauth/mock_cryptauth_client.h" | 11 #include "components/proximity_auth/cryptauth/mock_cryptauth_client.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
12 | 13 |
13 using ::testing::_; | 14 using ::testing::_; |
14 using ::testing::Return; | 15 using ::testing::Return; |
15 | 16 |
16 namespace proximity_auth { | 17 namespace proximity_auth { |
17 | 18 |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 EXPECT_FALSE(*enroller_result_); | 349 EXPECT_FALSE(*enroller_result_); |
349 } | 350 } |
350 | 351 |
351 TEST_F(ProximityAuthCryptAuthEnrollerTest, IncompleteDeviceInfo) { | 352 TEST_F(ProximityAuthCryptAuthEnrollerTest, IncompleteDeviceInfo) { |
352 StartEnroller(cryptauth::GcmDeviceInfo()); | 353 StartEnroller(cryptauth::GcmDeviceInfo()); |
353 ASSERT_TRUE(enroller_result_.get()); | 354 ASSERT_TRUE(enroller_result_.get()); |
354 EXPECT_FALSE(*enroller_result_); | 355 EXPECT_FALSE(*enroller_result_); |
355 } | 356 } |
356 | 357 |
357 } // namespace proximity_auth | 358 } // namespace proximity_auth |
OLD | NEW |