mojo/public/tools/mojom/check_stable_mojom_compatibility_unittest.py
def testBasicIncompatibility(self):
    """Minimal smoke test to verify rejection of a simple invalid change."""
    self.assertNotBackwardCompatible([
        Change('foo/foo.mojom',
               old='[Stable] struct S {};',
               new='[Stable] struct S { int32 x; };')
    ])
Minimal smoke test to verify rejection of a simple invalid change.
Minimal smoke test to verify rejection of a simple invalid change.
Minimal smoke test to verify rejection of a simple invalid change .
def testBasicIncompatibility(self):
    self.assertNotBackwardCompatible([
        Change('foo/foo.mojom',
               old='[Stable] struct S {};',
               new='[Stable] struct S { int32 x; };')
    ])
def testBasicIncompatibility ( self ) : self . assertNotBackwardCompatible ( [ Change ( 'foo/foo.mojom' , old = '[Stable] struct S {};' , new = '[Stable] struct S { int32 x; };' ) ] )
Minimal smoke test to verify rejection of a simple invalid change.
Minimal smoke test to verify rejection of a simple invalid change .
"""Minimal smoke test to verify rejection of a simple invalid change."""
self