aconfig: update rust code gen to use libflags_rust
Bug: b/284096062, b/279483360 Test: atest aconfig.test Change-Id: I4c96f35807de5cb2a745ba1c653513d9b22a5013
This commit is contained in:
@@ -111,7 +111,7 @@ pub const fn r#test_disabled_ro() -> bool {
|
||||
|
||||
#[inline(always)]
|
||||
pub fn r#test_disabled_rw() -> bool {
|
||||
profcollect_libflags_rust::GetServerConfigurableFlag("test", "disabled_rw", "false") == "true"
|
||||
flags_rust::GetServerConfigurableFlag("test", "disabled_rw", "false") == "true"
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
@@ -121,7 +121,7 @@ pub const fn r#test_enabled_ro() -> bool {
|
||||
|
||||
#[inline(always)]
|
||||
pub fn r#test_enabled_rw() -> bool {
|
||||
profcollect_libflags_rust::GetServerConfigurableFlag("test", "enabled_rw", "false") == "true"
|
||||
flags_rust::GetServerConfigurableFlag("test", "enabled_rw", "false") == "true"
|
||||
}
|
||||
"#;
|
||||
assert_eq!(expected.trim(), String::from_utf8(generated.contents).unwrap().trim());
|
||||
|
Reference in New Issue
Block a user