parameters: (input_api, output_api)
return_statement: return [output_api.PresubmitPromptWarning('Chromium code should not use '
        'gtest\'s FRIEND_TEST() macro. Include base/gtest_prod_util.h and use '
        'FRIEND_TEST_ALL_PREFIXES() instead.\n' + '\n'.join(problems))]
docstring: Make sure that gtest's FRIEND_TEST() macro is not used, the
    FRIEND_TEST_ALL_PREFIXES() macro from base/gtest_prod_util.h should be used
    instead since that allows for FLAKY_, FAILS_ and DISABLED_ prefixes.
docstring_summary: Make sure that gtest's FRIEND_TEST() macro is not used, the
    FRIEND_TEST_ALL_PREFIXES() macro from base/gtest_prod_util.h should be used
    instead since that allows for FLAKY_, FAILS_ and DISABLED_ prefixes.
docstring_tokens: Make sure that gtest s FRIEND_TEST () macro is not used the FRIEND_TEST_ALL_PREFIXES () macro from base / gtest_prod_util . h should be used instead since that allows for FLAKY_ FAILS_ and DISABLED_ prefixes .
function: def _CheckNoFRIEND_TEST(input_api, output_api):
    """Make sure that gtest's FRIEND_TEST() macro is not used, the
    FRIEND_TEST_ALL_PREFIXES() macro from base/gtest_prod_util.h should be used
    instead since that allows for FLAKY_, FAILS_ and DISABLED_ prefixes."""
    problems = []
  
    file_filter = lambda f: f.LocalPath().endswith(('.cc', '.h'))
    for f in input_api.AffectedFiles(file_filter=file_filter):
      for line_num, line in f.ChangedContents():
        if 'FRIEND_TEST(' in line:
          problems.append('    %s:%d' % (f.LocalPath(), line_num))
  
    if not problems:
      return []
    return [output_api.PresubmitPromptWarning('Chromium code should not use '
        'gtest\'s FRIEND_TEST() macro. Include base/gtest_prod_util.h and use '
        'FRIEND_TEST_ALL_PREFIXES() instead.\n' + '\n'.join(problems))]
function_tokens: def _CheckNoFRIEND_TEST ( input_api , output_api ) : problems = [ ] file_filter = lambda f : f . LocalPath ( ) . endswith ( ( '.cc' , '.h' ) ) for f in input_api . AffectedFiles ( file_filter = file_filter ) : for line_num , line in f . ChangedContents ( ) : if 'FRIEND_TEST(' in line : problems . append ( '    %s:%d' % ( f . LocalPath ( ) , line_num ) ) if not problems : return [ ] return [ output_api . PresubmitPromptWarning ( 'Chromium code should not use ' 'gtest\'s FRIEND_TEST() macro. Include base/gtest_prod_util.h and use ' 'FRIEND_TEST_ALL_PREFIXES() instead.\n' + '\n' . join ( problems ) ) ]