Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b1dd186 authored by Dennis Shen's avatar Dennis Shen Committed by Gerrit Code Review
Browse files

Merge "Update test mode codegen for nextfood" into main

parents 1401f02e 22d65ae9
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -30,15 +30,18 @@ namespace {cpp_namespace} \{
        std::unordered_map<std::string, bool> overrides_;

    {{ if allow_instrumentation- }}
    {{ if readwrite- }}
        uint32_t boolean_start_index_;

        std::unique_ptr<aconfig_storage::MappedStorageFile> flag_value_file_;

        bool package_exists_in_storage_;
    {{ -endif }}
    {{ -endif }}

    public:
    {{ if allow_instrumentation- }}
    {{ if readwrite- }}
        flag_provider()
            : overrides_()
            , boolean_start_index_()
@@ -94,6 +97,11 @@ namespace {cpp_namespace} \{
            : overrides_()
        \{}
    {{ -endif }}
    {{ -else }}
        flag_provider()
            : overrides_()
        \{}
    {{ -endif }}

    {{ for item in class_elements }}
        virtual bool {item.flag_name}() override \{