forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Crashpad to 3fae8ff07c097da6d0042510bdbe5b16c67a8e12
fbc365fa9ed5 GCC 7.2 support (-Wnoexcept-type) 2f481590112b Make crashpad_util_test build without warnings with clang- cl on Windows b96b9f627ee7 win: Use test::ErrorMessage() in test::ChildLauncher 52d766400da1 linux: ProcessReader can own ProcessMemoryLinux without unique_ptr 9bc5989125b8 crashpad_util_test warning fixes for clang-cl, 64-bit edition 34699d378b82 Create client data structures for typed Annotations 5e9ed4cb9f69 win: Dynamically disable WoW64 tests absent explicit 32-bit build output cb3aa9c4d8f3 DumpAndCrash in extended handler test in favor of debug break c49da9caef30 win: Expect uneven symbolic link support 1dae919b7e5a #include "base/logging.h" in client/annotation.h for DCHECK() ef262d1ee3c2 #include "build/build_config.h" where needed 672c87258912 Upstream crashpad_util_test-in-Chromium changes 692488a254c4 Un-disable WinMultiprocess-based tests in Chromium 3fae8ff07c09 win: Fix -Wsign-compare warnings produced by clang Change-Id: I4b1355afce8be5571af3582f7dd0057b5018d70f Bug: crashpad:204, crashpad:205 Reviewed-on: https://chromium-review.googlesource.com/742284 Commit-Queue: Mark Mentovai <mark@chromium.org> Reviewed-by: Scott Graham <scottmg@chromium.org> Cr-Commit-Position: refs/heads/master@{#512421}
- Loading branch information
1 parent
9b39004
commit a34342c
Showing
49 changed files
with
1,588 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright 2017 The Crashpad Authors. All rights reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#include "client/annotation.h" | ||
|
||
#include <type_traits> | ||
|
||
#include "client/annotation_list.h" | ||
|
||
namespace crashpad { | ||
|
||
static_assert(std::is_standard_layout<Annotation>::value, | ||
"Annotation must be POD"); | ||
|
||
// static | ||
constexpr size_t Annotation::kNameMaxLength; | ||
constexpr size_t Annotation::kValueMaxSize; | ||
|
||
void Annotation::SetSize(ValueSizeType size) { | ||
DCHECK_LT(size, kValueMaxSize); | ||
size_ = size; | ||
AnnotationList::Get()->Add(this); | ||
} | ||
|
||
void Annotation::Clear() { | ||
size_ = 0; | ||
} | ||
|
||
} // namespace crashpad |
Oops, something went wrong.