Code Review
/
ric-app
/
hw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Control Message Encode/Decode
[ric-app/hw.git]
/
test
/
test_e2sm.h
diff --git
a/test/test_e2sm.h
b/test/test_e2sm.h
index
82b0bfb
..
a973df2
100644
(file)
--- a/
test/test_e2sm.h
+++ b/
test/test_e2sm.h
@@
-16,7
+16,7
@@
limitations under the License.
==================================================================================
/*
limitations under the License.
==================================================================================
/*
- * test_
asn
.h
+ * test_
e2sm
.h
*
* Created on: Apr, 2020
* Author: Shraboni Jana
*
* Created on: Apr, 2020
* Author: Shraboni Jana
@@
-27,11
+27,11
@@
#include<iostream>
#include<gtest/gtest.h>
#include<iostream>
#include<gtest/gtest.h>
+#include "e2ap_control_request.hpp"
#include "xapp.hpp"
#include "e2sm_control.hpp"
#include "e2ap_indication.hpp"
#include "e2sm_indication.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)
using namespace std;
TEST(E2SM, IndicationMessageEncode)
@@
-58,18
+58,19
@@
TEST(E2SM, IndicationMessageEncode)
E2APIndication<HWIndicationHeader,HWIndicationMessage> e2obj(infoObj);
bool res = e2obj.encode(buff, &buf_len);
E2APIndication<HWIndicationHeader,HWIndicationMessage> 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)
{
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);
}
fclose (pFile);
}
@@
-136,7
+137,7
@@
TEST(E2SM, ControlMessage)
infoObj.set_ricRequestorID(1);
infoObj.set_ricControlHeader(headObj);
infoObj.set_ricControlMessage(msgObj);
infoObj.set_ricRequestorID(1);
infoObj.set_ricControlHeader(headObj);
infoObj.set_ricControlMessage(msgObj);
-
+ infoObj.set_ricCallProcessID("ProcessID");
E2APControlMessage<HWControlHeader,HWControlMessage> cntrlObj(infoObj);
E2APControlMessage<HWControlHeader,HWControlMessage> cntrlObj(infoObj);