Exemple #1
0
 def __init__(self, host, port_name, **kwargs):
     ApplePort.__init__(self, host, port_name, **kwargs)
     self._leak_detector = LeakDetector(self)
     if self.get_option("leaks"):
         # DumpRenderTree slows down noticably if we run more than about 1000 tests in a batch
         # with MallocStackLogging enabled.
         self.set_option_default("batch_size", 1000)
 def _make_detector(self):
     return LeakDetector(self._mock_port())