tools/variations/split_variations_cmd.py
def _ValidateForceFieldTrialsAndParams(trials, params):
  """Checks if all params have corresponding field trials specified.

  |trials| comes from --force-fieldtrials switch, |params| comes from
  --force-fieldtrial-params switch.
  """
  if len(params) > len(trials):
    raise ValueError("params size (%d) larger than trials size (%d)" %
                     (len(params), len(trials)))
  trial_groups = {trial.trial_name: trial.group_name for trial in trials}
  for param in params:
    trial_name = urllib.unquote(param.trial_name)
    group_name = urllib.unquote(param.group_name)
    if trial_name not in trial_groups:
      raise ValueError("Fail to find trial_name %s in trials" % trial_name)
    if group_name != trial_groups[trial_name]:
      raise ValueError("group_name mismatch for trial_name %s, %s vs %s" %
                       (trial_name, group_name, trial_groups[trial_name]))
Checks if all params have corresponding field trials specified.

  |trials| comes from --force-fieldtrials switch, |params| comes from
  --force-fieldtrial-params switch.
  
Checks if all params have corresponding field trials specified.
Checks if all params have corresponding field trials specified .
def _ValidateForceFieldTrialsAndParams(trials, params):
  if len(params) > len(trials):
    raise ValueError("params size (%d) larger than trials size (%d)" %
                     (len(params), len(trials)))
  trial_groups = {trial.trial_name: trial.group_name for trial in trials}
  for param in params:
    trial_name = urllib.unquote(param.trial_name)
    group_name = urllib.unquote(param.group_name)
    if trial_name not in trial_groups:
      raise ValueError("Fail to find trial_name %s in trials" % trial_name)
    if group_name != trial_groups[trial_name]:
      raise ValueError("group_name mismatch for trial_name %s, %s vs %s" %
                       (trial_name, group_name, trial_groups[trial_name]))
def _ValidateForceFieldTrialsAndParams ( trials , params ) : if len ( params ) > len ( trials ) : raise ValueError ( "params size (%d) larger than trials size (%d)" % ( len ( params ) , len ( trials ) ) ) trial_groups = { trial . trial_name : trial . group_name for trial in trials } for param in params : trial_name = urllib . unquote ( param . trial_name ) group_name = urllib . unquote ( param . group_name ) if trial_name not in trial_groups : raise ValueError ( "Fail to find trial_name %s in trials" % trial_name ) if group_name != trial_groups [ trial_name ] : raise ValueError ( "group_name mismatch for trial_name %s, %s vs %s" % ( trial_name , group_name , trial_groups [ trial_name ] ) )
Checks if all params have corresponding field trials specified.
Checks if all params have corresponding field trials specified .
"""Checks if all params have corresponding field trials specified.

  |trials| comes from --force-fieldtrials switch, |params| comes from
  --force-fieldtrial-params switch.
  """
trials
params