Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
run_tests.FlutterTesterOptions Class Reference

Public Member Functions

def __init__ (self, multithreaded=False, enable_impeller=False, enable_observatory=False, expect_failure=False)
 
def apply_args (self, command_args)
 
def threading_description (self)
 
def impeller_enabled (self)
 

Public Attributes

 multithreaded
 
 enable_impeller
 
 enable_observatory
 
 expect_failure
 

Detailed Description

Definition at line 588 of file run_tests.py.

Constructor & Destructor Documentation

◆ __init__()

def run_tests.FlutterTesterOptions.__init__ (   self,
  multithreaded = False,
  enable_impeller = False,
  enable_observatory = False,
  expect_failure = False 
)

Definition at line 590 of file run_tests.py.

596 ):
597 self.multithreaded = multithreaded
598 self.enable_impeller = enable_impeller
599 self.enable_observatory = enable_observatory
600 self.expect_failure = expect_failure
601

Member Function Documentation

◆ apply_args()

def run_tests.FlutterTesterOptions.apply_args (   self,
  command_args 
)

Definition at line 602 of file run_tests.py.

602 def apply_args(self, command_args):
603 if not self.enable_observatory:
604 command_args.append('--disable-observatory')
605
606 if self.enable_impeller:
607 command_args += ['--enable-impeller']
608 else:
609 command_args += ['--no-enable-impeller']
610
611 if self.multithreaded:
612 command_args.insert(0, '--force-multithreading')
613

◆ impeller_enabled()

def run_tests.FlutterTesterOptions.impeller_enabled (   self)

Definition at line 619 of file run_tests.py.

619 def impeller_enabled(self):
620 if self.enable_impeller:
621 return 'impeller swiftshader'
622 return 'skia software'
623
624

◆ threading_description()

def run_tests.FlutterTesterOptions.threading_description (   self)

Definition at line 614 of file run_tests.py.

614 def threading_description(self):
615 if self.multithreaded:
616 return 'multithreaded'
617 return 'single-threaded'
618

Member Data Documentation

◆ enable_impeller

run_tests.FlutterTesterOptions.enable_impeller

Definition at line 598 of file run_tests.py.

◆ enable_observatory

run_tests.FlutterTesterOptions.enable_observatory

Definition at line 599 of file run_tests.py.

◆ expect_failure

run_tests.FlutterTesterOptions.expect_failure

Definition at line 600 of file run_tests.py.

◆ multithreaded

run_tests.FlutterTesterOptions.multithreaded

Definition at line 597 of file run_tests.py.


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