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

Commit 8d8ecf63 authored by T.J. Mercier's avatar T.J. Mercier
Browse files

libprocessgroup: Explicit field presence for MaxActivationDepth

https://protobuf.dev/programming-guides/field_presence/

Explicit field presence is required to support a MaxActivationDepth
value of 0 (the implicit default) for the libprocessgroup_proto_test.
Other non-zero values work fine.

All (positive) values of MaxActivationDepth work correctly at runtime.
This is a test-only fix.

Test: atest libprocessgroup_proto_test
Bug: 346584259
Bug: 377579705
Fixes: 28b37f27 ("libprocessgroup: Add MaxActivationDepth")
Change-Id: Ic3acc85790e1c84bef3f2bb50399011f28339c3b
parent 1de1f1d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -36,7 +36,7 @@ message Cgroup {
// https://developers.google.com/protocol-buffers/docs/proto3#default
// https://developers.google.com/protocol-buffers/docs/proto3#default
    bool needs_activation = 6 [json_name = "NeedsActivation"];
    bool needs_activation = 6 [json_name = "NeedsActivation"];
    bool is_optional = 7 [json_name = "Optional"];
    bool is_optional = 7 [json_name = "Optional"];
    uint32 max_activation_depth = 8 [json_name = "MaxActivationDepth"];
    optional uint32 max_activation_depth = 8 [json_name = "MaxActivationDepth"];
}
}


// Next: 6
// Next: 6