| OLD | NEW |
| 1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
| 5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
| 6 // | 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // | 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 // See the License for the specific language governing permissions and | 12 // See the License for the specific language governing permissions and |
| 13 // limitations under the License. | 13 // limitations under the License. |
| 14 | 14 |
| 15 #include "minidump/minidump_exception_writer.h" | 15 #include "minidump/minidump_exception_writer.h" |
| 16 | 16 |
| 17 #include <dbghelp.h> | |
| 18 #include <stdint.h> | 17 #include <stdint.h> |
| 19 #include <sys/types.h> | 18 #include <sys/types.h> |
| 20 | 19 |
| 21 #include <string> | 20 #include <string> |
| 22 #include <vector> | 21 #include <vector> |
| 23 | 22 |
| 24 #include "gtest/gtest.h" | 23 #include "gtest/gtest.h" |
| 24 #include "minidump/crashpad_dbghelp.h" |
| 25 #include "minidump/minidump_context.h" | 25 #include "minidump/minidump_context.h" |
| 26 #include "minidump/minidump_context_writer.h" | 26 #include "minidump/minidump_context_writer.h" |
| 27 #include "minidump/minidump_extensions.h" | 27 #include "minidump/minidump_extensions.h" |
| 28 #include "minidump/minidump_file_writer.h" | 28 #include "minidump/minidump_file_writer.h" |
| 29 #include "minidump/minidump_thread_id_map.h" | 29 #include "minidump/minidump_thread_id_map.h" |
| 30 #include "minidump/test/minidump_context_test_util.h" | 30 #include "minidump/test/minidump_context_test_util.h" |
| 31 #include "minidump/test/minidump_file_writer_test_util.h" | 31 #include "minidump/test/minidump_file_writer_test_util.h" |
| 32 #include "minidump/test/minidump_writable_test_util.h" | 32 #include "minidump/test/minidump_writable_test_util.h" |
| 33 #include "snapshot/test/test_cpu_context.h" | 33 #include "snapshot/test/test_cpu_context.h" |
| 34 #include "snapshot/test/test_exception_snapshot.h" | 34 #include "snapshot/test/test_exception_snapshot.h" |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 MinidumpExceptionWriter exception_writer; | 267 MinidumpExceptionWriter exception_writer; |
| 268 std::vector<uint64_t> exception_information(EXCEPTION_MAXIMUM_PARAMETERS + 1, | 268 std::vector<uint64_t> exception_information(EXCEPTION_MAXIMUM_PARAMETERS + 1, |
| 269 0x5a5a5a5a5a5a5a5a); | 269 0x5a5a5a5a5a5a5a5a); |
| 270 ASSERT_DEATH(exception_writer.SetExceptionInformation(exception_information), | 270 ASSERT_DEATH(exception_writer.SetExceptionInformation(exception_information), |
| 271 "kMaxParameters"); | 271 "kMaxParameters"); |
| 272 } | 272 } |
| 273 | 273 |
| 274 } // namespace | 274 } // namespace |
| 275 } // namespace test | 275 } // namespace test |
| 276 } // namespace crashpad | 276 } // namespace crashpad |
| OLD | NEW |