old_contents: # Copyright (c) 2012 The Chromium Authors. All rights reserved.
  # Use of this source code is governed by a BSD-style license that can be
  # found in the LICENSE file.
  
  
  from master import master_config
  from master.factory import chromium_factory
  
  defaults = {}
  
  helper = master_config.Helper(defaults)
  B = helper.Builder
  F = helper.Factory
  S = helper.Scheduler
  
  def mac(): return chromium_factory.ChromiumFactory('src/build', 'darwin')
  
  
  ################################################################################
  ## Release
  ################################################################################
  
  defaults['category'] = '9content shell'
  
  #
  # Main release scheduler for webkit
  #
  S('s2_contentshell_webkit_rel', branch='trunk', treeStableTimer=60)
  
  #
  # Content Shell Layouttests
  #
  
  B('Mac (Content Shell)',
    'f_contentshell_mac_rel',
    scheduler='s2_contentshell_webkit_rel',
    auto_reboot=True)
  
  F('f_contentshell_mac_rel', mac().ChromiumWebkitLatestFactory(
      target='Release',
      tests=[
        'webkit',
      ],
      options=[
        '--build-tool=ninja',
        '--compiler=goma-clang',
        'content_shell_builder',
      ],
      factory_properties={
        'additional_drt_flag': '--dump-render-tree',
        'archive_webkit_results': True,
        'driver_name': 'content_shell',
        'gclient_env': {
            'GYP_GENERATORS':'ninja',
            'GYP_DEFINES':'fastbuild=1',
        },
        'test_results_server': 'test-results.appspot.com',
      }))
  
  
  def Update(config, active_master, c):
    return helper.Update(c)
  
new_contents: # Copyright (c) 2012 The Chromium Authors. All rights reserved.
  # Use of this source code is governed by a BSD-style license that can be
  # found in the LICENSE file.
  
  
  from master import master_config
  from master.factory import chromium_factory
  
  defaults = {}
  
  helper = master_config.Helper(defaults)
  B = helper.Builder
  F = helper.Factory
  S = helper.Scheduler
  
  def mac(): return chromium_factory.ChromiumFactory('src/build', 'darwin')
  
  
  ################################################################################
  ## Release
  ################################################################################
  
  defaults['category'] = '9content shell'
  
  #
  # Main release scheduler for webkit
  #
  S('s2_contentshell_webkit_rel', branch='trunk', treeStableTimer=60)
  
  #
  # Content Shell Layouttests
  #
  
  B('Mac (Content Shell)',
    'f_contentshell_mac_rel',
    scheduler='s2_contentshell_webkit_rel',
    auto_reboot=True)
  
  F('f_contentshell_mac_rel', mac().ChromiumWebkitLatestFactory(
      target='Release',
      tests=[
        'webkit',
      ],
      options=[
        '--build-tool=ninja',
        '--compiler=goma-clang',
        'content_shell_builder',
      ],
      factory_properties={
        'additional_drt_flag': '--dump-render-tree',
        'archive_webkit_results': True,
        'driver_name': 'Content Shell',
        'gclient_env': {
            'GYP_GENERATORS':'ninja',
            'GYP_DEFINES':'fastbuild=1',
        },
        'test_results_server': 'test-results.appspot.com',
      }))
  
  
  def Update(config, active_master, c):
    return helper.Update(c)
  
subject: Use the correct driver name for content shell on the mac bot