-
Notifications
You must be signed in to change notification settings - Fork 149
Revert commits related to _azure_BUILD_FOR_TESTING and _azure_*_FOR_TESTS
#5416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…, where (Azure#5406)" This reverts commit 2d8c940.
…highlight (Azure#5390)" This reverts commit 256c2df.
…ed as final don't have virtual methods. (Azure#5389)" This reverts commit 3d7eadd.
… virtual methods. (Azure#5331)" This reverts commit ddd0f4b.
|
/azp run cpp - core |
|
/azp run cpp - attestation |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run cpp - storage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run cpp - identity |
|
/azp run cpp - keyvault |
|
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run cpp - tables |
|
Azure Pipelines successfully started running 1 pipeline(s). |
sdk/keyvault/azure-security-keyvault-secrets/inc/azure/keyvault/secrets/secret_client.hpp
Show resolved
Hide resolved
LarryOsterman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably mark the changes we want to keep (like the AzureDoxygen.cmake changes).
|
@ahsonkhan, @LarryOsterman - I enumerated all things in this PR description, please comment if you think we should capture more. |
ahsonkhan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will try to bring most things back other than the conditional virtual. Other than that, the rest of it was improvements we'd want, imo.
Given a revert like this is cleaner, approving.
I encourage @ahsonkhan to re-apply some parts of it as soon as possible.
In my opinion, these were the good things:
Renaming
TESTING_BUILDto_azure_TESTING_BUILD. We can solve this by addingif(BUILD_TESTING) add_compile_definitions(_azure_TESTING_BUILD)in a centralized location, such asAzureGlobalCompileOptions.cmake/AddGoogleTest.cmake(or make a newcmakefile). Also, the existing#if defined/ #ifdef(_azure_TESTING_BUILD_AMQP)can be switched to#if defined(_azure_TESTING_BUILD)after that.All libraries having
_azure_TESTING_BUILDdefined when building the tests (Update remaining package CMakeLists.txt to include the_azure_TESTING_BUILDcompile definitions. #5414). If Item 1 above is done in a centralizedway, i.e. via
.cmakefile, this item should be automatically taken care of as well.Some testing
protecteds can be madeprivateunconditionally.For later:
Maybe drop "ifndef TESTING final". // BTW, for
test_hooks.hpp, should you end up creating one, I think,testing.hppwould be even better name, because the name implies we may put more testing-related stuff there in the future, the name is more generic.Maybe find a way to still drop
virtualandfinalfrom Doxygen; maybe from ApiView.Maybe think of the mocking support / exposing internal details or test hooks in another way / avoiding (so many) friend declarations (Think about good and consistent pattern for exposing some internal class details for unit tests #5147), and applying that pattern universally.