Replacing the OVERRIDE with override and FINAL with final in /src/crypto
This step is a giant search and replace for OVERRIDE and FINAL to replace them with their lowercase versions. BUG=417463 Review URL: https://codereview.chromium.org/632653002 Cr-Commit-Position: refs/heads/master@{#298360}
This commit is contained in:
@ -17,10 +17,10 @@ class ECSignatureCreatorImpl : public ECSignatureCreator {
|
||||
|
||||
virtual bool Sign(const uint8* data,
|
||||
int data_len,
|
||||
std::vector<uint8>* signature) OVERRIDE;
|
||||
std::vector<uint8>* signature) override;
|
||||
|
||||
virtual bool DecodeSignature(const std::vector<uint8>& der_sig,
|
||||
std::vector<uint8>* out_raw_sig) OVERRIDE;
|
||||
std::vector<uint8>* out_raw_sig) override;
|
||||
|
||||
private:
|
||||
ECPrivateKey* key_;
|
||||
|
@ -40,9 +40,9 @@ class CRYPTO_EXPORT MockAppleKeychain : public AppleKeychain {
|
||||
const char* accountName,
|
||||
UInt32* passwordLength,
|
||||
void** passwordData,
|
||||
SecKeychainItemRef* itemRef) const OVERRIDE;
|
||||
SecKeychainItemRef* itemRef) const override;
|
||||
virtual OSStatus ItemFreeContent(SecKeychainAttributeList* attrList,
|
||||
void* data) const OVERRIDE;
|
||||
void* data) const override;
|
||||
virtual OSStatus AddGenericPassword(
|
||||
SecKeychainRef keychain,
|
||||
UInt32 serviceNameLength,
|
||||
@ -51,7 +51,7 @@ class CRYPTO_EXPORT MockAppleKeychain : public AppleKeychain {
|
||||
const char* accountName,
|
||||
UInt32 passwordLength,
|
||||
const void* passwordData,
|
||||
SecKeychainItemRef* itemRef) const OVERRIDE;
|
||||
SecKeychainItemRef* itemRef) const override;
|
||||
|
||||
#if !defined(OS_IOS)
|
||||
virtual OSStatus ItemCopyAttributesAndData(
|
||||
@ -60,23 +60,23 @@ class CRYPTO_EXPORT MockAppleKeychain : public AppleKeychain {
|
||||
SecItemClass* itemClass,
|
||||
SecKeychainAttributeList** attrList,
|
||||
UInt32* length,
|
||||
void** outData) const OVERRIDE;
|
||||
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;
|
||||
const void* data) const override;
|
||||
virtual OSStatus ItemFreeAttributesAndData(SecKeychainAttributeList* attrList,
|
||||
void* data) const OVERRIDE;
|
||||
virtual OSStatus ItemDelete(SecKeychainItemRef itemRef) const OVERRIDE;
|
||||
void* data) const override;
|
||||
virtual OSStatus ItemDelete(SecKeychainItemRef itemRef) const override;
|
||||
virtual OSStatus SearchCreateFromAttributes(
|
||||
CFTypeRef keychainOrArray,
|
||||
SecItemClass itemClass,
|
||||
const SecKeychainAttributeList* attrList,
|
||||
SecKeychainSearchRef* searchRef) const OVERRIDE;
|
||||
SecKeychainSearchRef* searchRef) const override;
|
||||
virtual OSStatus SearchCopyNext(SecKeychainSearchRef searchRef,
|
||||
SecKeychainItemRef* itemRef) const OVERRIDE;
|
||||
SecKeychainItemRef* itemRef) const override;
|
||||
// Pass "some.domain.com" as the serverName to get errSecDuplicateItem.
|
||||
virtual OSStatus AddInternetPassword(
|
||||
SecKeychainRef keychain,
|
||||
@ -91,8 +91,8 @@ class CRYPTO_EXPORT MockAppleKeychain : public AppleKeychain {
|
||||
SecAuthenticationType authenticationType,
|
||||
UInt32 passwordLength,
|
||||
const void* passwordData,
|
||||
SecKeychainItemRef* itemRef) const OVERRIDE;
|
||||
virtual void Free(CFTypeRef ref) const OVERRIDE;
|
||||
SecKeychainItemRef* itemRef) const override;
|
||||
virtual 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.
|
||||
|
@ -28,17 +28,17 @@ class SecureHashSHA256NSS : public SecureHash {
|
||||
}
|
||||
|
||||
// SecureHash implementation:
|
||||
virtual void Update(const void* input, size_t len) OVERRIDE {
|
||||
virtual void Update(const void* input, size_t len) override {
|
||||
SHA256_Update(&ctx_, static_cast<const unsigned char*>(input), len);
|
||||
}
|
||||
|
||||
virtual void Finish(void* output, size_t len) OVERRIDE {
|
||||
virtual void Finish(void* output, size_t len) override {
|
||||
SHA256_End(&ctx_, static_cast<unsigned char*>(output), NULL,
|
||||
static_cast<unsigned int>(len));
|
||||
}
|
||||
|
||||
virtual bool Serialize(Pickle* pickle) OVERRIDE;
|
||||
virtual bool Deserialize(PickleIterator* data_iterator) OVERRIDE;
|
||||
virtual bool Serialize(Pickle* pickle) override;
|
||||
virtual bool Deserialize(PickleIterator* data_iterator) override;
|
||||
|
||||
private:
|
||||
SHA256Context ctx_;
|
||||
|
@ -30,18 +30,18 @@ class SecureHashSHA256OpenSSL : public SecureHash {
|
||||
OPENSSL_cleanse(&ctx_, sizeof(ctx_));
|
||||
}
|
||||
|
||||
virtual void Update(const void* input, size_t len) OVERRIDE {
|
||||
virtual void Update(const void* input, size_t len) override {
|
||||
SHA256_Update(&ctx_, static_cast<const unsigned char*>(input), len);
|
||||
}
|
||||
|
||||
virtual void Finish(void* output, size_t len) OVERRIDE {
|
||||
virtual void Finish(void* output, size_t len) override {
|
||||
ScopedOpenSSLSafeSizeBuffer<SHA256_DIGEST_LENGTH> result(
|
||||
static_cast<unsigned char*>(output), len);
|
||||
SHA256_Final(result.safe_buffer(), &ctx_);
|
||||
}
|
||||
|
||||
virtual bool Serialize(Pickle* pickle) OVERRIDE;
|
||||
virtual bool Deserialize(PickleIterator* data_iterator) OVERRIDE;
|
||||
virtual bool Serialize(Pickle* pickle) override;
|
||||
virtual bool Deserialize(PickleIterator* data_iterator) override;
|
||||
|
||||
private:
|
||||
SHA256_CTX ctx_;
|
||||
|
Reference in New Issue
Block a user