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, |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "minidump/minidump_memory_writer.h" | 26 #include "minidump/minidump_memory_writer.h" |
27 #include "minidump/minidump_file_writer.h" | 27 #include "minidump/minidump_file_writer.h" |
28 #include "minidump/minidump_thread_id_map.h" | 28 #include "minidump/minidump_thread_id_map.h" |
29 #include "minidump/test/minidump_context_test_util.h" | 29 #include "minidump/test/minidump_context_test_util.h" |
30 #include "minidump/test/minidump_memory_writer_test_util.h" | 30 #include "minidump/test/minidump_memory_writer_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_memory_snapshot.h" | 34 #include "snapshot/test/test_memory_snapshot.h" |
35 #include "snapshot/test/test_thread_snapshot.h" | 35 #include "snapshot/test/test_thread_snapshot.h" |
| 36 #include "test/gtest_death_check.h" |
36 #include "util/file/string_file.h" | 37 #include "util/file/string_file.h" |
37 #include "util/test/gtest_death_check.h" | |
38 | 38 |
39 namespace crashpad { | 39 namespace crashpad { |
40 namespace test { | 40 namespace test { |
41 namespace { | 41 namespace { |
42 | 42 |
43 // This returns the MINIDUMP_THREAD_LIST stream in |thread_list|. If | 43 // This returns the MINIDUMP_THREAD_LIST stream in |thread_list|. If |
44 // |memory_list| is not nullptr, a MINIDUMP_MEMORY_LIST stream is also expected | 44 // |memory_list| is not nullptr, a MINIDUMP_MEMORY_LIST stream is also expected |
45 // in |file_contents|, and that stream will be returned in |memory_list|. | 45 // in |file_contents|, and that stream will be returned in |memory_list|. |
46 void GetThreadListStream(const std::string& file_contents, | 46 void GetThreadListStream(const std::string& file_contents, |
47 const MINIDUMP_THREAD_LIST** thread_list, | 47 const MINIDUMP_THREAD_LIST** thread_list, |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 | 681 |
682 TEST(MinidumpThreadWriterDeathTest, InitializeFromSnapshot_NoContext) { | 682 TEST(MinidumpThreadWriterDeathTest, InitializeFromSnapshot_NoContext) { |
683 ASSERT_DEATH_CHECK( | 683 ASSERT_DEATH_CHECK( |
684 RunInitializeFromSnapshotTest<InitializeFromSnapshotNoContextTraits>( | 684 RunInitializeFromSnapshotTest<InitializeFromSnapshotNoContextTraits>( |
685 false), "context_"); | 685 false), "context_"); |
686 } | 686 } |
687 | 687 |
688 } // namespace | 688 } // namespace |
689 } // namespace test | 689 } // namespace test |
690 } // namespace crashpad | 690 } // namespace crashpad |
OLD | NEW |