tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

hostside_test_instance.py (1090B)


      1 # Copyright 2023 The Chromium Authors
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 from pylib.base import test_instance
      6 from pylib.utils import test_filter
      7 
      8 
      9 class HostsideTestInstance(test_instance.TestInstance):
     10  def __init__(self, args, _):
     11    super().__init__()
     12    self.suite = args.test_suite
     13    self.instant_mode = args.test_apk_as_instant
     14    self.tradefed_executable = args.tradefed_executable or 'cts-tradefed'
     15    self.aapt_path = args.tradefed_aapt_path or ''
     16    self.adb_path = args.tradefed_adb_path or ''
     17    self.additional_apks = args.additional_apks
     18    self.use_webview_provider = args.use_webview_provider
     19    self.max_tries = 1 if args.repeat else args.num_retries + 1
     20    self.test_filters = test_filter.InitializeFiltersFromArgs(args)
     21    self.external_shard_index = args.test_launcher_shard_index
     22    self.total_external_shards = args.test_launcher_total_shards
     23 
     24  #override
     25  def TestType(self):
     26    return 'hostside'
     27 
     28  #override
     29  def SetUp(self):
     30    pass
     31 
     32  #override
     33  def TearDown(self):
     34    pass