third_party/blink/PRESUBMIT_test.py
def testCheckPublicHeaderWithBlinkMojo(self):
        """This verifies that _CheckForWrongMojomIncludes detects -blink mojo
        headers in public files.
        """

        mock_input_api = MockInputApi()
        potentially_bad_content = \
            '#include "public/platform/modules/cache_storage.mojom-blink.h"'
        mock_input_api.files = [
            MockAffectedFile('third_party/blink/public/a_header.h',
                             [potentially_bad_content], None)
        ]
        # Access to a protected member _CheckForWrongMojomIncludes
        # pylint: disable=W0212
        errors = PRESUBMIT._CheckForWrongMojomIncludes(mock_input_api,
                                                       MockOutputApi())
        self.assertEquals(
            'Public blink headers using Blink variant mojoms found. ' +
            'You must include .mojom-forward.h or .mojom-shared.h instead:',
            errors[0].message)
This verifies that _CheckForWrongMojomIncludes detects -blink mojo
        headers in public files.
        
This verifies that _CheckForWrongMojomIncludes detects -blink mojo
headers in public files.
This verifies that _CheckForWrongMojomIncludes detects - blink mojo headers in public files .
def testCheckPublicHeaderWithBlinkMojo(self):
        mock_input_api = MockInputApi()
        potentially_bad_content = \
            '#include "public/platform/modules/cache_storage.mojom-blink.h"'
        mock_input_api.files = [
            MockAffectedFile('third_party/blink/public/a_header.h',
                             [potentially_bad_content], None)
        ]
        errors = PRESUBMIT._CheckForWrongMojomIncludes(mock_input_api,
                                                       MockOutputApi())
        self.assertEquals(
            'Public blink headers using Blink variant mojoms found. ' +
            'You must include .mojom-forward.h or .mojom-shared.h instead:',
            errors[0].message)
def testCheckPublicHeaderWithBlinkMojo ( self ) : mock_input_api = MockInputApi ( ) potentially_bad_content = '#include "public/platform/modules/cache_storage.mojom-blink.h"' mock_input_api . files = [ MockAffectedFile ( 'third_party/blink/public/a_header.h' , [ potentially_bad_content ] , None ) ] errors = PRESUBMIT . _CheckForWrongMojomIncludes ( mock_input_api , MockOutputApi ( ) ) self . assertEquals ( 'Public blink headers using Blink variant mojoms found. ' + 'You must include .mojom-forward.h or .mojom-shared.h instead:' , errors [ 0 ] . message )
This verifies that _CheckForWrongMojomIncludes detects -blink mojo
headers in public files.
This verifies that _CheckForWrongMojomIncludes detects - blink mojo headers in public files .
"""This verifies that _CheckForWrongMojomIncludes detects -blink mojo
        headers in public files.
        """ # Access to a protected member _CheckForWrongMojomIncludes # pylint: disable=W0212
self