| Index: util/mach/exc_client_variants_test.cc
|
| diff --git a/util/mach/exc_client_variants_test.cc b/util/mach/exc_client_variants_test.cc
|
| index 9948f4d8840b0008baf1eb13ec58a095887ee485..c8692ab9bfb10c8a5ae1d82cc8876315ba6d77ae 100644
|
| --- a/util/mach/exc_client_variants_test.cc
|
| +++ b/util/mach/exc_client_variants_test.cc
|
| @@ -22,6 +22,7 @@
|
| #include "base/strings/stringprintf.h"
|
| #include "gtest/gtest.h"
|
| #include "util/mach/exc_server_variants.h"
|
| +#include "util/mach/exception_behaviors.h"
|
| #include "util/mach/mach_extensions.h"
|
| #include "util/test/mac/mach_errors.h"
|
| #include "util/test/mac/mach_multiprocess.h"
|
| @@ -206,20 +207,12 @@ class TestExcClientVariants : public UniversalMachExcServer,
|
| }
|
| }
|
|
|
| - exception_behavior_t BasicBehavior() const {
|
| - return behavior_ & ~MACH_EXCEPTION_CODES;
|
| - }
|
| -
|
| bool HasIdentity() const {
|
| - exception_behavior_t basic_behavior = BasicBehavior();
|
| - return basic_behavior == EXCEPTION_DEFAULT ||
|
| - basic_behavior == EXCEPTION_STATE_IDENTITY;
|
| + return ExceptionBehaviorHasIdentity(behavior_);
|
| }
|
|
|
| bool HasState() const {
|
| - exception_behavior_t basic_behavior = BasicBehavior();
|
| - return basic_behavior == EXCEPTION_STATE ||
|
| - basic_behavior == EXCEPTION_STATE_IDENTITY;
|
| + return ExceptionBehaviorHasState(behavior_);
|
| }
|
|
|
| // The behavior to test.
|
|
|