mojo/public/tools/mojom/mojom/parse/conditional_features_unittest.py
def testFilterEnum(self):
    """Test that EnumValues are correctly filtered from an Enum."""
    enum_source = """
      enum MyEnum {
        [EnableIf=purple]
        VALUE1,
        [EnableIf=blue]
        VALUE2,
        VALUE3,
      };
    """
    expected_source = """
      enum MyEnum {
        [EnableIf=blue]
        VALUE2,
        VALUE3
      };
    """
    self.parseAndAssertEqual(enum_source, expected_source)
Test that EnumValues are correctly filtered from an Enum.
Test that EnumValues are correctly filtered from an Enum.
Test that EnumValues are correctly filtered from an Enum .
def testFilterEnum(self):
    enum_source = """
      enum MyEnum {
        [EnableIf=purple]
        VALUE1,
        [EnableIf=blue]
        VALUE2,
        VALUE3,
      };
    """
    expected_source = """
      enum MyEnum {
        [EnableIf=blue]
        VALUE2,
        VALUE3
      };
    """
    self.parseAndAssertEqual(enum_source, expected_source)
def testFilterEnum ( self ) : enum_source = """
      enum MyEnum {
        [EnableIf=purple]
        VALUE1,
        [EnableIf=blue]
        VALUE2,
        VALUE3,
      };
    """ expected_source = """
      enum MyEnum {
        [EnableIf=blue]
        VALUE2,
        VALUE3
      };
    """ self . parseAndAssertEqual ( enum_source , expected_source )
Test that EnumValues are correctly filtered from an Enum.
Test that EnumValues are correctly filtered from an Enum .
"""Test that EnumValues are correctly filtered from an Enum."""
self