testing/scripts/run_finch_smoke_tests_android.py
def _wait_for_local_state_file(self, browser_pkg_name):
    """Wait for local state file to be generated

    Args:
      browser_pkg_name: Name of the browser package

    Returns
      None
    """
    max_wait_time_secs = 120
    delta_secs = 10
    total_wait_time_secs = 0

    app_data_dir = posixpath.join(
        self.device.GetApplicationDataDirectory(browser_pkg_name),
        self.app_user_sub_dir())
    local_state_file = posixpath.join(app_data_dir, 'Local State')

    while total_wait_time_secs < max_wait_time_secs:
      if self.device.PathExists(local_state_file):
        logger.info('Local state file generated')
        return
      logger.info('Waiting %d seconds for the local state file to generate',
                  delta_secs)
      time.sleep(delta_secs)
      total_wait_time_secs += delta_secs

    raise Exception('Timed out waiting for the '
                    'local state file to be generated')
Wait for local state file to be generated

    Args:
      browser_pkg_name: Name of the browser package

    Returns
      None
    
Wait for local state file to be generated
Wait for local state file to be generated
def _wait_for_local_state_file(self, browser_pkg_name):
    max_wait_time_secs = 120
    delta_secs = 10
    total_wait_time_secs = 0
    app_data_dir = posixpath.join(
        self.device.GetApplicationDataDirectory(browser_pkg_name),
        self.app_user_sub_dir())
    local_state_file = posixpath.join(app_data_dir, 'Local State')
    while total_wait_time_secs < max_wait_time_secs:
      if self.device.PathExists(local_state_file):
        logger.info('Local state file generated')
        return
      logger.info('Waiting %d seconds for the local state file to generate',
                  delta_secs)
      time.sleep(delta_secs)
      total_wait_time_secs += delta_secs
    raise Exception('Timed out waiting for the '
                    'local state file to be generated')
def _wait_for_local_state_file ( self , browser_pkg_name ) : max_wait_time_secs = 120 delta_secs = 10 total_wait_time_secs = 0 app_data_dir = posixpath . join ( self . device . GetApplicationDataDirectory ( browser_pkg_name ) , self . app_user_sub_dir ( ) ) local_state_file = posixpath . join ( app_data_dir , 'Local State' ) while total_wait_time_secs < max_wait_time_secs : if self . device . PathExists ( local_state_file ) : logger . info ( 'Local state file generated' ) return logger . info ( 'Waiting %d seconds for the local state file to generate' , delta_secs ) time . sleep ( delta_secs ) total_wait_time_secs += delta_secs raise Exception ( 'Timed out waiting for the ' 'local state file to be generated' )
Wait for local state file to be generated
Wait for local state file to be generated
"""Wait for local state file to be generated

    Args:
      browser_pkg_name: Name of the browser package

    Returns
      None
    """
self
browser_pkg_name
Name of the browser package
Name of the browser package