switch to EXPECT_DEATH_CRASH

* introduced in https://chromium-review.googlesource.com/c/1278829
* this blocks the rollup in Fuchsia: ../../third_party/crashpad/test/scoped_guarded_page_test.cc:30:3: error: use of undeclared identifier 'EXPECT_DEATH'

Bug: crashpad:262
Change-Id: Ifff85a63aba012533956ce494fc645b554761478
Reviewed-on: https://chromium-review.googlesource.com/c/1318313
Reviewed-by: Scott Graham <scottmg@chromium.org>
Commit-Queue: Francois Rousseau <frousseau@google.com>
This commit is contained in:
Francois Rousseau 2018-11-05 16:49:13 -08:00 committed by Commit Bot
parent 7f71c57a29
commit fdfd782c9b

View File

@ -16,6 +16,7 @@
#include "base/process/process_metrics.h"
#include "gtest/gtest.h"
#include "test/gtest_death.h"
namespace crashpad {
namespace test {
@ -27,7 +28,7 @@ TEST(ScopedGuardedPage, BasicFunctionality) {
EXPECT_NE(address, nullptr);
address[0] = 0;
address[base::GetPageSize() - 1] = 0;
EXPECT_DEATH({ address[base::GetPageSize()] = 0; }, "");
EXPECT_DEATH_CRASH({ address[base::GetPageSize()] = 0; }, "");
}
} // namespace