summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2015-01-08 18:01:11 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-09 02:02:05 +0000
commit03b14436cff53ba44e535e2c5950f75a09bce9b9 (patch)
treefab8fa0dcbbecc54b10ea1b6b061a83d103235ad /crypto
parent7b1df224a957da8376e0ae71ab2d53dabf658b0a (diff)
downloadchromium_src-03b14436cff53ba44e535e2c5950f75a09bce9b9.zip
chromium_src-03b14436cff53ba44e535e2c5950f75a09bce9b9.tar.gz
chromium_src-03b14436cff53ba44e535e2c5950f75a09bce9b9.tar.bz2
Update {virtual,override,final} for crypto/ to follow C++11 style.
This patch was automatically generated using a variation of https://codereview.chromium.org/598073004 on a Mac build. BUG=417463 Review URL: https://codereview.chromium.org/817733003 Cr-Commit-Position: refs/heads/master@{#310664}
Diffstat (limited to 'crypto')
-rw-r--r--crypto/mock_apple_keychain.h105
1 files changed, 51 insertions, 54 deletions
diff --git a/crypto/mock_apple_keychain.h b/crypto/mock_apple_keychain.h
index d957316..28c77b8 100644
--- a/crypto/mock_apple_keychain.h
+++ b/crypto/mock_apple_keychain.h
@@ -29,70 +29,67 @@ namespace crypto {
class CRYPTO_EXPORT MockAppleKeychain : public AppleKeychain {
public:
MockAppleKeychain();
- virtual ~MockAppleKeychain();
+ ~MockAppleKeychain() override;
// AppleKeychain implementation.
- virtual OSStatus FindGenericPassword(
- CFTypeRef keychainOrArray,
- UInt32 serviceNameLength,
- const char* serviceName,
- UInt32 accountNameLength,
- const char* accountName,
- UInt32* passwordLength,
- void** passwordData,
- SecKeychainItemRef* itemRef) const override;
- virtual OSStatus ItemFreeContent(SecKeychainAttributeList* attrList,
- void* data) const override;
- virtual OSStatus AddGenericPassword(
- SecKeychainRef keychain,
- UInt32 serviceNameLength,
- const char* serviceName,
- UInt32 accountNameLength,
- const char* accountName,
- UInt32 passwordLength,
- const void* passwordData,
- SecKeychainItemRef* itemRef) const override;
+ OSStatus FindGenericPassword(CFTypeRef keychainOrArray,
+ UInt32 serviceNameLength,
+ const char* serviceName,
+ UInt32 accountNameLength,
+ const char* accountName,
+ UInt32* passwordLength,
+ void** passwordData,
+ SecKeychainItemRef* itemRef) const override;
+ OSStatus ItemFreeContent(SecKeychainAttributeList* attrList,
+ void* data) const override;
+ OSStatus AddGenericPassword(SecKeychainRef keychain,
+ UInt32 serviceNameLength,
+ const char* serviceName,
+ UInt32 accountNameLength,
+ const char* accountName,
+ UInt32 passwordLength,
+ const void* passwordData,
+ SecKeychainItemRef* itemRef) const override;
#if !defined(OS_IOS)
- virtual OSStatus ItemCopyAttributesAndData(
- SecKeychainItemRef itemRef,
- SecKeychainAttributeInfo* info,
- SecItemClass* itemClass,
- SecKeychainAttributeList** attrList,
- UInt32* length,
- void** outData) const override;
+ OSStatus ItemCopyAttributesAndData(SecKeychainItemRef itemRef,
+ SecKeychainAttributeInfo* info,
+ SecItemClass* itemClass,
+ SecKeychainAttributeList** attrList,
+ UInt32* length,
+ void** outData) const override;
// Pass "fail_me" as the data to get errSecAuthFailed.
- virtual OSStatus ItemModifyAttributesAndData(
- SecKeychainItemRef itemRef,
- const SecKeychainAttributeList* attrList,
- UInt32 length,
- const void* data) const override;
- virtual OSStatus ItemFreeAttributesAndData(SecKeychainAttributeList* attrList,
- void* data) const override;
- virtual OSStatus ItemDelete(SecKeychainItemRef itemRef) const override;
- virtual OSStatus SearchCreateFromAttributes(
+ OSStatus ItemModifyAttributesAndData(SecKeychainItemRef itemRef,
+ const SecKeychainAttributeList* attrList,
+ UInt32 length,
+ const void* data) const override;
+ OSStatus ItemFreeAttributesAndData(SecKeychainAttributeList* attrList,
+ void* data) const override;
+ OSStatus ItemDelete(SecKeychainItemRef itemRef) const override;
+ OSStatus SearchCreateFromAttributes(
CFTypeRef keychainOrArray,
SecItemClass itemClass,
const SecKeychainAttributeList* attrList,
SecKeychainSearchRef* searchRef) const override;
- virtual OSStatus SearchCopyNext(SecKeychainSearchRef searchRef,
- SecKeychainItemRef* itemRef) const override;
+ OSStatus SearchCopyNext(SecKeychainSearchRef searchRef,
+ SecKeychainItemRef* itemRef) const override;
// Pass "some.domain.com" as the serverName to get errSecDuplicateItem.
- virtual OSStatus AddInternetPassword(
- SecKeychainRef keychain,
- UInt32 serverNameLength,
- const char* serverName,
- UInt32 securityDomainLength,
- const char* securityDomain,
- UInt32 accountNameLength,
- const char* accountName,
- UInt32 pathLength, const char* path,
- UInt16 port, SecProtocolType protocol,
- SecAuthenticationType authenticationType,
- UInt32 passwordLength,
- const void* passwordData,
- SecKeychainItemRef* itemRef) const override;
- virtual void Free(CFTypeRef ref) const override;
+ OSStatus AddInternetPassword(SecKeychainRef keychain,
+ UInt32 serverNameLength,
+ const char* serverName,
+ UInt32 securityDomainLength,
+ const char* securityDomain,
+ UInt32 accountNameLength,
+ const char* accountName,
+ UInt32 pathLength,
+ const char* path,
+ UInt16 port,
+ SecProtocolType protocol,
+ SecAuthenticationType authenticationType,
+ UInt32 passwordLength,
+ const void* passwordData,
+ SecKeychainItemRef* itemRef) const override;
+ void Free(CFTypeRef ref) const override;
// Return the counts of objects returned by Create/Copy functions but never
// Free'd as they should have been.