def Create(self, finder_options):
   self._InitPlatformIfNeeded()
   browser_backend = android_browser_backend.AndroidBrowserBackend(
       self._platform_backend,
       finder_options.browser_options, self._backend_settings,
       output_profile_path=finder_options.output_profile_path,
       extensions_to_load=finder_options.extensions_to_load,
       target_arch=finder_options.target_arch)
   return browser.Browser(
       browser_backend, self._platform_backend, self._credentials_path)
Example #2
0
 def Create(self):
     use_rndis_forwarder = (self.finder_options.android_rndis
                            or self.finder_options.browser_options.netsim)
     backend = android_browser_backend.AndroidBrowserBackend(
         self.finder_options.browser_options,
         self._backend_settings,
         use_rndis_forwarder,
         output_profile_path=self.finder_options.output_profile_path,
         extensions_to_load=self.finder_options.extensions_to_load)
     b = browser.Browser(backend, self._platform_backend)
     return b
 def Create(self):
   backend = android_browser_backend.AndroidBrowserBackend(
       self.finder_options.browser_options, self._backend_settings,
       self.finder_options.android_rndis,
       output_profile_path=self.finder_options.output_profile_path,
       extensions_to_load=self.finder_options.extensions_to_load)
   platform_backend = android_platform_backend.AndroidPlatformBackend(
       self._backend_settings.adb.Adb(),
       self.finder_options.no_performance_mode)
   b = browser.Browser(backend, platform_backend)
   return b
Example #4
0
  def Create(self):
    self._InitPlatformIfNeeded()

    use_rndis_forwarder = (self.finder_options.android_rndis or
                           self.finder_options.browser_options.netsim or
                           platform.GetHostPlatform().GetOSName() != 'linux')
    backend = android_browser_backend.AndroidBrowserBackend(
        self.finder_options.browser_options, self._backend_settings,
        use_rndis_forwarder,
        output_profile_path=self.finder_options.output_profile_path,
        extensions_to_load=self.finder_options.extensions_to_load,
        target_arch=self.finder_options.target_arch)
    b = browser.Browser(backend, self._platform_backend)
    return b
Example #5
0
    def Create(self):
        self._InitPlatformIfNeeded()

        use_rndis_forwarder = (
            self.finder_options.android_rndis
            or self.finder_options.browser_options.netsim
            or platform.GetHostPlatform().GetOSName() != 'linux')
        backend = android_browser_backend.AndroidBrowserBackend(
            self.finder_options.browser_options,
            self._backend_settings,
            use_rndis_forwarder,
            output_profile_path=self.finder_options.output_profile_path,
            extensions_to_load=self.finder_options.extensions_to_load,
            target_arch=self.finder_options.target_arch,
            android_platform_backend=self._platform_backend)
        b = browser.Browser(backend, self._platform_backend,
                            self._archive_path, self._append_to_existing_wpr,
                            self._make_javascript_deterministic,
                            self._credentials_path)
        return b