mojo/public/tools/mojom/check_stable_mojom_compatibility_unittest.py
def testFileRename(self):
    """Make sure we can still do compatibility checks after a file rename."""
    self.assertBackwardCompatible([
        Change('foo/foo.mojom', old='[Stable] struct S {};', new=None),
        Change('bar/bar.mojom',
               old=None,
               new='[Stable] struct S { [MinVersion=1] int32 x; };')
    ])
    self.assertNotBackwardCompatible([
        Change('foo/foo.mojom', old='[Stable] struct S {};', new=None),
        Change('bar/bar.mojom', old=None, new='[Stable] struct S { int32 x; };')
    ])
Make sure we can still do compatibility checks after a file rename.
Make sure we can still do compatibility checks after a file rename.
Make sure we can still do compatibility checks after a file rename .
def testFileRename(self):
    self.assertBackwardCompatible([
        Change('foo/foo.mojom', old='[Stable] struct S {};', new=None),
        Change('bar/bar.mojom',
               old=None,
               new='[Stable] struct S { [MinVersion=1] int32 x; };')
    ])
    self.assertNotBackwardCompatible([
        Change('foo/foo.mojom', old='[Stable] struct S {};', new=None),
        Change('bar/bar.mojom', old=None, new='[Stable] struct S { int32 x; };')
    ])
def testFileRename ( self ) : self . assertBackwardCompatible ( [ Change ( 'foo/foo.mojom' , old = '[Stable] struct S {};' , new = None ) , Change ( 'bar/bar.mojom' , old = None , new = '[Stable] struct S { [MinVersion=1] int32 x; };' ) ] ) self . assertNotBackwardCompatible ( [ Change ( 'foo/foo.mojom' , old = '[Stable] struct S {};' , new = None ) , Change ( 'bar/bar.mojom' , old = None , new = '[Stable] struct S { int32 x; };' ) ] )
Make sure we can still do compatibility checks after a file rename.
Make sure we can still do compatibility checks after a file rename .
"""Make sure we can still do compatibility checks after a file rename."""
self