Skip to content

Commit

Permalink
Fix header guards in net/ and storage/.
Browse files Browse the repository at this point in the history
First generated mechanically as follows:

git ls-files '*.h' | grep -E '^(net|storage)/' | \
    xargs parallel cpplint.py --filter=-,+build/header_guard -- 2>&1 | \
    grep build/header_guard | tools/apply_cpplint_header_guard.py

Then manually fix the C-style comment in
net/quic/platform/impl/quic_stream_buffer_allocator_impl.h.

Bug: 1200694
Change-Id: I1b9ea2bf458846cad10400d3842e1f72aeb4a0f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2837630
Reviewed-by: David Benjamin <[email protected]>
Reviewed-by: Joshua Bell <[email protected]>
Commit-Queue: Lei Zhang <[email protected]>
Cr-Commit-Position: refs/heads/master@{#874817}
  • Loading branch information
leizleiz authored and Chromium LUCI CQ committed Apr 21, 2021
1 parent f9c31a2 commit 6436192
Showing 15 changed files with 29 additions and 30 deletions.
6 changes: 3 additions & 3 deletions net/cookies/cookie_store_change_unittest.h
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef NET_COOKIES_COOKIE_STORE_CHANGE_UNITTEST_H
#define NET_COOKIES_COOKIE_STORE_CHANGE_UNITTEST_H
#ifndef NET_COOKIES_COOKIE_STORE_CHANGE_UNITTEST_H_
#define NET_COOKIES_COOKIE_STORE_CHANGE_UNITTEST_H_

#include "base/bind.h"
#include "net/cookies/canonical_cookie.h"
@@ -2927,4 +2927,4 @@ REGISTER_TYPED_TEST_SUITE_P(CookieStoreChangeNamedTest,

} // namespace net

#endif // NET_COOKIES_COOKIE_STORE_CHANGE_UNITTEST_H
#endif // NET_COOKIES_COOKIE_STORE_CHANGE_UNITTEST_H_
2 changes: 1 addition & 1 deletion net/http2/platform/impl/http2_containers_impl.h
Original file line number Diff line number Diff line change
@@ -14,4 +14,4 @@ using Http2DequeImpl = base::circular_deque<T>;

}

#endif /* NET_HTTP2_PLATFORM_IMPL_HTTP2_CONTAINERS_IMPL_H_ */
#endif // NET_HTTP2_PLATFORM_IMPL_HTTP2_CONTAINERS_IMPL_H_
6 changes: 3 additions & 3 deletions net/ntlm/ntlm.h
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@
// [1] https://msdn.microsoft.com/en-us/library/cc236621.aspx
// [2] http://davenport.sourceforge.net/ntlm.html

#ifndef NET_BASE_NTLM_H_
#define NET_BASE_NTLM_H_
#ifndef NET_NTLM_NTLM_H_
#define NET_NTLM_NTLM_H_

#include <stddef.h>
#include <stdint.h>
@@ -228,4 +228,4 @@ NET_EXPORT_PRIVATE std::vector<uint8_t> GenerateUpdatedTargetInfo(
} // namespace ntlm
} // namespace net

#endif // NET_BASE_NTLM_H_
#endif // NET_NTLM_NTLM_H_
6 changes: 3 additions & 3 deletions net/ntlm/ntlm_buffer_reader.h
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef NET_BASE_NTLM_BUFFER_READER_H_
#define NET_BASE_NTLM_BUFFER_READER_H_
#ifndef NET_NTLM_NTLM_BUFFER_READER_H_
#define NET_NTLM_NTLM_BUFFER_READER_H_

#include <stddef.h>
#include <stdint.h>
@@ -222,4 +222,4 @@ class NET_EXPORT_PRIVATE NtlmBufferReader {
} // namespace ntlm
} // namespace net

#endif // NET_BASE_NTLM_BUFFER_READER_H_
#endif // NET_NTLM_NTLM_BUFFER_READER_H_
6 changes: 3 additions & 3 deletions net/ntlm/ntlm_buffer_writer.h
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef NET_BASE_NTLM_BUFFER_WRITER_H_
#define NET_BASE_NTLM_BUFFER_WRITER_H_
#ifndef NET_NTLM_NTLM_BUFFER_WRITER_H_
#define NET_NTLM_NTLM_BUFFER_WRITER_H_

#include <stddef.h>
#include <stdint.h>
@@ -193,4 +193,4 @@ class NET_EXPORT_PRIVATE NtlmBufferWriter {
} // namespace ntlm
} // namespace net

#endif // NET_BASE_NTLM_BUFFER_WRITER_H_
#endif // NET_NTLM_NTLM_BUFFER_WRITER_H_
6 changes: 3 additions & 3 deletions net/ntlm/ntlm_client.h
Original file line number Diff line number Diff line change
@@ -11,8 +11,8 @@
// [3]
// https://blogs.msdn.microsoft.com/openspecification/2013/03/26/ntlm-and-channel-binding-hash-aka-extended-protection-for-authentication/

#ifndef NET_BASE_NTLM_CLIENT_H_
#define NET_BASE_NTLM_CLIENT_H_
#ifndef NET_NTLM_NTLM_CLIENT_H_
#define NET_NTLM_NTLM_CLIENT_H_

#include <stddef.h>
#include <stdint.h>
@@ -157,4 +157,4 @@ class NET_EXPORT_PRIVATE NtlmClient {
} // namespace ntlm
} // namespace net

#endif // NET_BASE_NTLM_CLIENT_H_
#endif // NET_NTLM_NTLM_CLIENT_H_
6 changes: 3 additions & 3 deletions net/ntlm/ntlm_test_data.h
Original file line number Diff line number Diff line change
@@ -13,8 +13,8 @@
// [2] https://blogs.msdn.microsoft.com/openspecification/2013/03/26/ntlm-and-
// channel-binding-hash-aka-extended-protection-for-authentication/

#ifndef NET_BASE_NTLM_TEST_DATA_H_
#define NET_BASE_NTLM_TEST_DATA_H_
#ifndef NET_NTLM_NTLM_TEST_DATA_H_
#define NET_NTLM_NTLM_TEST_DATA_H_

#include "net/ntlm/ntlm_constants.h"

@@ -570,4 +570,4 @@ constexpr uint8_t kExpectedAuthenticateMsgEmptyChannelBindingsV2[] = {
} // namespace ntlm
} // namespace net

#endif // NET_BASE_NTLM_TEST_DATA_H_
#endif // NET_NTLM_NTLM_TEST_DATA_H_
3 changes: 1 addition & 2 deletions net/quic/platform/impl/quic_stream_buffer_allocator_impl.h
Original file line number Diff line number Diff line change
@@ -13,5 +13,4 @@ using QuicStreamBufferAllocatorImpl = SimpleBufferAllocator;

} // namespace quic

#endif /* NET_QUIC_PLATFORM_IMPL_QUIC_STREAM_BUFFER_ALLOCATOR_IMPL_H_ \
*/
#endif // NET_QUIC_PLATFORM_IMPL_QUIC_STREAM_BUFFER_ALLOCATOR_IMPL_H_
2 changes: 1 addition & 1 deletion net/quic/quic_event_logger.h
Original file line number Diff line number Diff line change
@@ -121,4 +121,4 @@ class NET_EXPORT_PRIVATE QuicEventLogger

} // namespace net

#endif /* NET_QUIC_QUIC_EVENT_LOGGER_H_ */
#endif // NET_QUIC_QUIC_EVENT_LOGGER_H_
2 changes: 1 addition & 1 deletion net/quic/quic_session_key.h
Original file line number Diff line number Diff line change
@@ -79,4 +79,4 @@ class QUIC_EXPORT_PRIVATE QuicSessionKey {

} // namespace net

#endif // NET_QUIC_QUIC_SERVER_ID_H_
#endif // NET_QUIC_QUIC_SESSION_KEY_H_
6 changes: 3 additions & 3 deletions storage/browser/blob/blob_builder_from_stream.h
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef STORAGE_BROWSER_BLOB_BLOB_BUILDER_FROM_STREAM_H
#define STORAGE_BROWSER_BLOB_BLOB_BUILDER_FROM_STREAM_H
#ifndef STORAGE_BROWSER_BLOB_BLOB_BUILDER_FROM_STREAM_H_
#define STORAGE_BROWSER_BLOB_BLOB_BUILDER_FROM_STREAM_H_

#include "base/component_export.h"
#include "base/containers/queue.h"
@@ -168,4 +168,4 @@ class COMPONENT_EXPORT(STORAGE_BROWSER) BlobBuilderFromStream {

} // namespace storage

#endif // STORAGE_BROWSER_BLOB_BLOB_BUILDER_FROM_STREAM_H
#endif // STORAGE_BROWSER_BLOB_BLOB_BUILDER_FROM_STREAM_H_
2 changes: 1 addition & 1 deletion storage/browser/blob/mojo_blob_reader.h
Original file line number Diff line number Diff line change
@@ -135,4 +135,4 @@ class COMPONENT_EXPORT(STORAGE_BROWSER) MojoBlobReader {

} // namespace storage

#endif
#endif // STORAGE_BROWSER_BLOB_MOJO_BLOB_READER_H_
2 changes: 1 addition & 1 deletion storage/browser/quota/quota_callbacks.h
Original file line number Diff line number Diff line change
@@ -118,4 +118,4 @@ class CallbackQueueMap {

} // namespace storage

#endif // STORAGE_QUOTA_QUOTA_TYPES_H_
#endif // STORAGE_BROWSER_QUOTA_QUOTA_CALLBACKS_H_
2 changes: 1 addition & 1 deletion storage/browser/quota/quota_features.h
Original file line number Diff line number Diff line change
@@ -29,4 +29,4 @@ extern const base::FeatureParam<double> kShouldRemainAvailableRatio;

} // namespace storage

#endif // STORAGE_QUOTA_QUOTA_FEATURES_H_
#endif // STORAGE_BROWSER_QUOTA_QUOTA_FEATURES_H_
2 changes: 1 addition & 1 deletion storage/browser/quota/quota_override_handle.h
Original file line number Diff line number Diff line change
@@ -53,4 +53,4 @@ class COMPONENT_EXPORT(STORAGE_BROWSER) QuotaOverrideHandle {

} // namespace storage

#endif // STORAGE_BROWSER_QUOTA_QUOTA_OVERRIDE_HANDLE_
#endif // STORAGE_BROWSER_QUOTA_QUOTA_OVERRIDE_HANDLE_H_

0 comments on commit 6436192

Please sign in to comment.