Skip to content

Conversation

@ahsonkhan
Copy link
Contributor

KeyClient is the only one that needs to be conditionally marked as final since KeyClientWithNoAuthenticationPolicy inherits from it in tests. The other clients can be marked final, out-right.

// A derived class with no credential and authentication
class KeyClientWithNoAuthenticationPolicy final
: public Azure::Security::KeyVault::Keys::KeyClient {
public:

Copy link
Member

@antkmsft antkmsft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ahsonkhan ahsonkhan enabled auto-merge (squash) March 1, 2024 06:24
@ahsonkhan ahsonkhan merged commit 2d8c940 into Azure:main Mar 1, 2024
@ahsonkhan ahsonkhan deleted the RemoveIfDef branch March 1, 2024 07:10
antkmsft added a commit to antkmsft/azure-sdk-for-cpp that referenced this pull request Mar 7, 2024
antkmsft added a commit that referenced this pull request Mar 7, 2024
…R_TESTS` (#5416)

* Revert "Remove the use of ifdef for TESTING_BUILD in KeyVault clients, where (#5406)"

This reverts commit 2d8c940.

* Revert "Rename the TESTING_BUILD macro to be _azure_TESTING_BUILD to highlight (#5390)"

This reverts commit 256c2df.

* Revert "Use new macros in existing surface area, so that classes marked as final don't have virtual methods. (#5389)"

This reverts commit 3d7eadd.

* Revert "For new surface area, classes marked as final should not have virtual methods. (#5331)"

This reverts commit ddd0f4b.

---------

Co-authored-by: Anton Kolesnyk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants