chrome/android/java/src/PRESUBMIT_test.py
def testSuccess(self):
    """
    Examples of when SplitCompatUtils.getIdentifierName() should not be flagged.
    """
    mock_input = MockInputApi()
    mock_input.files = [
        MockFile('path/One.java',
                 [
                  'SplitCompatUtils.getIdentifierName("foo")',
                  'A new line.']),
        MockFile('path/Two.java',
                 ['SplitCompatUtils.getIdentifierName(    "foo")']),
        MockFile('path/Three.java',
                 ['SplitCompatUtils.getIdentifierName(',
                  '    "bar")']),
        MockFile('path/Four.java',
                 ['  super(SplitCompatUtils.getIdentifierName(',
                  '"bar"))']),
    ]
    errors = PRESUBMIT._CheckSplitCompatUtilsIdentifierName(
        mock_input, MockOutputApi())
    self.assertEqual(0, len(errors))

    Examples of when SplitCompatUtils.getIdentifierName() should not be flagged.
    
Examples of when SplitCompatUtils.getIdentifierName() should not be flagged.
Examples of when SplitCompatUtils . getIdentifierName () should not be flagged .
def testSuccess(self):
    mock_input = MockInputApi()
    mock_input.files = [
        MockFile('path/One.java',
                 [
                  'SplitCompatUtils.getIdentifierName("foo")',
                  'A new line.']),
        MockFile('path/Two.java',
                 ['SplitCompatUtils.getIdentifierName(    "foo")']),
        MockFile('path/Three.java',
                 ['SplitCompatUtils.getIdentifierName(',
                  '    "bar")']),
        MockFile('path/Four.java',
                 ['  super(SplitCompatUtils.getIdentifierName(',
                  '"bar"))']),
    ]
    errors = PRESUBMIT._CheckSplitCompatUtilsIdentifierName(
        mock_input, MockOutputApi())
    self.assertEqual(0, len(errors))
def testSuccess ( self ) : mock_input = MockInputApi ( ) mock_input . files = [ MockFile ( 'path/One.java' , [ 'SplitCompatUtils.getIdentifierName("foo")' , 'A new line.' ] ) , MockFile ( 'path/Two.java' , [ 'SplitCompatUtils.getIdentifierName(    "foo")' ] ) , MockFile ( 'path/Three.java' , [ 'SplitCompatUtils.getIdentifierName(' , '    "bar")' ] ) , MockFile ( 'path/Four.java' , [ '  super(SplitCompatUtils.getIdentifierName(' , '"bar"))' ] ) , ] errors = PRESUBMIT . _CheckSplitCompatUtilsIdentifierName ( mock_input , MockOutputApi ( ) ) self . assertEqual ( 0 , len ( errors ) )
Examples of when SplitCompatUtils.getIdentifierName() should not be flagged.
Examples of when SplitCompatUtils . getIdentifierName () should not be flagged .
"""
    Examples of when SplitCompatUtils.getIdentifierName() should not be flagged.
    """
self