Files
build/tools/aconfig/tests/test.aconfig
Zhi Dou b52465da31 aconfig: add new testing flag enabled_fixed_ro_exported
This commit adds a new testing flag enabled_fixed_ro_exported to test
the case of a exported and fixed_read_only flag.

Test: atest aconfig.test aconfig.test.java AconfigJavaHostTest
aconfig.test.cpp aconfig.test.cpp.test_mode aconfig.prod_mode.test.rust
Bug: 316357680

Change-Id: Iaedb8a6875166c6a6d24c7c3deee701a496b4964
2023-12-19 16:40:53 +00:00

89 lines
2.2 KiB
Plaintext

package: "com.android.aconfig.test"
container: "system"
# This flag's final value is calculated from:
# - test.aconfig: DISABLED + READ_WRITE (default)
# - first.values: DISABLED + READ_WRITE
# - second.values: ENABLED + READ_ONLY
flag {
name: "enabled_ro"
namespace: "aconfig_test"
description: "This flag is ENABLED + READ_ONLY"
bug: "abc"
metadata {
purpose: PURPOSE_BUGFIX
}
}
# This flag's final value is calculated from:
# - test.aconfig: DISABLED + READ_WRITE (default)
# - first.values: ENABLED + READ_WRITE
flag {
name: "enabled_rw"
namespace: "aconfig_test"
description: "This flag is ENABLED + READ_WRITE"
# for bug fields, the empty string is a discouraged but valid value
bug: ""
}
# This flag's final value is calculated from:
# - test.aconfig: DISABLED + READ_WRITE (default)
# - first.values: DISABLED + READ_ONLY
flag {
name: "disabled_ro"
namespace: "aconfig_test"
description: "This flag is DISABLED + READ_ONLY"
bug: "123"
}
# This flag's final value is calculated from:
# - test.aconfig: DISABLED + READ_WRITE (default)
flag {
name: "disabled_rw"
namespace: "aconfig_test"
description: "This flag is DISABLED + READ_WRITE"
bug: "456"
}
# This flag's final value calculated from:
# - test.aconfig: DISABLED + READ_ONLY
# - first.values: ENABLED + READ_ONLY
flag {
name: "enabled_fixed_ro"
namespace: "aconfig_test"
description: "This flag is fixed READ_ONLY + ENABLED"
bug: ""
is_fixed_read_only: true
}
flag {
name: "disabled_rw_in_other_namespace"
namespace: "other_namespace"
description: "This flag is DISABLED + READ_WRITE, and is defined in another namespace"
bug: "999"
}
flag {
name: "enabled_ro_exported"
namespace: "aconfig_test"
description: "This flag is ENABLED + READ_ONLY and exported"
bug: "111"
is_exported: true
}
flag {
name: "disabled_rw_exported"
namespace: "aconfig_test"
description: "This flag is DISABLED + READ_WRITE and exported"
bug: "111"
is_exported: true
}
flag {
name: "enabled_fixed_ro_exported"
namespace: "aconfig_test"
description: "This flag is fixed ENABLED + READ_ONLY and exported"
bug: "111"
is_fixed_read_only: true
is_exported: true
}