Skip to content
Snippets Groups Projects
Commit 385044c5 authored by Cedric Caffy's avatar Cedric Caffy
Browse files

[SKIP CI] WIP InterpolationFilePositionEstimatorTest

parent d7adde64
No related branches found
No related tags found
No related merge requests found
......@@ -17,21 +17,55 @@
*/
#include <gtest/gtest.h>
#include <vector>
#include <map>
#include "InterpolationFilePositionEstimator.hpp"
namespace unitTests {
class castor_tape_tapeserver_rao_RAOTest: public ::testing::Test {
using namespace castor::tape::tapeserver;
class RAOTestEnvironment : public ::testing::Environment {
public:
static std::vector<drive::endOfWrapPosition> getEndOfWrapPositions() {
std::vector<drive::endOfWrapPosition> ret;
ret.push_back({0,208310,0});
ret.push_back({1,416271,0});
ret.push_back({2,624562,0});
return ret;
}
static cta::catalogue::MediaType getLTO7MMediaType() {
cta::catalogue::MediaType mediaType;
mediaType.name = "LTO7M";
mediaType.minLPos = 2696;
mediaType.maxLPos = 171097;
return mediaType;
}
};
class RAOTest: public ::testing::Test {
protected:
void SetUp() {
}
void TearDown() {
}
};
TEST_F(RAOTest,InterpolationFilePositionEstimatorTest){
std::vector<drive::endOfWrapPosition> eowPositions = RAOTestEnvironment::getEndOfWrapPositions();
cta::catalogue::MediaType mediaType = RAOTestEnvironment::getLTO7MMediaType();
TEST_F(castor_tape_tapeserver_rao_RAOTest,InterpolationFilePositionEstimatorTest){
//TODO
rao::InterpolationFilePositionEstimator estimator(eowPositions,mediaType);
//TODO : GENERATE vector of cta::RetrieveJob
ASSERT_TRUE(true);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment