Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
base::testing Namespace Reference

Functions

int UnreachableScopeWithoutReturnDoesNotMakeCompilerMad ()
 
int UnreachableScopeWithMacroWithoutReturnDoesNotMakeCompilerMad ()
 
 TEST (LoggingTest, UnreachableKillProcess)
 
 TEST (LoggingTest, UnreachableKillProcessWithMacro)
 

Function Documentation

◆ TEST() [1/2]

base::testing::TEST ( LoggingTest  ,
UnreachableKillProcess   
)

Definition at line 21 of file logging_unittests.cc.

21 {
22 ::testing::FLAGS_gtest_death_test_style = "threadsafe";
23 ASSERT_DEATH(KillProcess(), "");
24}

◆ TEST() [2/2]

base::testing::TEST ( LoggingTest  ,
UnreachableKillProcessWithMacro   
)

Definition at line 26 of file logging_unittests.cc.

26 {
27 ::testing::FLAGS_gtest_death_test_style = "threadsafe";
28 ASSERT_DEATH({ BASE_UNREACHABLE(); }, "");
29}
#define BASE_UNREACHABLE()
Definition logging.h:69

◆ UnreachableScopeWithMacroWithoutReturnDoesNotMakeCompilerMad()

int base::testing::UnreachableScopeWithMacroWithoutReturnDoesNotMakeCompilerMad ( )

Definition at line 16 of file logging_unittests.cc.

16 {
18 // return 0; <--- Missing but compiler is fine.
19}

◆ UnreachableScopeWithoutReturnDoesNotMakeCompilerMad()

int base::testing::UnreachableScopeWithoutReturnDoesNotMakeCompilerMad ( )

Definition at line 11 of file logging_unittests.cc.

11 {
12 KillProcess();
13 // return 0; <--- Missing but compiler is fine.
14}