mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 22:26:06 +00:00
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:
parent
7f71c57a29
commit
fdfd782c9b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user