Prefix interal macros with _azure_ to 'remove' them from the public area (#5064)
* Prefix interal macros with _azure_ to 'remove' them from the public area * PR feedback --------- Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
parent
2b66182185
commit
15d8133a21
@ -12,7 +12,7 @@
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
|
||||
#ifdef azure_TESTING_BUILD_AMQP
|
||||
#ifdef _azure_TESTING_BUILD_AMQP
|
||||
namespace Azure { namespace Messaging { namespace EventHubs { namespace Test {
|
||||
class ProcessorTest_LoadBalancing_Test;
|
||||
}}}} // namespace Azure::Messaging::EventHubs::Test
|
||||
@ -80,7 +80,7 @@ namespace Azure { namespace Messaging { namespace EventHubs {
|
||||
* between multiple Processor instances, even in separate processes or on separate machines.
|
||||
*/
|
||||
class Processor final {
|
||||
#ifdef azure_TESTING_BUILD_AMQP
|
||||
#ifdef _azure_TESTING_BUILD_AMQP
|
||||
friend class Test::ProcessorTest_LoadBalancing_Test;
|
||||
#endif
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
|
||||
#include <chrono>
|
||||
|
||||
#ifdef azure_TESTING_BUILD_AMQP
|
||||
#ifdef _azure_TESTING_BUILD_AMQP
|
||||
namespace Azure { namespace Messaging { namespace EventHubs { namespace Test {
|
||||
class ProcessorLoadBalancerTest_Greedy_EnoughUnownedPartitions_Test;
|
||||
class ProcessorLoadBalancerTest_Balanced_UnownedPartitions_Test;
|
||||
@ -63,7 +63,7 @@ namespace Azure { namespace Messaging { namespace EventHubs { namespace _detail
|
||||
* between multiple Processor instances, even in separate processes or on separate machines.
|
||||
*/
|
||||
class ProcessorLoadBalancer final {
|
||||
#ifdef azure_TESTING_BUILD_AMQP
|
||||
#ifdef _azure_TESTING_BUILD_AMQP
|
||||
friend class Test::ProcessorLoadBalancerTest_Greedy_EnoughUnownedPartitions_Test;
|
||||
friend class Test::ProcessorLoadBalancerTest_Balanced_UnownedPartitions_Test;
|
||||
friend class Test::ProcessorLoadBalancerTest_Greedy_ForcedToSteal_Test;
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
#include <chrono>
|
||||
#include <functional>
|
||||
|
||||
#if defined(azure_TESTING_BUILD_AMQP)
|
||||
#if defined(_azure_TESTING_BUILD_AMQP)
|
||||
// Define the class used from tests to validate retry enabled
|
||||
namespace Azure { namespace Messaging { namespace EventHubs { namespace _internal { namespace Test {
|
||||
class RetryOperationTest_ShouldRetryTrue1_Test;
|
||||
@ -18,7 +18,7 @@ namespace Azure { namespace Messaging { namespace EventHubs { namespace _interna
|
||||
#endif
|
||||
namespace Azure { namespace Messaging { namespace EventHubs { namespace _detail {
|
||||
class RetryOperation {
|
||||
#if defined(azure_TESTING_BUILD_AMQP)
|
||||
#if defined(_azure_TESTING_BUILD_AMQP)
|
||||
// make tests classes friends to validate set Retry
|
||||
friend class Azure::Messaging::EventHubs::_internal::Test::
|
||||
RetryOperationTest_ShouldRetryTrue1_Test;
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
cmake_minimum_required (VERSION 3.13)
|
||||
|
||||
if(BUILD_TESTING)
|
||||
add_compile_definitions(azure_TESTING_BUILD_AMQP)
|
||||
add_compile_definitions(_azure_TESTING_BUILD_AMQP)
|
||||
if (NOT AZ_ALL_LIBRARIES OR FETCH_SOURCE_DEPS)
|
||||
include(AddGoogleTest)
|
||||
enable_testing ()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user