X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Ftest_e2sm.h;h=a973df204ccf9f9c19a7a2810aac8f22bb945e33;hb=4edb52e022fe23b8951488c959458ad68b644d47;hp=82b0bfbbe663810580ed8c7e6bd5db0c44ceb984;hpb=ea129fa14c89d8f5cedacd9afc1e4dd7a30f1ae4;p=ric-app%2Fhw.git diff --git a/test/test_e2sm.h b/test/test_e2sm.h index 82b0bfb..a973df2 100644 --- a/test/test_e2sm.h +++ b/test/test_e2sm.h @@ -16,7 +16,7 @@ limitations under the License. ================================================================================== /* - * test_asn.h + * test_e2sm.h * * Created on: Apr, 2020 * Author: Shraboni Jana @@ -27,11 +27,11 @@ #include #include +#include "e2ap_control_request.hpp" #include "xapp.hpp" #include "e2sm_control.hpp" #include "e2ap_indication.hpp" #include "e2sm_indication.hpp" -#include "e2ap_control.hpp" using namespace std; TEST(E2SM, IndicationMessageEncode) @@ -58,18 +58,19 @@ TEST(E2SM, IndicationMessageEncode) E2APIndication e2obj(infoObj); bool res = e2obj.encode(buff, &buf_len); - if(!res) - { - std::cout << e2obj.get_error() << std::endl; - } - ASSERT_TRUE(res); + if(!res) + { + std::cout << e2obj.get_error() << std::endl; + } + ASSERT_TRUE(res); FILE * pFile; pFile = fopen ("indication2.per","w"); if (pFile!=NULL) { - fputs ((const char*)buff,pFile); + fwrite (buff , sizeof(char), buf_len, pFile); + sleep(2); fclose (pFile); } @@ -136,7 +137,7 @@ TEST(E2SM, ControlMessage) infoObj.set_ricRequestorID(1); infoObj.set_ricControlHeader(headObj); infoObj.set_ricControlMessage(msgObj); - + infoObj.set_ricCallProcessID("ProcessID"); E2APControlMessage cntrlObj(infoObj);