Merge "rename neq_all_string to neq_any_string in statsd_config" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3991138f3a
@@ -236,8 +236,8 @@ bool matchesSimple(const UidMap& uidMap, const FieldValueMatcher& matcher,
|
||||
}
|
||||
return false;
|
||||
}
|
||||
case FieldValueMatcher::ValueMatcherCase::kNeqAllString: {
|
||||
const auto& str_list = matcher.neq_all_string();
|
||||
case FieldValueMatcher::ValueMatcherCase::kNeqAnyString: {
|
||||
const auto& str_list = matcher.neq_any_string();
|
||||
for (int i = start; i < end; i++) {
|
||||
bool notEqAll = true;
|
||||
for (const auto& str : str_list.str_value()) {
|
||||
|
||||
@@ -78,7 +78,7 @@ message FieldValueMatcher {
|
||||
MessageMatcher matches_tuple = 12;
|
||||
|
||||
StringListMatcher eq_any_string = 13;
|
||||
StringListMatcher neq_all_string = 14;
|
||||
StringListMatcher neq_any_string = 14;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -339,7 +339,7 @@ TEST(AtomMatcherTest, TestNeqAnyStringMatcher) {
|
||||
ATTRIBUTION_UID_FIELD_ID);
|
||||
auto neqStringList = attributionMatcher->mutable_matches_tuple()
|
||||
->mutable_field_value_matcher(0)
|
||||
->mutable_neq_all_string();
|
||||
->mutable_neq_any_string();
|
||||
neqStringList->add_str_value("pkg2");
|
||||
neqStringList->add_str_value("pkg3");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user