Merge "aconfig: cpp test-mode lib" into main

This commit is contained in:
Treehugger Robot
2024-09-19 17:42:29 +00:00
committed by Gerrit Code Review
2 changed files with 12 additions and 27 deletions

View File

@@ -283,39 +283,23 @@ public:
virtual ~flag_provider_interface() = default;
virtual bool disabled_ro() = 0;
virtual void disabled_ro(bool val) = 0;
virtual bool disabled_rw() = 0;
virtual void disabled_rw(bool val) = 0;
virtual bool disabled_rw_exported() = 0;
virtual void disabled_rw_exported(bool val) = 0;
virtual bool disabled_rw_in_other_namespace() = 0;
virtual void disabled_rw_in_other_namespace(bool val) = 0;
virtual bool enabled_fixed_ro() = 0;
virtual void enabled_fixed_ro(bool val) = 0;
virtual bool enabled_fixed_ro_exported() = 0;
virtual void enabled_fixed_ro_exported(bool val) = 0;
virtual bool enabled_ro() = 0;
virtual void enabled_ro(bool val) = 0;
virtual bool enabled_ro_exported() = 0;
virtual void enabled_ro_exported(bool val) = 0;
virtual bool enabled_rw() = 0;
virtual void disabled_ro(bool val) = 0;
virtual void disabled_rw(bool val) = 0;
virtual void disabled_rw_exported(bool val) = 0;
virtual void disabled_rw_in_other_namespace(bool val) = 0;
virtual void enabled_fixed_ro(bool val) = 0;
virtual void enabled_fixed_ro_exported(bool val) = 0;
virtual void enabled_ro(bool val) = 0;
virtual void enabled_ro_exported(bool val) = 0;
virtual void enabled_rw(bool val) = 0;
virtual void reset_flags() {}

View File

@@ -27,12 +27,13 @@ public:
{{ -for item in class_elements}}
virtual bool {item.flag_name}() = 0;
{{ -if is_test_mode }}
virtual void {item.flag_name}(bool val) = 0;
{{ -endif }}
{{ -endfor }}
{{ -if is_test_mode }}
{{ -for item in class_elements}}
virtual void {item.flag_name}(bool val) = 0;
{{ -endfor }}
virtual void reset_flags() \{}
{{ -endif }}
};