Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: third_party/crashpad/crashpad/util/mach/exception_behaviors_test.cc

Issue 2804713002: Update Crashpad to b4095401639ebe2ad33169e5c1d994065cbff1b8 (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 true, 52 true,
53 true, 53 true,
54 EXCEPTION_STATE_IDENTITY}, 54 EXCEPTION_STATE_IDENTITY},
55 }; 55 };
56 56
57 for (size_t index = 0; index < arraysize(kTestData); ++index) { 57 for (size_t index = 0; index < arraysize(kTestData); ++index) {
58 const TestData& test_data = kTestData[index]; 58 const TestData& test_data = kTestData[index];
59 SCOPED_TRACE(base::StringPrintf( 59 SCOPED_TRACE(base::StringPrintf(
60 "index %zu, behavior %d", index, test_data.behavior)); 60 "index %zu, behavior %d", index, test_data.behavior));
61 61
62 EXPECT_EQ(test_data.state, ExceptionBehaviorHasState(test_data.behavior)); 62 EXPECT_EQ(ExceptionBehaviorHasState(test_data.behavior), test_data.state);
63 EXPECT_EQ(test_data.identity, 63 EXPECT_EQ(ExceptionBehaviorHasIdentity(test_data.behavior),
64 ExceptionBehaviorHasIdentity(test_data.behavior)); 64 test_data.identity);
65 EXPECT_EQ(test_data.mach_exception_codes, 65 EXPECT_EQ(ExceptionBehaviorHasMachExceptionCodes(test_data.behavior),
66 ExceptionBehaviorHasMachExceptionCodes(test_data.behavior)); 66 test_data.mach_exception_codes);
67 EXPECT_EQ(test_data.basic_behavior, 67 EXPECT_EQ(ExceptionBehaviorBasic(test_data.behavior),
68 ExceptionBehaviorBasic(test_data.behavior)); 68 test_data.basic_behavior);
69 } 69 }
70 } 70 }
71 71
72 } // namespace 72 } // namespace
73 } // namespace test 73 } // namespace test
74 } // namespace crashpad 74 } // namespace crashpad
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698