diff options
-rw-r--r-- | src/gtest/trex_stateless_gtest.cpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/gtest/trex_stateless_gtest.cpp b/src/gtest/trex_stateless_gtest.cpp index da652599..b80067b4 100644 --- a/src/gtest/trex_stateless_gtest.cpp +++ b/src/gtest/trex_stateless_gtest.cpp @@ -1964,11 +1964,12 @@ TEST_F(basic_stl, vm_enable0) { // stream - clean - TrexStreamsCompiledObj comp_obj(port_id, 1.0 /*mul*/); - assert(compile.compile(streams, comp_obj) ); + std::vector<TrexStreamsCompiledObj *> objs; + + assert(compile.compile(port_id,streams, objs) ); - TrexStatelessDpStart * lpstart = new TrexStatelessDpStart(port_id, 0, comp_obj.clone(), 10.0 /*sec */ ); + TrexStatelessDpStart * lpstart = new TrexStatelessDpStart(port_id, 0, objs[0], 10.0 /*sec */ ); t1.m_msg = lpstart; @@ -1980,6 +1981,7 @@ TEST_F(basic_stl, vm_enable0) { EXPECT_EQ_UINT32(1, res?1:0)<< "pass"; } + TEST_F(basic_stl, vm_enable1) { CBasicStl t1; @@ -2014,11 +2016,12 @@ TEST_F(basic_stl, vm_enable1) { // stream - clean - TrexStreamsCompiledObj comp_obj(port_id, 1.0 /*mul*/); - assert(compile.compile(streams, comp_obj) ); + std::vector<TrexStreamsCompiledObj *> objs; - TrexStatelessDpStart * lpstart = new TrexStatelessDpStart(port_id, 0, comp_obj.clone(), 10.0 /*sec */ ); + assert(compile.compile(port_id,streams, objs) ); + + TrexStatelessDpStart * lpstart = new TrexStatelessDpStart(port_id, 0, objs[0], 10.0 /*sec */ ); t1.m_msg = lpstart; @@ -2064,11 +2067,10 @@ TEST_F(basic_stl, vm_enable2) { // stream - clean - TrexStreamsCompiledObj comp_obj(port_id, 1.0 /*mul*/); - - assert(compile.compile(streams, comp_obj) ); + std::vector<TrexStreamsCompiledObj *> objs; + assert(compile.compile(port_id,streams, objs) ); - TrexStatelessDpStart * lpstart = new TrexStatelessDpStart(port_id, 0, comp_obj.clone(), 10.0 /*sec */ ); + TrexStatelessDpStart * lpstart = new TrexStatelessDpStart(port_id, 0, objs[0], 10.0 /*sec */ ); t1.m_msg = lpstart; |