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