mojo/public/tools/mojom/check_stable_mojom_compatibility_unittest.py
def testWithImport(self):
    """Ensure that cross-module dependencies do not break the compatibility
    checking tool."""
    self.assertBackwardCompatible([
        Change('foo/foo.mojom',
               old="""\
               module foo;
               [Stable] struct S {};
               """,
               new="""\
               module foo;
               [Stable] struct S { [MinVersion=2] int32 x; };
               """),
        Change('bar/bar.mojom',
               old="""\
               module bar;
               import "foo/foo.mojom";
               [Stable] struct T { foo.S s; };
               """,
               new="""\
               module bar;
               import "foo/foo.mojom";
               [Stable] struct T { foo.S s; [MinVersion=1] int32 y; };
               """)
    ])
Ensure that cross-module dependencies do not break the compatibility
    checking tool.
Ensure that cross-module dependencies do not break the compatibility
checking tool.
Ensure that cross - module dependencies do not break the compatibility checking tool .
def testWithImport(self):
    self.assertBackwardCompatible([
        Change('foo/foo.mojom',
               old="""\
               module foo;
               [Stable] struct S {};
               """,
               new="""\
               module foo;
               [Stable] struct S { [MinVersion=2] int32 x; };
               """),
        Change('bar/bar.mojom',
               old="""\
               module bar;
               import "foo/foo.mojom";
               [Stable] struct T { foo.S s; };
               """,
               new="""\
               module bar;
               import "foo/foo.mojom";
               [Stable] struct T { foo.S s; [MinVersion=1] int32 y; };
               """)
    ])
def testWithImport ( self ) : self . assertBackwardCompatible ( [ Change ( 'foo/foo.mojom' , old = """\
               module foo;
               [Stable] struct S {};
               """ , new = """\
               module foo;
               [Stable] struct S { [MinVersion=2] int32 x; };
               """ ) , Change ( 'bar/bar.mojom' , old = """\
               module bar;
               import "foo/foo.mojom";
               [Stable] struct T { foo.S s; };
               """ , new = """\
               module bar;
               import "foo/foo.mojom";
               [Stable] struct T { foo.S s; [MinVersion=1] int32 y; };
               """ ) ] )
Ensure that cross-module dependencies do not break the compatibility
checking tool.
Ensure that cross - module dependencies do not break the compatibility checking tool .
"""Ensure that cross-module dependencies do not break the compatibility
    checking tool."""
self