Make run-benchmark script supports 'config' key in test plan.
[WebKit-https.git] / Tools / Scripts / webkitpy / benchmark_runner / browser_driver / browser_driver.py
1 #!/usr/bin/env python
2
3 from abc import ABCMeta, abstractmethod
4
5
6 class BrowserDriver(object):
7     platform = None
8     browser_name = None
9
10     ___metaclass___ = ABCMeta
11
12     @abstractmethod
13     def prepare_env(self, config):
14         pass
15
16     @abstractmethod
17     def launch_url(self, url, options, browser_build_path=None):
18         pass
19
20     @abstractmethod
21     def add_additional_results(self, test_url, results):
22         return results
23
24     @abstractmethod
25     def close_browsers(self):
26         pass
27
28     @abstractmethod
29     def restore_env(self):
30         pass