lte/gateway/c/session_manager/test/test_sessiond_integ.cpp
// Take the SessionID from the request as it is generated internally
Take the SessionID from the request as it is generated internally
Take the SessionID from the request as it is generated internally
ACTION_P2(SetCreateSessionResponse, first_quota, second_quota) {
  auto req = static_cast<const CreateSessionRequest*>(arg1);
  auto res = static_cast<CreateSessionResponse*>(arg2);
  auto imsi = req->common_context().sid().id();
  res->mutable_static_rules()->Add()->mutable_rule_id()->assign("rule1");
  res->mutable_static_rules()->Add()->mutable_rule_id()->assign("rule2");
  res->mutable_static_rules()->Add()->mutable_rule_id()->assign("rule3");
  create_credit_update_response(imsi, req->session_id(), 1, first_quota,
                                res->mutable_credits()->Add());
  create_credit_update_response(imsi, req->session_id(), 2, second_quota,
                                res->mutable_credits()->Add());
}
ACTION_P2 ( SetCreateSessionResponse , first_quota , second_quota ) { auto req = static_cast < const CreateSessionRequest * > ( arg1 ) ; auto res = static_cast < CreateSessionResponse * > ( arg2 ) ; auto imsi = req -> common_context ( ) . sid ( ) . id ( ) ; res -> mutable_static_rules ( ) -> Add ( ) -> mutable_rule_id ( ) -> assign ( " " ) ; res -> mutable_static_rules ( ) -> Add ( ) -> mutable_rule_id ( ) -> assign ( " " ) ; res -> mutable_static_rules ( ) -> Add ( ) -> mutable_rule_id ( ) -> assign ( " " ) ; create_credit_update_response ( imsi , req -> session_id ( ) , 1 , first_quota , res -> mutable_credits ( ) -> Add ( ) ) ; create_credit_update_response ( imsi , req -> session_id ( ) , 2 , second_quota , res -> mutable_credits ( ) -> Add ( ) ) ; }
Take the SessionID from the request as it is generated internally
Take the SessionID from the request as it is generated internally