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

Commit a81a0ffa authored by Yao Chen's avatar Yao Chen
Browse files

Sync proto from google3

Default initial value for Condition changed to false

Test: statsd_test

Change-Id: I73ad80d873f2ff1264d18b1eec6d882ad0e9bb6f
parent d41c4220
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ message SimpleCondition {
    UNKNOWN = 0;
    FALSE = 1;
  }
  optional InitialValue initial_value = 5 [default = UNKNOWN];
  optional InitialValue initial_value = 5 [default = FALSE];

  repeated KeyMatcher dimension = 6;
}
+1 −0
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ TEST(SimpleConditionTrackerTest, TestNonSlicedCondition) {
    simpleCondition.set_start("SCREEN_TURNED_ON");
    simpleCondition.set_stop("SCREEN_TURNED_OFF");
    simpleCondition.set_count_nesting(false);
    simpleCondition.set_initial_value(SimpleCondition_InitialValue_UNKNOWN);

    unordered_map<string, int> trackerNameIndexMap;
    trackerNameIndexMap["SCREEN_TURNED_ON"] = 0;