chrome/android/java/src/PRESUBMIT_test.py
def testFailure(self):
    """
    SplitCompatUtils.getIdentifierName() without a String literal is flagged.
    """
    mock_input = MockInputApi()
    mock_input.files = [
        MockFile('path/One.java',
                 [
                  'SplitCompatUtils.getIdentifierName(foo)',
                  'A new line to make sure there is no duplicate error.']),
        MockFile('path/Two.java',
                 ['SplitCompatUtils.getIdentifierName(    foo)']),
        MockFile('path/Three.java',
                 ['SplitCompatUtils.getIdentifierName(',
                  '     bar)']),
    ]
    errors = PRESUBMIT._CheckSplitCompatUtilsIdentifierName(
        mock_input, MockOutputApi())
    self.assertEqual(1, len(errors))
    self.assertEqual(3, len(errors[0].items))
    self.assertIn('One.java', errors[0].items[0])
    self.assertIn('Two.java', errors[0].items[1])
    self.assertIn('Three.java', errors[0].items[2])

    SplitCompatUtils.getIdentifierName() without a String literal is flagged.
    
SplitCompatUtils.getIdentifierName() without a String literal is flagged.
SplitCompatUtils . getIdentifierName () without a String literal is flagged .
def testFailure(self):
    mock_input = MockInputApi()
    mock_input.files = [
        MockFile('path/One.java',
                 [
                  'SplitCompatUtils.getIdentifierName(foo)',
                  'A new line to make sure there is no duplicate error.']),
        MockFile('path/Two.java',
                 ['SplitCompatUtils.getIdentifierName(    foo)']),
        MockFile('path/Three.java',
                 ['SplitCompatUtils.getIdentifierName(',
                  '     bar)']),
    ]
    errors = PRESUBMIT._CheckSplitCompatUtilsIdentifierName(
        mock_input, MockOutputApi())
    self.assertEqual(1, len(errors))
    self.assertEqual(3, len(errors[0].items))
    self.assertIn('One.java', errors[0].items[0])
    self.assertIn('Two.java', errors[0].items[1])
    self.assertIn('Three.java', errors[0].items[2])
def testFailure ( self ) : mock_input = MockInputApi ( ) mock_input . files = [ MockFile ( 'path/One.java' , [ 'SplitCompatUtils.getIdentifierName(foo)' , 'A new line to make sure there is no duplicate error.' ] ) , MockFile ( 'path/Two.java' , [ 'SplitCompatUtils.getIdentifierName(    foo)' ] ) , MockFile ( 'path/Three.java' , [ 'SplitCompatUtils.getIdentifierName(' , '     bar)' ] ) , ] errors = PRESUBMIT . _CheckSplitCompatUtilsIdentifierName ( mock_input , MockOutputApi ( ) ) self . assertEqual ( 1 , len ( errors ) ) self . assertEqual ( 3 , len ( errors [ 0 ] . items ) ) self . assertIn ( 'One.java' , errors [ 0 ] . items [ 0 ] ) self . assertIn ( 'Two.java' , errors [ 0 ] . items [ 1 ] ) self . assertIn ( 'Three.java' , errors [ 0 ] . items [ 2 ] )
SplitCompatUtils.getIdentifierName() without a String literal is flagged.
SplitCompatUtils . getIdentifierName () without a String literal is flagged .
"""
    SplitCompatUtils.getIdentifierName() without a String literal is flagged.
    """
self