
"""Makes sure that the app/ code is cpplint clean."""

INCLUDE_CPP_FILES_ONLY = (
  r'.*\.cc$', r'.*\.h$'
)

EXCLUDE = (
  # Autogenerated window resources files are off limits
  r'.*resource.h$',
)

def CheckChangeOnUpload(input_api, output_api):
  results = []
  black_list = input_api.DEFAULT_BLACK_LIST + EXCLUDE
  sources = lambda x: input_api.FilterSourceFile(
    x, white_list=INCLUDE_CPP_FILES_ONLY, black_list=black_list)
  results.extend(input_api.canned_checks.CheckChangeLintsClean(
      input_api, output_api, sources))
  return results


"""Makes sure that the app/ code is cpplint clean."""

INCLUDE_CPP_FILES_ONLY = (
  r'.*\.cc$', r'.*\.h$'
)

EXCLUDE = (
  # Autogenerated window resources files are off limits
  r'.*resource.h$',
)

def CheckChangeOnUpload(input_api, output_api):
  results = []
  black_list = input_api.DEFAULT_BLACK_LIST + EXCLUDE
  sources = lambda x: input_api.FilterSourceFile(
    x, white_list=INCLUDE_CPP_FILES_ONLY, black_list=black_list)
  results.extend(input_api.canned_checks.CheckChangeLintsClean(
      input_api, output_api, sources))
  return results

def GetPreferredTrySlaves():
  return ['win', 'linux', 'linux_view', 'linux_chromeos', 'mac']

Make all changes to app/ run on all trybot platforms, not just the big three. Anyone who's changing a header here may break the chromeos build.
Make all changes to app/ run on all trybot platforms, not just the big three.
Anyone who's changing a header here may break the chromeos build.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/2838027

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@51000 0039d316-1c4b-4281-b951-d872f2087c98

  
  """Makes sure that the app/ code is cpplint clean."""
  
  INCLUDE_CPP_FILES_ONLY = (
    r'.*\.cc$', r'.*\.h$'
  )
  
  EXCLUDE = (
    # Autogenerated window resources files are off limits
    r'.*resource.h$',
  )
  
  def CheckChangeOnUpload(input_api, output_api):
    results = []
    black_list = input_api.DEFAULT_BLACK_LIST + EXCLUDE
    sources = lambda x: input_api.FilterSourceFile(
      x, white_list=INCLUDE_CPP_FILES_ONLY, black_list=black_list)
    results.extend(input_api.canned_checks.CheckChangeLintsClean(
        input_api, output_api, sources))
    return results
  
+ def GetPreferredTrySlaves():
+   return ['win', 'linux', 'linux_view', 'linux_chromeos', 'mac']
+ 
Make all changes to app/ run on all trybot platforms, not just the big three. Anyone who's changing a header here may break the chromeos build.
## Code Before:

"""Makes sure that the app/ code is cpplint clean."""

INCLUDE_CPP_FILES_ONLY = (
  r'.*\.cc$', r'.*\.h$'
)

EXCLUDE = (
  # Autogenerated window resources files are off limits
  r'.*resource.h$',
)

def CheckChangeOnUpload(input_api, output_api):
  results = []
  black_list = input_api.DEFAULT_BLACK_LIST + EXCLUDE
  sources = lambda x: input_api.FilterSourceFile(
    x, white_list=INCLUDE_CPP_FILES_ONLY, black_list=black_list)
  results.extend(input_api.canned_checks.CheckChangeLintsClean(
      input_api, output_api, sources))
  return results

## Instruction:
Make all changes to app/ run on all trybot platforms, not just the big three. Anyone who's changing a header here may break the chromeos build.
## Code After:

"""Makes sure that the app/ code is cpplint clean."""

INCLUDE_CPP_FILES_ONLY = (
  r'.*\.cc$', r'.*\.h$'
)

EXCLUDE = (
  # Autogenerated window resources files are off limits
  r'.*resource.h$',
)

def CheckChangeOnUpload(input_api, output_api):
  results = []
  black_list = input_api.DEFAULT_BLACK_LIST + EXCLUDE
  sources = lambda x: input_api.FilterSourceFile(
    x, white_list=INCLUDE_CPP_FILES_ONLY, black_list=black_list)
  results.extend(input_api.canned_checks.CheckChangeLintsClean(
      input_api, output_api, sources))
  return results

def GetPreferredTrySlaves():
  return ['win', 'linux', 'linux_view', 'linux_chromeos', 'mac']
