Standardize header includes (#685)

* Standardize header includes

Update sources to match guidelines

- `#include ""` when file is relative to the project
- `#include <>` when file is external to the project

Updated tests to mirror how a customer will include the header

- `#include <>`
This commit is contained in:
Rick Winter 2020-09-25 10:56:06 -07:00 committed by GitHub
parent 1490f38953
commit d867d7e8ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 44 additions and 42 deletions

View File

@ -8,7 +8,8 @@
#pragma once
#include <azure/core/internal/contract.hpp>
#include "azure/core/internal/contract.hpp"
#include <string>
/**

View File

@ -8,8 +8,8 @@
#pragma once
#include <azure/core/credentials/credentials.hpp>
#include <azure/core/http/policy.hpp>
#include "azure/core/credentials/credentials.hpp"
#include "azure/core/http/policy.hpp"
#include <memory>
#include <mutex>
#include <string>

View File

@ -20,7 +20,7 @@
#include <Windows.h>
#endif // Windows
#include <azure/core/context.hpp>
#include "azure/core/context.hpp"
#include <algorithm>
#include <cstdint>

View File

@ -8,7 +8,7 @@
#pragma once
#include <azure/core/http/http.hpp>
#include "azure/core/http/http.hpp"
namespace Azure { namespace Core {
/**

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include <azure/core/context.hpp>
#include "azure/core/context.hpp"
using namespace Azure::Core;
using time_point = std::chrono::system_clock::time_point;

View File

@ -1,11 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include <azure/core/credentials/credentials.hpp>
#include <azure/core/http/body_stream.hpp>
#include <azure/core/http/curl/curl.hpp>
#include <azure/core/http/http.hpp>
#include <azure/core/http/pipeline.hpp>
#include "azure/core/credentials/credentials.hpp"
#include "azure/core/http/body_stream.hpp"
#include "azure/core/http/curl/curl.hpp"
#include "azure/core/http/http.hpp"
#include "azure/core/http/pipeline.hpp"
#include <cstdlib>
#include <iomanip>

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include <azure/core/credentials/policy/policies.hpp>
#include "azure/core/credentials/policy/policies.hpp"
using namespace Azure::Core::Credentials::Policy;

View File

@ -12,8 +12,8 @@
#include <Windows.h>
#endif // Windows
#include <azure/core/context.hpp>
#include <azure/core/http/body_stream.hpp>
#include "azure/core/context.hpp"
#include "azure/core/http/body_stream.hpp"
#include <algorithm>
#include <cstdint>

View File

@ -1,8 +1,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include <azure/core/http/policy.hpp>
#include <azure/core/internal/log.hpp>
#include "azure/core/http/policy.hpp"
#include "azure/core/internal/log.hpp"
#include <chrono>
#include <sstream>

View File

@ -1,8 +1,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include <azure/core/http/http.hpp>
#include <azure/core/http/policy.hpp>
#include "azure/core/http/http.hpp"
#include "azure/core/http/policy.hpp"
using namespace Azure::Core::Http;

View File

@ -1,8 +1,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include <azure/core/azure.hpp>
#include <azure/core/http/http.hpp>
#include "azure/core/azure.hpp"
#include "azure/core/http/http.hpp"
#include <cctype>
#include <map>

View File

@ -1,8 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include <azure/core/azure.hpp>
#include <azure/core/http/http.hpp>
#include "azure/core/azure.hpp"
#include "azure/core/http/http.hpp"
#include <map>
#include <string>
#include <vector>

View File

@ -1,9 +1,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include <azure/core/http/policy.hpp>
#include <azure/core/internal/log.hpp>
#include "azure/core/http/policy.hpp"
#include "azure/core/internal/log.hpp"
#include <algorithm>
#include <cstdlib>

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include <azure/core/http/policy.hpp>
#include "azure/core/http/policy.hpp"
#include <sstream>

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include <azure/core/http/policy.hpp>
#include "azure/core/http/policy.hpp"
using namespace Azure::Core::Http;

View File

@ -1,8 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include "azure/core/azure.hpp"
#include <algorithm>
#include <azure/core/azure.hpp>
namespace {
// The locale invariant case table is generated with the following program

View File

@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include "azure/core/http/curl/curl.hpp"
#include "azure/core/http/http.hpp"
#include "azure/core/http/pipeline.hpp"
#include <azure/core/http/curl/curl.hpp>
#include <azure/core/http/http.hpp>
#include <azure/core/http/pipeline.hpp>
#include <array>
#include <iostream>

View File

@ -5,9 +5,9 @@
#define _CRT_SECURE_NO_WARNINGS
#endif
#include "azure/core/http/curl/curl.hpp"
#include "azure/core/http/http.hpp"
#include "azure/core/http/pipeline.hpp"
#include <azure/core/http/curl/curl.hpp>
#include <azure/core/http/http.hpp>
#include <azure/core/http/pipeline.hpp>
#include <array>
#include <iostream>

View File

@ -6,7 +6,7 @@
*
*/
#include "azure/core/http/pipeline.hpp"
#include <azure/core/http/pipeline.hpp>
#ifdef POSIX
#include <fcntl.h>

View File

@ -7,7 +7,7 @@
*
*/
#include "azure/core/http/pipeline.hpp"
#include <azure/core/http/pipeline.hpp>
#include <azure/core/http/curl/curl.hpp>
#include <azure/core/http/http.hpp>

View File

@ -3,7 +3,7 @@
#include "gtest/gtest.h"
#include "azure/core/context.hpp"
#include <azure/core/context.hpp>
#include <chrono>
#include <memory>

View File

@ -3,7 +3,7 @@
#include "gtest/gtest.h"
#include "azure/core/http/http.hpp"
#include <azure/core/http/http.hpp>
#include "http.hpp"
#include <string>

View File

@ -3,7 +3,7 @@
#include "gtest/gtest.h"
#include "azure/core/http/http.hpp"
#include <azure/core/http/http.hpp>
namespace Azure { namespace Core { namespace Test {

View File

@ -11,7 +11,7 @@
#include <Windows.h>
#endif // Windows
#include "azure/core/http/http.hpp"
#include <azure/core/http/http.hpp>
#include "transport_adapter.hpp"

View File

@ -1,8 +1,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include <azure/template/template_client.hpp>
#include <azure/template/version.hpp>
#include "azure/template/template_client.hpp"
#include "azure/template/version.hpp"
#include <string>