third_party/blink/PRESUBMIT_test.py
def testCheckInternalHeaderWithBlinkMojo(self):
        """This verifies that _CheckForWrongMojomIncludes accepts -blink mojo
        headers in blink internal files.
        """

        mock_input_api = MockInputApi()
        potentially_bad_content = """
        #include "public/platform/modules/cache_storage.mojom-blink.h"
        #include "public/platform/modules/cache_storage.mojom-blink-forward.h"
        #include "public/platform/modules/cache_storage.mojom-blink-test-utils.h"
        """
        mock_input_api.files = [
            MockAffectedFile('third_party/blink/renderer/core/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([], errors)
This verifies that _CheckForWrongMojomIncludes accepts -blink mojo
        headers in blink internal files.
        
This verifies that _CheckForWrongMojomIncludes accepts -blink mojo
headers in blink internal files.
This verifies that _CheckForWrongMojomIncludes accepts - blink mojo headers in blink internal files .
def testCheckInternalHeaderWithBlinkMojo(self):
        mock_input_api = MockInputApi()
        potentially_bad_content = """
        #include "public/platform/modules/cache_storage.mojom-blink.h"
        #include "public/platform/modules/cache_storage.mojom-blink-forward.h"
        #include "public/platform/modules/cache_storage.mojom-blink-test-utils.h"
        """
        mock_input_api.files = [
            MockAffectedFile('third_party/blink/renderer/core/a_header.h',
                             [potentially_bad_content], None)
        ]
        errors = PRESUBMIT._CheckForWrongMojomIncludes(mock_input_api,
                                                       MockOutputApi())
        self.assertEquals([], errors)
def testCheckInternalHeaderWithBlinkMojo ( self ) : mock_input_api = MockInputApi ( ) potentially_bad_content = """
        #include "public/platform/modules/cache_storage.mojom-blink.h"
        #include "public/platform/modules/cache_storage.mojom-blink-forward.h"
        #include "public/platform/modules/cache_storage.mojom-blink-test-utils.h"
        """ mock_input_api . files = [ MockAffectedFile ( 'third_party/blink/renderer/core/a_header.h' , [ potentially_bad_content ] , None ) ] errors = PRESUBMIT . _CheckForWrongMojomIncludes ( mock_input_api , MockOutputApi ( ) ) self . assertEquals ( [ ] , errors )
This verifies that _CheckForWrongMojomIncludes accepts -blink mojo
headers in blink internal files.
This verifies that _CheckForWrongMojomIncludes accepts - blink mojo headers in blink internal files .
"""This verifies that _CheckForWrongMojomIncludes accepts -blink mojo
        headers in blink internal files.
        """ # Access to a protected member _CheckForWrongMojomIncludes # pylint: disable=W0212
self