Sync proto from google3

Default initial value for Condition changed to false

Test: statsd_test

Change-Id: I73ad80d873f2ff1264d18b1eec6d882ad0e9bb6f
This commit is contained in:
Yao Chen
2017-11-16 10:10:30 -08:00
parent d41c4220d0
commit a81a0ffa52
2 changed files with 2 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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;