mojo/public/tools/mojom/mojom/parse/conditional_features_unittest.py
def testFilterImport(self):
    """Test that imports are correctly filtered from a Mojom."""
    import_source = """
      [EnableIf=blue]
      import "foo.mojom";
      import "bar.mojom";
      [EnableIf=purple]
      import "baz.mojom";
    """
    expected_source = """
      [EnableIf=blue]
      import "foo.mojom";
      import "bar.mojom";
    """
    self.parseAndAssertEqual(import_source, expected_source)
Test that imports are correctly filtered from a Mojom.
Test that imports are correctly filtered from a Mojom.
Test that imports are correctly filtered from a Mojom .
def testFilterImport(self):
    import_source = """
      [EnableIf=blue]
      import "foo.mojom";
      import "bar.mojom";
      [EnableIf=purple]
      import "baz.mojom";
    """
    expected_source = """
      [EnableIf=blue]
      import "foo.mojom";
      import "bar.mojom";
    """
    self.parseAndAssertEqual(import_source, expected_source)
def testFilterImport ( self ) : import_source = """
      [EnableIf=blue]
      import "foo.mojom";
      import "bar.mojom";
      [EnableIf=purple]
      import "baz.mojom";
    """ expected_source = """
      [EnableIf=blue]
      import "foo.mojom";
      import "bar.mojom";
    """ self . parseAndAssertEqual ( import_source , expected_source )
Test that imports are correctly filtered from a Mojom.
Test that imports are correctly filtered from a Mojom .
"""Test that imports are correctly filtered from a Mojom."""
self