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

Unified Diff: chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc

Issue 1685103003: Copy challenge*Key methods to enterprise.platformKeys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
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'

Powered by Google App Engine
This is Rietveld 408576698