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 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1107 &original_code_0, | 1107 &original_code_0, |
1108 &signal); | 1108 &signal); |
1109 | 1109 |
1110 EXPECT_EQ(test_data.exception, exception); | 1110 EXPECT_EQ(test_data.exception, exception); |
1111 EXPECT_EQ(test_data.original_code_0, original_code_0); | 1111 EXPECT_EQ(test_data.original_code_0, original_code_0); |
1112 EXPECT_EQ(test_data.signal, signal); | 1112 EXPECT_EQ(test_data.signal, signal); |
1113 } | 1113 } |
1114 | 1114 |
1115 // Now make sure that ExcCrashRecoverOriginalException() properly ignores | 1115 // Now make sure that ExcCrashRecoverOriginalException() properly ignores |
1116 // optional arguments. | 1116 // optional arguments. |
1117 COMPILE_ASSERT(arraysize(kTestData) >= 1, must_have_something_to_test); | 1117 static assert(arraysize(kTestData) >= 1, "must have something to test"); |
Mark Mentovai
2014/10/01 03:55:12
Missing underscore: static_assert. Same as in uuid
scottmg
2014/10/01 16:37:19
Done.
| |
1118 const TestData& test_data = kTestData[0]; | 1118 const TestData& test_data = kTestData[0]; |
1119 EXPECT_EQ(test_data.exception, | 1119 EXPECT_EQ(test_data.exception, |
1120 ExcCrashRecoverOriginalException(test_data.code_0, NULL, NULL)); | 1120 ExcCrashRecoverOriginalException(test_data.code_0, NULL, NULL)); |
1121 | 1121 |
1122 mach_exception_code_t original_code_0; | 1122 mach_exception_code_t original_code_0; |
1123 EXPECT_EQ(test_data.exception, | 1123 EXPECT_EQ(test_data.exception, |
1124 ExcCrashRecoverOriginalException( | 1124 ExcCrashRecoverOriginalException( |
1125 test_data.code_0, &original_code_0, NULL)); | 1125 test_data.code_0, &original_code_0, NULL)); |
1126 EXPECT_EQ(test_data.original_code_0, original_code_0); | 1126 EXPECT_EQ(test_data.original_code_0, original_code_0); |
1127 | 1127 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1162 test_data.behavior, | 1162 test_data.behavior, |
1163 test_data.set_thread_state ? "true" : "false")); | 1163 test_data.set_thread_state ? "true" : "false")); |
1164 | 1164 |
1165 EXPECT_EQ(test_data.kr, | 1165 EXPECT_EQ(test_data.kr, |
1166 ExcServerSuccessfulReturnValue(test_data.behavior, | 1166 ExcServerSuccessfulReturnValue(test_data.behavior, |
1167 test_data.set_thread_state)); | 1167 test_data.set_thread_state)); |
1168 } | 1168 } |
1169 } | 1169 } |
1170 | 1170 |
1171 } // namespace | 1171 } // namespace |
OLD | NEW |