1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-27 01:14:51 +00:00
Carles Fernandez 2017-06-25 22:53:11 +02:00
parent 2ab963ff49
commit 40f02e30c2
19 changed files with 104 additions and 108 deletions

View File

@ -37,7 +37,7 @@
TEST(CodeGenGPSL1_Test, CodeGeneration) TEST(CodeGenGPSL1Test, CodeGeneration)
{ {
std::complex<float>* _dest = new std::complex<float>[1023]; std::complex<float>* _dest = new std::complex<float>[1023];
signed int _prn = 1; signed int _prn = 1;
@ -83,7 +83,7 @@ TEST(CodeGenGPSL1_Test, CodeGeneration)
TEST(CodeGenGPSL1Sampled_Test, CodeGeneration) TEST(CodeGenGPSL1SampledTest, CodeGeneration)
{ {
signed int _prn = 1; signed int _prn = 1;
unsigned int _chip_shift = 4; unsigned int _chip_shift = 4;
@ -132,7 +132,7 @@ TEST(CodeGenGPSL1Sampled_Test, CodeGeneration)
} }
TEST(ComplexCarrier_Test, CodeGeneration) TEST(ComplexCarrierTest, CodeGeneration)
{ {
double _fs = 8000000; double _fs = 8000000;
double _f = 4000; double _f = 4000;

View File

@ -38,7 +38,7 @@
DEFINE_int32(size_carrier_test, 100000, "Size of the arrays used for complex carrier testing"); DEFINE_int32(size_carrier_test, 100000, "Size of the arrays used for complex carrier testing");
TEST(ComplexCarrier_Test, StandardComplexImplementation) TEST(ComplexCarrierTest, StandardComplexImplementation)
{ {
// Dynamic allocation creates new usable space on the program STACK // Dynamic allocation creates new usable space on the program STACK
// (an area of RAM specifically allocated to the program) // (an area of RAM specifically allocated to the program)
@ -80,7 +80,7 @@ TEST(ComplexCarrier_Test, StandardComplexImplementation)
} }
TEST(ComplexCarrier_Test, C11ComplexImplementation) TEST(ComplexCarrierTest, C11ComplexImplementation)
{ {
// declaration: load data onto the program data segment // declaration: load data onto the program data segment
std::vector<std::complex<float>> output(FLAGS_size_carrier_test); std::vector<std::complex<float>> output(FLAGS_size_carrier_test);
@ -115,7 +115,7 @@ TEST(ComplexCarrier_Test, C11ComplexImplementation)
TEST(ComplexCarrier_Test, OwnComplexImplementation) TEST(ComplexCarrierTest, OwnComplexImplementation)
{ {
std::complex<float>* output = new std::complex<float>[FLAGS_size_carrier_test]; std::complex<float>* output = new std::complex<float>[FLAGS_size_carrier_test];
double _f = 2000; double _f = 2000;

View File

@ -40,7 +40,7 @@ DEFINE_int32(size_conjugate_test, 100000, "Size of the arrays used for conjugate
TEST(Conjugate_Test, StandardCComplexImplementation) TEST(ConjugateTest, StandardCComplexImplementation)
{ {
std::complex<float>* input = new std::complex<float>[FLAGS_size_conjugate_test]; std::complex<float>* input = new std::complex<float>[FLAGS_size_conjugate_test];
std::complex<float>* output = new std::complex<float>[FLAGS_size_conjugate_test]; std::complex<float>* output = new std::complex<float>[FLAGS_size_conjugate_test];
@ -68,7 +68,7 @@ TEST(Conjugate_Test, StandardCComplexImplementation)
} }
TEST(Conjugate_Test, C11ComplexImplementation) TEST(ConjugateTest, C11ComplexImplementation)
{ {
const std::vector<std::complex<float>> input(FLAGS_size_conjugate_test); const std::vector<std::complex<float>> input(FLAGS_size_conjugate_test);
std::vector<std::complex<float>> output(FLAGS_size_conjugate_test); std::vector<std::complex<float>> output(FLAGS_size_conjugate_test);
@ -97,7 +97,7 @@ TEST(Conjugate_Test, C11ComplexImplementation)
} }
TEST(Conjugate_Test, ArmadilloComplexImplementation) TEST(ConjugateTest, ArmadilloComplexImplementation)
{ {
arma::cx_fvec input(FLAGS_size_conjugate_test, arma::fill::zeros); arma::cx_fvec input(FLAGS_size_conjugate_test, arma::fill::zeros);
arma::cx_fvec output(FLAGS_size_conjugate_test); arma::cx_fvec output(FLAGS_size_conjugate_test);
@ -117,7 +117,7 @@ TEST(Conjugate_Test, ArmadilloComplexImplementation)
} }
TEST(Conjugate_Test, VolkComplexImplementation) TEST(ConjugateTest, VolkComplexImplementation)
{ {
std::complex<float>* input = static_cast<std::complex<float>*>(volk_gnsssdr_malloc(FLAGS_size_conjugate_test * sizeof(std::complex<float>), volk_gnsssdr_get_alignment())); std::complex<float>* input = static_cast<std::complex<float>*>(volk_gnsssdr_malloc(FLAGS_size_conjugate_test * sizeof(std::complex<float>), volk_gnsssdr_get_alignment()));
std::complex<float>* output = static_cast<std::complex<float>*>(volk_gnsssdr_malloc(FLAGS_size_conjugate_test * sizeof(std::complex<float>), volk_gnsssdr_get_alignment())); std::complex<float>* output = static_cast<std::complex<float>*>(volk_gnsssdr_malloc(FLAGS_size_conjugate_test * sizeof(std::complex<float>), volk_gnsssdr_get_alignment()));

View File

@ -35,7 +35,7 @@
DEFINE_int32(fft_iterations_test, 1000, "Number of averaged iterations in FFT length timing test"); DEFINE_int32(fft_iterations_test, 1000, "Number of averaged iterations in FFT length timing test");
TEST(FFT_Length_Test, MeasureExecutionTime) TEST(FFTLengthTest, MeasureExecutionTime)
{ {
unsigned int d_fft_size; unsigned int d_fft_size;
struct timeval tv; struct timeval tv;

View File

@ -40,7 +40,7 @@
DEFINE_int32(size_magnitude_test, 100000, "Size of the arrays used for magnitude testing"); DEFINE_int32(size_magnitude_test, 100000, "Size of the arrays used for magnitude testing");
TEST(MagnitudeSquared_Test, StandardCComplexImplementation) TEST(MagnitudeSquaredTest, StandardCComplexImplementation)
{ {
std::complex<float>* input = new std::complex<float>[FLAGS_size_magnitude_test]; std::complex<float>* input = new std::complex<float>[FLAGS_size_magnitude_test];
float* output = new float[FLAGS_size_magnitude_test]; float* output = new float[FLAGS_size_magnitude_test];
@ -64,7 +64,7 @@ TEST(MagnitudeSquared_Test, StandardCComplexImplementation)
ASSERT_LE(0, end - begin); ASSERT_LE(0, end - begin);
} }
TEST(MagnitudeSquared_Test, C11ComplexImplementation) TEST(MagnitudeSquaredTest, C11ComplexImplementation)
{ {
const std::vector<std::complex<float>> input(FLAGS_size_magnitude_test); const std::vector<std::complex<float>> input(FLAGS_size_magnitude_test);
std::vector<float> output(FLAGS_size_magnitude_test); std::vector<float> output(FLAGS_size_magnitude_test);
@ -95,7 +95,7 @@ TEST(MagnitudeSquared_Test, C11ComplexImplementation)
} }
TEST(MagnitudeSquared_Test, ArmadilloComplexImplementation) TEST(MagnitudeSquaredTest, ArmadilloComplexImplementation)
{ {
arma::cx_fvec input(FLAGS_size_magnitude_test, arma::fill::zeros); arma::cx_fvec input(FLAGS_size_magnitude_test, arma::fill::zeros);
arma::fvec output(FLAGS_size_magnitude_test); arma::fvec output(FLAGS_size_magnitude_test);
@ -115,7 +115,7 @@ TEST(MagnitudeSquared_Test, ArmadilloComplexImplementation)
TEST(MagnitudeSquared_Test, VolkComplexImplementation) TEST(MagnitudeSquaredTest, VolkComplexImplementation)
{ {
std::complex<float>* input = static_cast<std::complex<float>*>(volk_gnsssdr_malloc(FLAGS_size_magnitude_test * sizeof(std::complex<float>), volk_gnsssdr_get_alignment())); std::complex<float>* input = static_cast<std::complex<float>*>(volk_gnsssdr_malloc(FLAGS_size_magnitude_test * sizeof(std::complex<float>), volk_gnsssdr_get_alignment()));
memset(input, 0, sizeof(std::complex<float>) * FLAGS_size_magnitude_test); memset(input, 0, sizeof(std::complex<float>) * FLAGS_size_magnitude_test);

View File

@ -41,7 +41,7 @@
DEFINE_int32(size_multiply_test, 100000, "Size of the arrays used for multiply testing"); DEFINE_int32(size_multiply_test, 100000, "Size of the arrays used for multiply testing");
TEST(Multiply_Test, StandardCDoubleImplementation) TEST(MultiplyTest, StandardCDoubleImplementation)
{ {
double* input = new double[FLAGS_size_multiply_test]; double* input = new double[FLAGS_size_multiply_test];
double* output = new double[FLAGS_size_multiply_test]; double* output = new double[FLAGS_size_multiply_test];
@ -74,7 +74,7 @@ TEST(Multiply_Test, StandardCDoubleImplementation)
} }
TEST(Multiply_Test, ArmadilloImplementation) TEST(MultiplyTest, ArmadilloImplementation)
{ {
arma::vec input(FLAGS_size_multiply_test, arma::fill::zeros); arma::vec input(FLAGS_size_multiply_test, arma::fill::zeros);
arma::vec output(FLAGS_size_multiply_test); arma::vec output(FLAGS_size_multiply_test);
@ -96,7 +96,7 @@ TEST(Multiply_Test, ArmadilloImplementation)
TEST(Multiply_Test, StandardCComplexImplementation) TEST(MultiplyTest, StandardCComplexImplementation)
{ {
std::complex<float>* input = new std::complex<float>[FLAGS_size_multiply_test]; std::complex<float>* input = new std::complex<float>[FLAGS_size_multiply_test];
std::complex<float>* output = new std::complex<float>[FLAGS_size_multiply_test]; std::complex<float>* output = new std::complex<float>[FLAGS_size_multiply_test];
@ -130,7 +130,7 @@ TEST(Multiply_Test, StandardCComplexImplementation)
TEST(Multiply_Test, C11ComplexImplementation) TEST(MultiplyTest, C11ComplexImplementation)
{ {
const std::vector<std::complex<float>> input(FLAGS_size_multiply_test); const std::vector<std::complex<float>> input(FLAGS_size_multiply_test);
std::vector<std::complex<float>> output(FLAGS_size_multiply_test); std::vector<std::complex<float>> output(FLAGS_size_multiply_test);
@ -158,7 +158,7 @@ TEST(Multiply_Test, C11ComplexImplementation)
} }
TEST(Multiply_Test, ArmadilloComplexImplementation) TEST(MultiplyTest, ArmadilloComplexImplementation)
{ {
arma::cx_fvec input(FLAGS_size_multiply_test, arma::fill::zeros); arma::cx_fvec input(FLAGS_size_multiply_test, arma::fill::zeros);
arma::cx_fvec output(FLAGS_size_multiply_test); arma::cx_fvec output(FLAGS_size_multiply_test);
@ -181,7 +181,7 @@ TEST(Multiply_Test, ArmadilloComplexImplementation)
TEST(Multiply_Test, VolkComplexImplementation) TEST(MultiplyTest, VolkComplexImplementation)
{ {
std::complex<float>* input = static_cast<std::complex<float>*>(volk_gnsssdr_malloc(FLAGS_size_multiply_test * sizeof(std::complex<float>), volk_gnsssdr_get_alignment())); std::complex<float>* input = static_cast<std::complex<float>*>(volk_gnsssdr_malloc(FLAGS_size_multiply_test * sizeof(std::complex<float>), volk_gnsssdr_get_alignment()));
std::complex<float>* output = static_cast<std::complex<float>*>(volk_gnsssdr_malloc(FLAGS_size_multiply_test * sizeof(std::complex<float>), volk_gnsssdr_get_alignment())); std::complex<float>* output = static_cast<std::complex<float>*>(volk_gnsssdr_malloc(FLAGS_size_multiply_test * sizeof(std::complex<float>), volk_gnsssdr_get_alignment()));

View File

@ -38,7 +38,7 @@
TEST(Control_Message_Factory_Test, GetQueueMessage) TEST(ControlMessageFactoryTest, GetQueueMessage)
{ {
std::shared_ptr<ControlMessageFactory> factory = std::make_shared<ControlMessageFactory>(); std::shared_ptr<ControlMessageFactory> factory = std::make_shared<ControlMessageFactory>();
gr::message::sptr queue_message = factory->GetQueueMessage(0, 2); gr::message::sptr queue_message = factory->GetQueueMessage(0, 2);
@ -53,7 +53,7 @@ TEST(Control_Message_Factory_Test, GetQueueMessage)
TEST(Control_Message_Factory_Test, GetControlMessages) TEST(ControlMessageFactoryTest, GetControlMessages)
{ {
std::shared_ptr<ControlMessageFactory> factory = std::make_shared<ControlMessageFactory>(); std::shared_ptr<ControlMessageFactory> factory = std::make_shared<ControlMessageFactory>();
gr::message::sptr queue_message = gr::message::make(0, 0, 0, sizeof(ControlMessage)); gr::message::sptr queue_message = gr::message::make(0, 0, 0, sizeof(ControlMessage));
@ -74,7 +74,7 @@ TEST(Control_Message_Factory_Test, GetControlMessages)
/* /*
TEST(Control_Message_Factory_Test, GetControlMessagesWrongSize) TEST(ControlMessageFactoryTest, GetControlMessagesWrongSize)
{ {
std::shared_ptr<ControlMessageFactory> factory = std::make_shared<ControlMessageFactory>(); std::shared_ptr<ControlMessageFactory> factory = std::make_shared<ControlMessageFactory>();

View File

@ -53,7 +53,7 @@
#include "control_message_factory.h" #include "control_message_factory.h"
class Control_Thread_Test: public ::testing::Test class ControlThreadTest: public ::testing::Test
{ {
public: public:
static int stop_receiver(); static int stop_receiver();
@ -64,7 +64,7 @@ public:
}; };
int Control_Thread_Test::stop_receiver() int ControlThreadTest::stop_receiver()
{ {
message_buffer msg_stop; message_buffer msg_stop;
msg_stop.mtype = 1; msg_stop.mtype = 1;
@ -86,7 +86,7 @@ int Control_Thread_Test::stop_receiver()
} }
TEST_F(Control_Thread_Test, InstantiateRunControlMessages) TEST_F(ControlThreadTest, InstantiateRunControlMessages)
{ {
std::shared_ptr<InMemoryConfiguration> config = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> config = std::make_shared<InMemoryConfiguration>();
@ -147,7 +147,7 @@ TEST_F(Control_Thread_Test, InstantiateRunControlMessages)
} }
TEST_F(Control_Thread_Test, InstantiateRunControlMessages2) TEST_F(ControlThreadTest, InstantiateRunControlMessages2)
{ {
std::shared_ptr<InMemoryConfiguration> config = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> config = std::make_shared<InMemoryConfiguration>();
config->set_property("SignalSource.implementation", "File_Signal_Source"); config->set_property("SignalSource.implementation", "File_Signal_Source");
@ -211,7 +211,7 @@ TEST_F(Control_Thread_Test, InstantiateRunControlMessages2)
TEST_F(Control_Thread_Test, StopReceiverProgrammatically) TEST_F(ControlThreadTest, StopReceiverProgrammatically)
{ {
std::shared_ptr<InMemoryConfiguration> config = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> config = std::make_shared<InMemoryConfiguration>();
config->set_property("SignalSource.implementation", "File_Signal_Source"); config->set_property("SignalSource.implementation", "File_Signal_Source");

View File

@ -36,7 +36,7 @@
TEST(File_Configuration_Test, OverridedProperties) TEST(FileConfigurationTest, OverridedProperties)
{ {
std::string path = std::string(TEST_PATH); std::string path = std::string(TEST_PATH);
std::string filename = path + "data/config_file_sample.txt"; std::string filename = path + "data/config_file_sample.txt";
@ -52,7 +52,7 @@ TEST(File_Configuration_Test, OverridedProperties)
TEST(File_Configuration_Test, LoadFromNonExistentFile) TEST(FileConfigurationTest, LoadFromNonExistentFile)
{ {
std::unique_ptr<ConfigurationInterface> configuration(new FileConfiguration("./i_dont_exist.conf")); std::unique_ptr<ConfigurationInterface> configuration(new FileConfiguration("./i_dont_exist.conf"));
std::string default_value = "default_value"; std::string default_value = "default_value";
@ -62,7 +62,7 @@ TEST(File_Configuration_Test, LoadFromNonExistentFile)
TEST(File_Configuration_Test, PropertyDoesNotExist) TEST(FileConfigurationTest, PropertyDoesNotExist)
{ {
std::string path = std::string(TEST_PATH); std::string path = std::string(TEST_PATH);
std::string filename = path + "data/config_file_sample.txt"; std::string filename = path + "data/config_file_sample.txt";

View File

@ -46,7 +46,7 @@
#include "gnss_block_factory.h" #include "gnss_block_factory.h"
#include "channel.h" #include "channel.h"
TEST(GNSS_Block_Factory_Test, InstantiateFileSignalSource) TEST(GNSSBlockFactoryTest, InstantiateFileSignalSource)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("SignalSource.implementation", "File_Signal_Source"); configuration->set_property("SignalSource.implementation", "File_Signal_Source");
@ -63,7 +63,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateFileSignalSource)
} }
TEST(GNSS_Block_Factory_Test, InstantiateWrongSignalSource) TEST(GNSSBlockFactoryTest, InstantiateWrongSignalSource)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("SignalSource.implementation", "Pepito"); configuration->set_property("SignalSource.implementation", "Pepito");
@ -76,7 +76,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateWrongSignalSource)
} }
TEST(GNSS_Block_Factory_Test, InstantiateSignalConditioner) TEST(GNSSBlockFactoryTest, InstantiateSignalConditioner)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("SignalConditioner.implementation", "Signal_Conditioner"); configuration->set_property("SignalConditioner.implementation", "Signal_Conditioner");
@ -87,7 +87,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateSignalConditioner)
} }
TEST(GNSS_Block_Factory_Test, InstantiateFIRFilter) TEST(GNSSBlockFactoryTest, InstantiateFIRFilter)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
gr::msg_queue::sptr queue = gr::msg_queue::make(0); gr::msg_queue::sptr queue = gr::msg_queue::make(0);
@ -120,7 +120,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateFIRFilter)
EXPECT_STREQ("Fir_Filter", input_filter->implementation().c_str()); EXPECT_STREQ("Fir_Filter", input_filter->implementation().c_str());
} }
TEST(GNSS_Block_Factory_Test, InstantiateFreqXlatingFIRFilter) TEST(GNSSBlockFactoryTest, InstantiateFreqXlatingFIRFilter)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
gr::msg_queue::sptr queue = gr::msg_queue::make(0); gr::msg_queue::sptr queue = gr::msg_queue::make(0);
@ -155,7 +155,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateFreqXlatingFIRFilter)
EXPECT_STREQ("Freq_Xlating_Fir_Filter", input_filter->implementation().c_str()); EXPECT_STREQ("Freq_Xlating_Fir_Filter", input_filter->implementation().c_str());
} }
TEST(GNSS_Block_Factory_Test, InstantiateDirectResampler) TEST(GNSSBlockFactoryTest, InstantiateDirectResampler)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("Resampler.implementation", "Direct_Resampler"); configuration->set_property("Resampler.implementation", "Direct_Resampler");
@ -165,7 +165,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateDirectResampler)
EXPECT_STREQ("Direct_Resampler", resampler->implementation().c_str()); EXPECT_STREQ("Direct_Resampler", resampler->implementation().c_str());
} }
TEST(GNSS_Block_Factory_Test, InstantiateGpsL1CaPcpsAcquisition) TEST(GNSSBlockFactoryTest, InstantiateGpsL1CaPcpsAcquisition)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("Acquisition.implementation", "GPS_L1_CA_PCPS_Acquisition"); configuration->set_property("Acquisition.implementation", "GPS_L1_CA_PCPS_Acquisition");
@ -177,7 +177,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateGpsL1CaPcpsAcquisition)
} }
TEST(GNSS_Block_Factory_Test, InstantiateGpsL1CaPcpsQuickSyncAcquisition) TEST(GNSSBlockFactoryTest, InstantiateGpsL1CaPcpsQuickSyncAcquisition)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("Acquisition.implementation", "GPS_L1_CA_PCPS_QuickSync_Acquisition"); configuration->set_property("Acquisition.implementation", "GPS_L1_CA_PCPS_QuickSync_Acquisition");
@ -188,7 +188,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateGpsL1CaPcpsQuickSyncAcquisition)
EXPECT_STREQ("GPS_L1_CA_PCPS_QuickSync_Acquisition", acquisition->implementation().c_str()); EXPECT_STREQ("GPS_L1_CA_PCPS_QuickSync_Acquisition", acquisition->implementation().c_str());
} }
TEST(GNSS_Block_Factory_Test, InstantiateGalileoE1PcpsQuickSyncAmbiguousAcquisition) TEST(GNSSBlockFactoryTest, InstantiateGalileoE1PcpsQuickSyncAmbiguousAcquisition)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("Acquisition.implementation", "Galileo_E1_PCPS_QuickSync_Ambiguous_Acquisition"); configuration->set_property("Acquisition.implementation", "Galileo_E1_PCPS_QuickSync_Ambiguous_Acquisition");
@ -200,7 +200,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateGalileoE1PcpsQuickSyncAmbiguousAcquisit
} }
TEST(GNSS_Block_Factory_Test, InstantiateGalileoE1PcpsAmbiguousAcquisition) TEST(GNSSBlockFactoryTest, InstantiateGalileoE1PcpsAmbiguousAcquisition)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("Acquisition.implementation", "Galileo_E1_PCPS_Ambiguous_Acquisition"); configuration->set_property("Acquisition.implementation", "Galileo_E1_PCPS_Ambiguous_Acquisition");
@ -212,7 +212,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateGalileoE1PcpsAmbiguousAcquisition)
} }
TEST(GNSS_Block_Factory_Test, InstantiateGpsL1CaDllPllCAidTracking) TEST(GNSSBlockFactoryTest, InstantiateGpsL1CaDllPllCAidTracking)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("Tracking.implementation", "GPS_L1_CA_DLL_PLL_C_Aid_Tracking"); configuration->set_property("Tracking.implementation", "GPS_L1_CA_DLL_PLL_C_Aid_Tracking");
@ -224,7 +224,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateGpsL1CaDllPllCAidTracking)
} }
TEST(GNSS_Block_Factory_Test, InstantiateGpsL1CaDllPllTracking) TEST(GNSSBlockFactoryTest, InstantiateGpsL1CaDllPllTracking)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("Tracking.implementation", "GPS_L1_CA_DLL_PLL_Tracking"); configuration->set_property("Tracking.implementation", "GPS_L1_CA_DLL_PLL_Tracking");
@ -236,7 +236,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateGpsL1CaDllPllTracking)
} }
TEST(GNSS_Block_Factory_Test, InstantiateGpsL1CaTcpConnectorTracking) TEST(GNSSBlockFactoryTest, InstantiateGpsL1CaTcpConnectorTracking)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("Tracking.implementation", "GPS_L1_CA_TCP_CONNECTOR_Tracking"); configuration->set_property("Tracking.implementation", "GPS_L1_CA_TCP_CONNECTOR_Tracking");
@ -248,7 +248,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateGpsL1CaTcpConnectorTracking)
} }
TEST(GNSS_Block_Factory_Test, InstantiateGalileoE1DllPllVemlTracking) TEST(GNSSBlockFactoryTest, InstantiateGalileoE1DllPllVemlTracking)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("Tracking.implementation", "Galileo_E1_DLL_PLL_VEML_Tracking"); configuration->set_property("Tracking.implementation", "Galileo_E1_DLL_PLL_VEML_Tracking");
@ -260,7 +260,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateGalileoE1DllPllVemlTracking)
} }
TEST(GNSS_Block_Factory_Test, InstantiateGpsL1CaTelemetryDecoder) TEST(GNSSBlockFactoryTest, InstantiateGpsL1CaTelemetryDecoder)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("TelemetryDecoder.implementation", "GPS_L1_CA_Telemetry_Decoder"); configuration->set_property("TelemetryDecoder.implementation", "GPS_L1_CA_Telemetry_Decoder");
@ -271,7 +271,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateGpsL1CaTelemetryDecoder)
} }
TEST(GNSS_Block_Factory_Test, InstantiateChannels) TEST(GNSSBlockFactoryTest, InstantiateChannels)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("Channels_1C.count", "2"); configuration->set_property("Channels_1C.count", "2");
@ -290,7 +290,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateChannels)
} }
TEST(GNSS_Block_Factory_Test, InstantiateObservables) TEST(GNSSBlockFactoryTest, InstantiateObservables)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("Observables.implementation", "Pass_Through"); configuration->set_property("Observables.implementation", "Pass_Through");
@ -301,7 +301,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateObservables)
} }
TEST(GNSS_Block_Factory_Test, InstantiateGpsL1CaObservables) TEST(GNSSBlockFactoryTest, InstantiateGpsL1CaObservables)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("Observables.implementation", "Hybrid_Observables"); configuration->set_property("Observables.implementation", "Hybrid_Observables");
@ -314,7 +314,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateGpsL1CaObservables)
TEST(GNSS_Block_Factory_Test, InstantiatePvt) TEST(GNSSBlockFactoryTest, InstantiatePvt)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("PVT.implementation", "Pass_Through"); configuration->set_property("PVT.implementation", "Pass_Through");
@ -325,7 +325,7 @@ TEST(GNSS_Block_Factory_Test, InstantiatePvt)
} }
TEST(GNSS_Block_Factory_Test, InstantiateGpsL1CaPvt) TEST(GNSSBlockFactoryTest, InstantiateGpsL1CaPvt)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("PVT.implementation", "Hybrid_PVT"); configuration->set_property("PVT.implementation", "Hybrid_PVT");
@ -337,7 +337,7 @@ TEST(GNSS_Block_Factory_Test, InstantiateGpsL1CaPvt)
} }
TEST(GNSS_Block_Factory_Test, InstantiateWrongPvt) TEST(GNSSBlockFactoryTest, InstantiateWrongPvt)
{ {
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("PVT.implementation", "Pepito"); configuration->set_property("PVT.implementation", "Pepito");

View File

@ -34,7 +34,7 @@
TEST(String_Converter_Test, StringToBool) TEST(StringConverterTest, StringToBool)
{ {
std::unique_ptr<StringConverter> converter(new StringConverter()); std::unique_ptr<StringConverter> converter(new StringConverter());
bool conversion_result = converter->convert("false", true); bool conversion_result = converter->convert("false", true);
@ -43,7 +43,7 @@ TEST(String_Converter_Test, StringToBool)
} }
TEST(String_Converter_Test, StringToSizeT) TEST(StringConverterTest, StringToSizeT)
{ {
// Example using a raw pointer // Example using a raw pointer
StringConverter* converter; StringConverter* converter;
@ -55,9 +55,7 @@ TEST(String_Converter_Test, StringToSizeT)
} }
TEST(StringConverterTest, StringToBoolFail)
TEST(String_Converter_Test, StringToBoolFail)
{ {
std::unique_ptr<StringConverter> converter(new StringConverter()); std::unique_ptr<StringConverter> converter(new StringConverter());
bool conversion_result = converter->convert("lse", true); bool conversion_result = converter->convert("lse", true);
@ -66,9 +64,7 @@ TEST(String_Converter_Test, StringToBoolFail)
} }
TEST(StringConverterTest, StringToSizeTFail)
TEST(String_Converter_Test, StringToSizeTFail)
{ {
std::unique_ptr<StringConverter> converter(new StringConverter()); std::unique_ptr<StringConverter> converter(new StringConverter());
size_t conversion_result = converter->convert("false", 1); size_t conversion_result = converter->convert("false", 1);

View File

@ -37,7 +37,7 @@
TEST(Pass_Through_Test, Instantiate) TEST(PassThroughTest, Instantiate)
{ {
std::shared_ptr<ConfigurationInterface> config = std::make_shared<InMemoryConfiguration>(); std::shared_ptr<ConfigurationInterface> config = std::make_shared<InMemoryConfiguration>();
config->set_property("Test.item_type", "gr_complex"); config->set_property("Test.item_type", "gr_complex");

View File

@ -51,16 +51,16 @@
DEFINE_int32(filter_test_nsamples, 1000000 , "Number of samples to filter in the tests (max: 2147483647)"); DEFINE_int32(filter_test_nsamples, 1000000 , "Number of samples to filter in the tests (max: 2147483647)");
class Fir_Filter_Test: public ::testing::Test class FirFilterTest: public ::testing::Test
{ {
protected: protected:
Fir_Filter_Test() FirFilterTest()
{ {
queue = gr::msg_queue::make(0); queue = gr::msg_queue::make(0);
item_size = sizeof(gr_complex); item_size = sizeof(gr_complex);
config = std::make_shared<InMemoryConfiguration>(); config = std::make_shared<InMemoryConfiguration>();
} }
~Fir_Filter_Test() ~FirFilterTest()
{} {}
void init(); void init();
@ -75,7 +75,7 @@ protected:
int nsamples = FLAGS_filter_test_nsamples; int nsamples = FLAGS_filter_test_nsamples;
}; };
void Fir_Filter_Test::init() void FirFilterTest::init()
{ {
config->set_property("InputFilter.taps_item_type", "float"); config->set_property("InputFilter.taps_item_type", "float");
config->set_property("InputFilter.number_of_taps", "5"); config->set_property("InputFilter.number_of_taps", "5");
@ -99,32 +99,32 @@ void Fir_Filter_Test::init()
//config->set_property("InputFilter.dump", "true"); //config->set_property("InputFilter.dump", "true");
} }
void Fir_Filter_Test::configure_cbyte_cbyte() void FirFilterTest::configure_cbyte_cbyte()
{ {
config->set_property("InputFilter.input_item_type", "cbyte"); config->set_property("InputFilter.input_item_type", "cbyte");
config->set_property("InputFilter.output_item_type", "cbyte"); config->set_property("InputFilter.output_item_type", "cbyte");
} }
void Fir_Filter_Test::configure_gr_complex_gr_complex() void FirFilterTest::configure_gr_complex_gr_complex()
{ {
config->set_property("InputFilter.input_item_type", "gr_complex"); config->set_property("InputFilter.input_item_type", "gr_complex");
config->set_property("InputFilter.output_item_type", "gr_complex"); config->set_property("InputFilter.output_item_type", "gr_complex");
} }
void Fir_Filter_Test::configure_cshort_cshort() void FirFilterTest::configure_cshort_cshort()
{ {
config->set_property("InputFilter.input_item_type", "cshort"); config->set_property("InputFilter.input_item_type", "cshort");
config->set_property("InputFilter.output_item_type", "cshort"); config->set_property("InputFilter.output_item_type", "cshort");
} }
void Fir_Filter_Test::configure_cbyte_gr_complex() void FirFilterTest::configure_cbyte_gr_complex()
{ {
config->set_property("InputFilter.input_item_type", "cbyte"); config->set_property("InputFilter.input_item_type", "cbyte");
config->set_property("InputFilter.output_item_type", "gr_complex"); config->set_property("InputFilter.output_item_type", "gr_complex");
} }
TEST_F(Fir_Filter_Test, Instantiate_gr_complex_gr_complex) TEST_F(FirFilterTest, InstantiateGrComplexGrComplex)
{ {
init(); init();
configure_gr_complex_gr_complex(); configure_gr_complex_gr_complex();
@ -134,7 +134,7 @@ TEST_F(Fir_Filter_Test, Instantiate_gr_complex_gr_complex)
ASSERT_EQ(1, res); ASSERT_EQ(1, res);
} }
TEST_F(Fir_Filter_Test, Instantiate_cshort_cshort) TEST_F(FirFilterTest, InstantiateCshortCshort)
{ {
init(); init();
configure_cshort_cshort(); configure_cshort_cshort();
@ -144,7 +144,7 @@ TEST_F(Fir_Filter_Test, Instantiate_cshort_cshort)
ASSERT_EQ(1, res); ASSERT_EQ(1, res);
} }
TEST_F(Fir_Filter_Test, Instantiate_cbyte_cbyte) TEST_F(FirFilterTest, InstantiateCbyteCbyte)
{ {
init(); init();
configure_cbyte_cbyte(); configure_cbyte_cbyte();
@ -154,7 +154,7 @@ TEST_F(Fir_Filter_Test, Instantiate_cbyte_cbyte)
ASSERT_EQ(1, res); ASSERT_EQ(1, res);
} }
TEST_F(Fir_Filter_Test, Instantiate_cbyte_gr_complex) TEST_F(FirFilterTest, InstantiateCbyteGrComplex)
{ {
init(); init();
configure_cbyte_gr_complex(); configure_cbyte_gr_complex();
@ -164,7 +164,7 @@ TEST_F(Fir_Filter_Test, Instantiate_cbyte_gr_complex)
ASSERT_EQ(1, res); ASSERT_EQ(1, res);
} }
TEST_F(Fir_Filter_Test, ConnectAndRun) TEST_F(FirFilterTest, ConnectAndRun)
{ {
int fs_in = 4000000; int fs_in = 4000000;
struct timeval tv; struct timeval tv;
@ -198,7 +198,7 @@ TEST_F(Fir_Filter_Test, ConnectAndRun)
} }
TEST_F(Fir_Filter_Test, ConnectAndRunGrcomplex) TEST_F(FirFilterTest, ConnectAndRunGrcomplex)
{ {
struct timeval tv; struct timeval tv;
long long int begin = 0; long long int begin = 0;
@ -241,7 +241,7 @@ TEST_F(Fir_Filter_Test, ConnectAndRunGrcomplex)
std::cout << "Filtered " << nsamples << " gr_complex samples in " << (end-begin) << " microseconds" << std::endl; std::cout << "Filtered " << nsamples << " gr_complex samples in " << (end-begin) << " microseconds" << std::endl;
} }
TEST_F(Fir_Filter_Test, ConnectAndRunCshorts) TEST_F(FirFilterTest, ConnectAndRunCshorts)
{ {
struct timeval tv; struct timeval tv;
long long int begin = 0; long long int begin = 0;
@ -288,7 +288,7 @@ TEST_F(Fir_Filter_Test, ConnectAndRunCshorts)
TEST_F(Fir_Filter_Test, ConnectAndRunCbytes) TEST_F(FirFilterTest, ConnectAndRunCbytes)
{ {
struct timeval tv; struct timeval tv;
long long int begin = 0; long long int begin = 0;
@ -334,7 +334,7 @@ TEST_F(Fir_Filter_Test, ConnectAndRunCbytes)
} }
TEST_F(Fir_Filter_Test, ConnectAndRunCbyteGrcomplex) TEST_F(FirFilterTest, ConnectAndRunCbyteGrcomplex)
{ {
struct timeval tv; struct timeval tv;
long long int begin = 0; long long int begin = 0;

View File

@ -33,7 +33,7 @@
#include "rinex_printer.h" #include "rinex_printer.h"
TEST(Rinex_Printer_Test, GalileoObsHeader) TEST(RinexPrinterTest, GalileoObsHeader)
{ {
std::string line_aux; std::string line_aux;
std::string line_str; std::string line_str;
@ -89,7 +89,7 @@ TEST(Rinex_Printer_Test, GalileoObsHeader)
TEST(Rinex_Printer_Test, MixedObsHeader) TEST(RinexPrinterTest, MixedObsHeader)
{ {
std::string line_aux; std::string line_aux;
std::string line_aux2; std::string line_aux2;
@ -133,7 +133,7 @@ TEST(Rinex_Printer_Test, MixedObsHeader)
} }
TEST(Rinex_Printer_Test, GalileoObsLog) TEST(RinexPrinterTest, GalileoObsLog)
{ {
std::string line_aux; std::string line_aux;
std::string line_str; std::string line_str;
@ -201,7 +201,7 @@ TEST(Rinex_Printer_Test, GalileoObsLog)
} }
TEST(Rinex_Printer_Test, GpsObsLogDualBand) TEST(RinexPrinterTest, GpsObsLogDualBand)
{ {
std::string line_aux; std::string line_aux;
std::string line_str; std::string line_str;
@ -283,7 +283,7 @@ TEST(Rinex_Printer_Test, GpsObsLogDualBand)
} }
TEST(Rinex_Printer_Test, GalileoObsLogDualBand) TEST(RinexPrinterTest, GalileoObsLogDualBand)
{ {
std::string line_aux; std::string line_aux;
std::string line_str; std::string line_str;
@ -365,7 +365,7 @@ TEST(Rinex_Printer_Test, GalileoObsLogDualBand)
TEST(Rinex_Printer_Test, MixedObsLog) TEST(RinexPrinterTest, MixedObsLog)
{ {
std::string line_aux; std::string line_aux;
std::string line_str; std::string line_str;

View File

@ -37,7 +37,7 @@
//#include "gps_ephemeris.h" //#include "gps_ephemeris.h"
TEST(Rtcm_Printer_Test, Instantiate) TEST(RtcmPrinterTest, Instantiate)
{ {
std::string filename = "hello.rtcm"; std::string filename = "hello.rtcm";
bool flag_rtcm_tty_port = false; bool flag_rtcm_tty_port = false;
@ -49,7 +49,7 @@ TEST(Rtcm_Printer_Test, Instantiate)
} }
TEST(Rtcm_Printer_Test, Run) TEST(RtcmPrinterTest, Run)
{ {
// std::string file_name = "./gps_ephemeris_rx.xml"; // std::string file_name = "./gps_ephemeris_rx.xml";
// std::map<int,Gps_Ephemeris> gps_ephemeris_map; // std::map<int,Gps_Ephemeris> gps_ephemeris_map;

View File

@ -34,7 +34,7 @@
#include "rtcm.h" #include "rtcm.h"
#include "Galileo_E1.h" #include "Galileo_E1.h"
TEST(Rtcm_Test, Hex_to_bin) TEST(RtcmTest, HexToBin)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
@ -64,7 +64,7 @@ TEST(Rtcm_Test, Hex_to_bin)
} }
TEST(Rtcm_Test, Bin_to_hex) TEST(RtcmTest, BinToHex)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
@ -99,7 +99,7 @@ TEST(Rtcm_Test, Bin_to_hex)
TEST(Rtcm_Test, Hex_to_int) TEST(RtcmTest, HexToInt)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
@ -110,7 +110,7 @@ TEST(Rtcm_Test, Hex_to_int)
} }
TEST(Rtcm_Test, Hex_to_uint) TEST(RtcmTest, HexToUint)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
long unsigned int expected1 = 42; long unsigned int expected1 = 42;
@ -118,7 +118,7 @@ TEST(Rtcm_Test, Hex_to_uint)
} }
TEST(Rtcm_Test, Bin_to_double) TEST(RtcmTest, BinToDouble)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
@ -135,7 +135,7 @@ TEST(Rtcm_Test, Bin_to_double)
} }
TEST(Rtcm_Test, Bin_to_uint) TEST(RtcmTest, BinToUint)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
long unsigned int expected1 = 42; long unsigned int expected1 = 42;
@ -145,7 +145,7 @@ TEST(Rtcm_Test, Bin_to_uint)
} }
TEST(Rtcm_Test, Bin_to_int) TEST(RtcmTest, BinToInt)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
long unsigned int expected1 = 42; long unsigned int expected1 = 42;
@ -155,7 +155,7 @@ TEST(Rtcm_Test, Bin_to_int)
} }
TEST(Rtcm_Test, Bin_to_binary_data) TEST(RtcmTest, BinToBinaryData)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
std::string bin_str("1101101011010110"); std::string bin_str("1101101011010110");
@ -171,7 +171,7 @@ TEST(Rtcm_Test, Bin_to_binary_data)
} }
TEST(Rtcm_Test, Check_CRC) TEST(RtcmTest, CheckCRC)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
bool expected_true = true; bool expected_true = true;
@ -186,7 +186,7 @@ TEST(Rtcm_Test, Check_CRC)
} }
TEST(Rtcm_Test, MT1001) TEST(RtcmTest, MT1001)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
Gps_Ephemeris gps_eph = Gps_Ephemeris(); Gps_Ephemeris gps_eph = Gps_Ephemeris();
@ -209,7 +209,7 @@ TEST(Rtcm_Test, MT1001)
} }
TEST(Rtcm_Test, MT1005) TEST(RtcmTest, MT1005)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
std::string reference_msg = rtcm->print_MT1005_test(); std::string reference_msg = rtcm->print_MT1005_test();
@ -254,7 +254,7 @@ TEST(Rtcm_Test, MT1005)
TEST(Rtcm_Test, MT1019) TEST(RtcmTest, MT1019)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
bool expected_true = true; bool expected_true = true;
@ -277,7 +277,7 @@ TEST(Rtcm_Test, MT1019)
} }
TEST(Rtcm_Test, MT1029) TEST(RtcmTest, MT1029)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
std::string s_test("UTF-8 проверка wörter"); std::string s_test("UTF-8 проверка wörter");
@ -295,7 +295,7 @@ TEST(Rtcm_Test, MT1029)
} }
TEST(Rtcm_Test, MT1045) TEST(RtcmTest, MT1045)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
bool expected_true = true; bool expected_true = true;
@ -317,7 +317,7 @@ TEST(Rtcm_Test, MT1045)
} }
TEST(Rtcm_Test, MSMCell) TEST(RtcmTest, MSMCell)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
Gps_Ephemeris gps_eph = Gps_Ephemeris(); Gps_Ephemeris gps_eph = Gps_Ephemeris();
@ -446,7 +446,7 @@ TEST(Rtcm_Test, MSMCell)
} }
TEST(Rtcm_Test, MSM1) TEST(RtcmTest, MSM1)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
bool expected_true = true; bool expected_true = true;
@ -561,7 +561,7 @@ TEST(Rtcm_Test, MSM1)
} }
TEST(Rtcm_Test, InstantiateServer) TEST(RtcmTest, InstantiateServer)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
rtcm->run_server(); rtcm->run_server();
@ -585,7 +585,7 @@ TEST(Rtcm_Test, InstantiateServer)
} }
TEST(Rtcm_Test, InstantiateServerWithoutClosing) TEST(RtcmTest, InstantiateServerWithoutClosing)
{ {
auto rtcm = std::make_shared<Rtcm>(); auto rtcm = std::make_shared<Rtcm>();
rtcm->run_server(); rtcm->run_server();

View File

@ -43,7 +43,7 @@
#include "direct_resampler_conditioner_cc.h" #include "direct_resampler_conditioner_cc.h"
TEST(Direct_Resampler_Conditioner_Cc_Test, InstantiationAndRunTest) TEST(DirectResamplerConditionerCcTest, InstantiationAndRunTest)
{ {
double fs_in = 8000000.0; // Input sampling frequency in Hz double fs_in = 8000000.0; // Input sampling frequency in Hz
double fs_out = 4000000.0; // sampling freuqncy of the resampled signal in Hz double fs_out = 4000000.0; // sampling freuqncy of the resampled signal in Hz

View File

@ -38,7 +38,7 @@
#include <gnuradio/msg_queue.h> #include <gnuradio/msg_queue.h>
#include "gnss_sdr_valve.h" #include "gnss_sdr_valve.h"
TEST(Valve_Test, CheckEventSentAfter100Samples) TEST(ValveTest, CheckEventSentAfter100Samples)
{ {
gr::msg_queue::sptr queue = gr::msg_queue::make(0); gr::msg_queue::sptr queue = gr::msg_queue::make(0);

View File

@ -59,7 +59,7 @@ void run_correlator_cpu(cpu_multicorrelator* correlator,
} }
} }
TEST(CPU_multicorrelator_test, MeasureExecutionTime) TEST(CPUMulticorrelatorTest, MeasureExecutionTime)
{ {
struct timeval tv; struct timeval tv;
int max_threads=FLAGS_cpu_multicorrelator_max_threads_test; int max_threads=FLAGS_cpu_multicorrelator_max_threads_test;