Move ValuePolicy from Details namespace to Internal (#1494)
Follow up on #1458.
This commit is contained in:
parent
aeb386f286
commit
a2bfa7acf1
@ -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
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user