| Index: chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc
|
| diff --git a/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc b/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc
|
| index 5219c167014e0bb8737eb9a89303788bba690a09..4867a5ef0919001ffa75a2c00688b5cf2fdd7c29 100644
|
| --- a/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc
|
| +++ b/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc
|
| @@ -212,10 +212,12 @@ class EPKPChallengeMachineKeyTest : public EPKPChallengeKeyTestBase {
|
| static const char kArgs[];
|
|
|
| EPKPChallengeMachineKeyTest()
|
| - : func_(new EPKPChallengeMachineKey(&mock_cryptohome_client_,
|
| - &mock_async_method_caller_,
|
| - &mock_attestation_flow_,
|
| - &stub_install_attributes_)) {
|
| + : impl_(&mock_cryptohome_client_,
|
| + &mock_async_method_caller_,
|
| + &mock_attestation_flow_,
|
| + &stub_install_attributes_),
|
| + func_(new EnterprisePlatformKeysPrivateChallengeMachineKeyFunction(
|
| + &impl_)) {
|
| func_->set_extension(extension_.get());
|
| }
|
|
|
| @@ -226,7 +228,8 @@ class EPKPChallengeMachineKeyTest : public EPKPChallengeKeyTestBase {
|
| error_code);
|
| }
|
|
|
| - scoped_refptr<EPKPChallengeMachineKey> func_;
|
| + EPKPChallengeMachineKey impl_;
|
| + scoped_refptr<EnterprisePlatformKeysPrivateChallengeMachineKeyFunction> func_;
|
| };
|
|
|
| // Base 64 encoding of 'challenge'.
|
| @@ -341,11 +344,13 @@ class EPKPChallengeUserKeyTest : public EPKPChallengeKeyTestBase {
|
| protected:
|
| static const char kArgs[];
|
|
|
| - EPKPChallengeUserKeyTest() :
|
| - func_(new EPKPChallengeUserKey(&mock_cryptohome_client_,
|
| - &mock_async_method_caller_,
|
| - &mock_attestation_flow_,
|
| - &stub_install_attributes_)) {
|
| + EPKPChallengeUserKeyTest()
|
| + : impl_(&mock_cryptohome_client_,
|
| + &mock_async_method_caller_,
|
| + &mock_attestation_flow_,
|
| + &stub_install_attributes_),
|
| + func_(
|
| + new EnterprisePlatformKeysPrivateChallengeUserKeyFunction(&impl_)) {
|
| func_->set_extension(extension_.get());
|
| }
|
|
|
| @@ -362,7 +367,8 @@ class EPKPChallengeUserKeyTest : public EPKPChallengeKeyTestBase {
|
| error_code);
|
| }
|
|
|
| - scoped_refptr<EPKPChallengeUserKey> func_;
|
| + EPKPChallengeUserKey impl_;
|
| + scoped_refptr<EnterprisePlatformKeysPrivateChallengeUserKeyFunction> func_;
|
| };
|
|
|
| // Base 64 encoding of 'challenge'
|
|
|