Move ValuePolicy from Details namespace to Internal (#1494)

Follow up on #1458.
This commit is contained in:
Anton Kolesnyk 2021-01-27 11:29:20 -08:00 committed by GitHub
parent aeb386f286
commit a2bfa7acf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -421,7 +421,7 @@ namespace Azure { namespace Core { namespace Http {
static constexpr auto const HttpTransportAdapter = Classification(4);
};
namespace Details {
namespace Internal {
/**
* @brief @ValuePolicy options.
*/
@ -474,5 +474,5 @@ namespace Azure { namespace Core { namespace Http {
return nextHttpPolicy.Send(ctx, request);
}
};
} // namespace Details
} // namespace Internal
}}} // namespace Azure::Core::Http

View File

@ -68,12 +68,12 @@ TEST(Policy, ValuePolicy)
using namespace Azure::Core;
using namespace Azure::Core::Http;
Azure::Core::Http::Details::ValuePolicyOptions options
Azure::Core::Http::Internal::ValuePolicyOptions options
= {{{"hdrkey1", "HdrVal1"}, {"hdrkey2", "HdrVal2"}},
{{"QryKey1", "QryVal1"}, {"QryKey2", "QryVal2"}}};
std::vector<std::unique_ptr<HttpPolicy>> policies;
policies.emplace_back(std::make_unique<Azure::Core::Http::Details::ValuePolicy>(options));
policies.emplace_back(std::make_unique<Azure::Core::Http::Internal::ValuePolicy>(options));
policies.emplace_back(std::make_unique<NoOpPolicy>());
HttpPipeline pipeline(policies);