Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
io.flutter.LogTest Class Reference

Public Member Functions

void canGetStacktraceString ()
 

Detailed Description

Definition at line 18 of file LogTest.java.

Member Function Documentation

◆ canGetStacktraceString()

void io.flutter.LogTest.canGetStacktraceString ( )
inline

Definition at line 21 of file LogTest.java.

21 {
22 Exception exception = new Exception();
23 String str = Log.getStackTraceString(exception);
24
25 StringWriter stringWriter = new StringWriter();
26 PrintWriter printWriter = new PrintWriter(stringWriter);
27 exception.printStackTrace(printWriter);
28 String expectStr = stringWriter.toString();
29
30 assertEquals(str, expectStr);
31 }
void Log(const char *format,...) SK_PRINTF_LIKE(1
Definition: TestRunner.cpp:137

The documentation for this class was generated from the following file: