From 4ef65aa00fd3115f3e0be055ada784791f8b06a7 Mon Sep 17 00:00:00 2001 From: Ahson Khan Date: Wed, 7 Apr 2021 14:28:22 -0700 Subject: [PATCH] Add new header files to the simplified header and update tests. (#2070) * Add new header files to the simplifie header and update tests. * Add token credential options header to the simplified header * Simplify the test. --- sdk/core/azure-core/inc/azure/core.hpp | 3 +++ sdk/core/azure-core/test/ut/simplified_header.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/sdk/core/azure-core/inc/azure/core.hpp b/sdk/core/azure-core/inc/azure/core.hpp index ff99d47ba..97ff983f0 100644 --- a/sdk/core/azure-core/inc/azure/core.hpp +++ b/sdk/core/azure-core/inc/azure/core.hpp @@ -30,6 +30,7 @@ // azure/core/credentials #include "azure/core/credentials/credentials.hpp" +#include "azure/core/credentials/token_credential_options.hpp" // azure/core/cryptography #include "azure/core/cryptography/hash.hpp" @@ -39,6 +40,8 @@ // azure/core/http #include "azure/core/http/http.hpp" +#include "azure/core/http/http_status_code.hpp" +#include "azure/core/http/raw_response.hpp" #include "azure/core/http/transport.hpp" // azure/core/http/policies diff --git a/sdk/core/azure-core/test/ut/simplified_header.cpp b/sdk/core/azure-core/test/ut/simplified_header.cpp index f39c9996a..817b9781a 100644 --- a/sdk/core/azure-core/test/ut/simplified_header.cpp +++ b/sdk/core/azure-core/test/ut/simplified_header.cpp @@ -44,6 +44,8 @@ TEST(SimplifiedHeader, core) EXPECT_NO_THROW(Azure::Core::Uuid::CreateUuid()); EXPECT_NO_THROW(Azure::Core::RequestFailedException("foo")); EXPECT_NO_THROW(Azure::Core::OperationStatus("foo")); + EXPECT_NO_THROW(Azure::Core::Http::RawResponse(0, 0, Azure::Core::Http::HttpStatusCode::Ok, "")); + EXPECT_NO_THROW(Azure::Core::Credentials::TokenCredentialOptions()); { std::vector buffer(10);