Lines Matching refs:actions
78 EXPECT_EQ(response.actions.size(), 3 /* share_location + 2 smart replies*/); in TEST_F()
88 EXPECT_THAT(response.actions, testing::IsEmpty()); in TEST_F()
103 ASSERT_GE(response.actions.size(), 1); in TEST_F()
104 EXPECT_EQ(response.actions.front().type, "view_map"); in TEST_F()
105 EXPECT_EQ(response.actions.front().score, 1.0); in TEST_F()
148 ASSERT_GE(response.actions.size(), 1); in TEST_F()
149 EXPECT_EQ(response.actions.front().type, "save_location"); in TEST_F()
150 EXPECT_EQ(response.actions.front().score, 1.0); in TEST_F()
156 response.actions.front().serialized_entity_data.data())); in TEST_F()
183 ASSERT_GE(response.actions.size(), 2); in TEST_F()
184 EXPECT_EQ(response.actions[0].type, "track_flight"); in TEST_F()
185 EXPECT_EQ(response.actions[0].score, 3.0); in TEST_F()
186 EXPECT_EQ(response.actions[1].type, "send_email"); in TEST_F()
187 EXPECT_EQ(response.actions[1].score, 2.0); in TEST_F()
224 ASSERT_GE(response.actions.size(), 3); in TEST_F()
225 EXPECT_EQ(response.actions[0].type, "track_flight"); in TEST_F()
226 EXPECT_EQ(response.actions[0].score, 3.0); in TEST_F()
227 EXPECT_EQ(response.actions[1].type, "track_flight"); in TEST_F()
228 EXPECT_EQ(response.actions[1].score, 2.5); in TEST_F()
229 EXPECT_EQ(response.actions[2].type, "send_email"); in TEST_F()
230 EXPECT_EQ(response.actions[2].score, 2.0); in TEST_F()
304 EXPECT_EQ(response.actions.size(), 1); in TEST_F()
305 EXPECT_EQ(response.actions[0].type, "track_flight"); in TEST_F()
319 EXPECT_EQ(response.actions.size(), 2); in TEST_F()
320 EXPECT_EQ(response.actions[0].type, "track_flight"); in TEST_F()
321 EXPECT_EQ(response.actions[1].type, "send_email"); in TEST_F()
335 EXPECT_EQ(response.actions.size(), 2); in TEST_F()
336 EXPECT_EQ(response.actions[0].type, "track_flight"); in TEST_F()
337 EXPECT_EQ(response.actions[1].type, "send_email"); in TEST_F()
352 EXPECT_EQ(response.actions.size(), 3); in TEST_F()
353 EXPECT_EQ(response.actions[0].type, "track_flight"); in TEST_F()
354 EXPECT_EQ(response.actions[1].type, "send_email"); in TEST_F()
355 EXPECT_EQ(response.actions[2].type, "send_email"); in TEST_F()
370 EXPECT_EQ(response.actions.size(), 3); in TEST_F()
371 EXPECT_EQ(response.actions[0].type, "track_flight"); in TEST_F()
372 EXPECT_EQ(response.actions[1].type, "send_email"); in TEST_F()
373 EXPECT_EQ(response.actions[2].type, "send_email"); in TEST_F()
388 EXPECT_EQ(response.actions.size(), 4); in TEST_F()
389 EXPECT_EQ(response.actions[0].type, "track_flight"); in TEST_F()
390 EXPECT_EQ(response.actions[1].type, "send_email"); in TEST_F()
391 EXPECT_EQ(response.actions[2].type, "send_email"); in TEST_F()
392 EXPECT_EQ(response.actions[3].type, "send_email"); in TEST_F()
418 EXPECT_LE(response.actions.size(), expected_size); in TestSuggestActionsWithThreshold()
512 rule->actions.push_back(std::move(rule_action)); in TEST_F()
522 rule->actions.push_back(std::move(rule_action)); in TEST_F()
548 ASSERT_GE(response.actions.size(), 1); in TEST_F()
549 EXPECT_EQ(response.actions[0].response_text, "General Kenobi!"); in TEST_F()
573 rule->actions.push_back(std::move(rule_action)); in TEST_F()
583 rule->actions.push_back(std::move(rule_action)); in TEST_F()
617 ASSERT_GE(response.actions.size(), 1); in TEST_F()
618 EXPECT_EQ(response.actions[0].response_text, "General Kenobi!"); in TEST_F()
653 EXPECT_THAT(response.actions, testing::IsEmpty()); in TEST_F()
687 ASSERT_GE(response.actions.size(), 1); in TEST_F()
688 EXPECT_EQ(response.actions[0].type, "view_map"); in TEST_F()
689 EXPECT_EQ(response.actions[0].score, 1.0); in TEST_F()
707 ASSERT_GE(response.actions.size(), 2); in TEST_F()
708 EXPECT_EQ(response.actions[0].type, "track_flight"); in TEST_F()
709 EXPECT_EQ(response.actions[0].score, 1.0); in TEST_F()
710 EXPECT_EQ(response.actions[0].annotations.size(), 1); in TEST_F()
711 EXPECT_EQ(response.actions[0].annotations[0].span.message_index, 0); in TEST_F()
712 EXPECT_EQ(response.actions[0].annotations[0].span.span, annotation.span); in TEST_F()
727 rule->actions.emplace_back(new RulesModel_::Rule_::RuleActionSpecT); in TEST_F()
728 rule->actions.back()->action.reset(new ActionSuggestionSpecT); in TEST_F()
729 ActionSuggestionSpecT* action = rule->actions.back()->action.get(); in TEST_F()
736 rule->actions.back()->capturing_group.emplace_back( in TEST_F()
739 rule->actions.back()->capturing_group.back().get(); in TEST_F()
744 rule->actions.back()->capturing_group.emplace_back( in TEST_F()
747 rule->actions.back()->capturing_group.back().get(); in TEST_F()
778 EXPECT_GE(response.actions.size(), 1); in TEST_F()
779 EXPECT_EQ(response.actions[0].response_text, "General Kenobi!"); in TEST_F()
784 response.actions[0].serialized_entity_data.data())); in TEST_F()
804 rule->actions.emplace_back(new RulesModel_::Rule_::RuleActionSpecT); in TEST_F()
807 rule->actions.back()->capturing_group.emplace_back( in TEST_F()
810 rule->actions.back()->capturing_group.back().get(); in TEST_F()
831 EXPECT_GE(response.actions.size(), 1); in TEST_F()
832 EXPECT_EQ(response.actions[0].response_text, "STOP"); in TEST_F()
844 for (const ActionSuggestion action : response.actions) { in TEST_F()
851 const int num_actions = response.actions.size(); in TEST_F()
863 actions_model->rules->rule.back()->actions.emplace_back( in TEST_F()
865 actions_model->rules->rule.back()->actions.back()->action.reset( in TEST_F()
868 actions_model->rules->rule.back()->actions.back()->action.get(); in TEST_F()
883 EXPECT_EQ(response.actions.size(), num_actions); in TEST_F()
900 EXPECT_GE(response.actions.size(), 1); in TEST_F()
901 EXPECT_EQ(response.actions[0].type, "track_flight"); in TEST_F()
914 rule->actions.emplace_back(new RulesModel_::Rule_::RuleActionSpecT); in TEST_F()
915 rule->actions.back()->action.reset(new ActionSuggestionSpecT); in TEST_F()
916 ActionSuggestionSpecT* action = rule->actions.back()->action.get(); in TEST_F()
920 rule->actions.back()->capturing_group.emplace_back( in TEST_F()
923 rule->actions.back()->capturing_group.back().get(); in TEST_F()
941 EXPECT_GE(response.actions.size(), 1); in TEST_F()
942 EXPECT_EQ(response.actions[0].type, "test_code"); in TEST_F()
960 EXPECT_GE(response.actions.size(), 2); in TEST_F()
961 EXPECT_EQ(response.actions[0].type, "view_map"); in TEST_F()
962 EXPECT_EQ(response.actions[0].score, 2.0); in TEST_F()
963 EXPECT_EQ(response.actions[1].type, "view_map"); in TEST_F()
964 EXPECT_EQ(response.actions[1].score, 1.0); in TEST_F()
996 EXPECT_THAT(response.actions, testing::IsEmpty()); in TEST_F()
1007 response.actions, in TEST_F()
1019 response.actions, in TEST_F()