| 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 #ifndef COMPONENTS_PROXIMITY_AUTH_MOCK_PROXIMITY_AUTH_CLIENT_H_ | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_MOCK_PROXIMITY_AUTH_CLIENT_H_ |
| 6 #define COMPONENTS_PROXIMITY_AUTH_MOCK_PROXIMITY_AUTH_CLIENT_H_ | 6 #define COMPONENTS_PROXIMITY_AUTH_MOCK_PROXIMITY_AUTH_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 const std::string& remote_public_key, | 35 const std::string& remote_public_key, |
| 36 const std::string& channel_binding_data, | 36 const std::string& channel_binding_data, |
| 37 base::Callback<void(const std::string& challenge)> callback)); | 37 base::Callback<void(const std::string& challenge)> callback)); |
| 38 MOCK_CONST_METHOD0(GetAuthenticatedUsername, std::string(void)); | 38 MOCK_CONST_METHOD0(GetAuthenticatedUsername, std::string(void)); |
| 39 MOCK_METHOD0(GetPrefService, PrefService*(void)); | 39 MOCK_METHOD0(GetPrefService, PrefService*(void)); |
| 40 MOCK_METHOD0(GetDeviceClassifier, cryptauth::DeviceClassifier(void)); | 40 MOCK_METHOD0(GetDeviceClassifier, cryptauth::DeviceClassifier(void)); |
| 41 MOCK_METHOD0(GetAccountId, std::string(void)); | 41 MOCK_METHOD0(GetAccountId, std::string(void)); |
| 42 MOCK_METHOD0(GetCryptAuthEnrollmentManager, | 42 MOCK_METHOD0(GetCryptAuthEnrollmentManager, |
| 43 CryptAuthEnrollmentManager*(void)); | 43 CryptAuthEnrollmentManager*(void)); |
| 44 MOCK_METHOD0(GetCryptAuthDeviceManager, CryptAuthDeviceManager*(void)); | 44 MOCK_METHOD0(GetCryptAuthDeviceManager, CryptAuthDeviceManager*(void)); |
| 45 scoped_ptr<SecureMessageDelegate> CreateSecureMessageDelegate() override; | 45 std::unique_ptr<SecureMessageDelegate> CreateSecureMessageDelegate() override; |
| 46 scoped_ptr<CryptAuthClientFactory> CreateCryptAuthClientFactory() override; | 46 std::unique_ptr<CryptAuthClientFactory> CreateCryptAuthClientFactory() |
| 47 override; |
| 47 | 48 |
| 48 // Proxy mock methods because implementation requires returning scoped_ptr. | 49 // Proxy mock methods because implementation requires returning scoped_ptr. |
| 49 MOCK_METHOD0(CreateSecureMessageDelegatePtr, SecureMessageDelegate*(void)); | 50 MOCK_METHOD0(CreateSecureMessageDelegatePtr, SecureMessageDelegate*(void)); |
| 50 MOCK_METHOD0(CreateCryptAuthClientFactoryPtr, CryptAuthClientFactory*(void)); | 51 MOCK_METHOD0(CreateCryptAuthClientFactoryPtr, CryptAuthClientFactory*(void)); |
| 51 | 52 |
| 52 private: | 53 private: |
| 53 DISALLOW_COPY_AND_ASSIGN(MockProximityAuthClient); | 54 DISALLOW_COPY_AND_ASSIGN(MockProximityAuthClient); |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 } // namespace proximity_auth | 57 } // namespace proximity_auth |
| 57 | 58 |
| 58 #endif // COMPONENTS_PROXIMITY_AUTH_MOCK_PROXIMITY_AUTH_CLIENT_H_ | 59 #endif // COMPONENTS_PROXIMITY_AUTH_MOCK_PROXIMITY_AUTH_CLIENT_H_ |
| OLD | NEW |