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

Side by Side Diff: components/proximity_auth/mock_proximity_auth_client.h

Issue 1912433002: Convert //components/proximity_auth from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 8 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 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
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_
OLDNEW
« no previous file with comments | « components/proximity_auth/messenger_observer.h ('k') | components/proximity_auth/mock_proximity_auth_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698