X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=fhi_lib%2Ftest%2Ftest_xran%2Fprach_functional.cc;fp=fhi_lib%2Ftest%2Ftest_xran%2Fprach_functional.cc;h=33213a5cdc66272af2b166dbe874b0e98c61ea12;hp=e7e1a01625eb52648e4f228a882e541583f4e500;hb=2de97529a4c5a1922214ba0e6f0fb84cacbd0bc7;hpb=81a09690b36b3a4e89b4dae34f30933de13f7f90 diff --git a/fhi_lib/test/test_xran/prach_functional.cc b/fhi_lib/test/test_xran/prach_functional.cc index e7e1a01..33213a5 100644 --- a/fhi_lib/test/test_xran/prach_functional.cc +++ b/fhi_lib/test/test_xran/prach_functional.cc @@ -1,6 +1,6 @@ /****************************************************************************** * -* Copyright (c) 2019 Intel. +* Copyright (c) 2020 Intel. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -174,7 +174,7 @@ protected: }; -TEST_P(PrachCheck, PacketGen)//TestCaseName TestName +TEST_P(PrachCheck, PrachPacketGen)//TestCaseName TestName { int ret; int32_t i; @@ -208,9 +208,9 @@ TEST_P(PrachCheck, PacketGen)//TestCaseName TestName ret = xran_open(pHandle, m_xranConf); ASSERT_TRUE(ret == XRAN_STATUS_SUCCESS); - ret = generate_cpmsg_prach(pHandle, &m_params, m_pSectGenInfo, m_pTestBuffer, &m_xran_dev_ctx, + ret = generate_cpmsg_prach(&m_xran_dev_ctx, &m_params, m_pSectGenInfo, m_pTestBuffer, &m_xran_dev_ctx, m_frameId, m_subframeId, m_slotId, - m_beamId, m_ccId, m_antId, 0); + m_beamId, m_ccId, m_antId, 0, 0); ASSERT_TRUE(ret == XRAN_STATUS_SUCCESS); /* Verify the result */ EXPECT_EQ(m_params.sectionType, XRAN_CP_SECTIONTYPE_3); @@ -238,7 +238,7 @@ TEST_P(PrachCheck, PacketGen)//TestCaseName TestName EXPECT_EQ(m_params.sections[0].info.symInc, XRAN_SYMBOLNUMBER_NOTINC); EXPECT_EQ(m_params.sections[0].info.startPrbc, m_startPrbc); EXPECT_EQ(m_params.sections[0].info.numPrbc, m_numPrbc); - EXPECT_EQ(m_params.sections[0].info.numSymbol, m_numSymbol*m_occassionsInPrachSlot); + EXPECT_EQ(m_params.sections[0].info.numSymbol, m_numSymbol); EXPECT_EQ(m_params.sections[0].info.reMask, 0xfff); EXPECT_EQ(m_params.sections[0].info.beamId, m_beamId); EXPECT_EQ(m_params.sections[0].info.freqOffset, m_freqOffset);