tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

abort_header_only_test.cc (519B)


      1 #define HWY_HEADER_ONLY
      2 
      3 #include <string>
      4 #include "hwy/base.h"
      5 #include "hwy/tests/hwy_gtest.h"
      6 #include "hwy/tests/test_util-inl.h"  // HWY_ASSERT_EQ
      7 
      8 namespace hwy {
      9 namespace {
     10 
     11 #ifdef GTEST_HAS_DEATH_TEST
     12 
     13 TEST(AbortDeathTest, AbortDefault) {
     14  std::string expected = std::string("Abort at ") + __FILE__ + ":" +
     15                         std::to_string(__LINE__ + 1) + ": Test Abort";
     16  ASSERT_DEATH(HWY_ABORT("Test %s", "Abort"), expected);
     17 }
     18 #endif  // GTEST_HAS_DEATH_TEST
     19 
     20 }  // namespace
     21 }  // namespace hwy