@@ -37,10 +37,9 @@ struct GetRecordTester : testing::Test {
37
37
string kTestFile3 = os::pathJoin(coretech::getTestDataDir(), " VRS_Files/chunks.vrs" );
38
38
string kTestFile4 = os::pathJoin(coretech::getTestDataDir(), " VRS_Files/chunks-shuffled.vrs" );
39
39
};
40
- } // namespace
41
40
42
41
// legacy implementation, without caching
43
- static const IndexRecord::RecordInfo* getRecord (
42
+ const IndexRecord::RecordInfo* getRecord (
44
43
vrs::RecordFileReader& file,
45
44
StreamId streamId,
46
45
Record::Type recordType,
@@ -58,8 +57,7 @@ static const IndexRecord::RecordInfo* getRecord(
58
57
return nullptr ;
59
58
}
60
59
61
- inline void
62
- check (vrs::RecordFileReader& file, StreamId id, Record::Type type, uint32_t indexNumber) {
60
+ void check (vrs::RecordFileReader& file, StreamId id, Record::Type type, uint32_t indexNumber) {
63
61
// Compare the old method and the new method
64
62
const IndexRecord::RecordInfo* ref = getRecord (file, id, type, indexNumber);
65
63
EXPECT_EQ (ref, file.getRecord (id, type, indexNumber));
@@ -68,7 +66,7 @@ check(vrs::RecordFileReader& file, StreamId id, Record::Type type, uint32_t inde
68
66
EXPECT_EQ (ref, file.getRecord (id, type, indexNumber));
69
67
}
70
68
71
- static bool isCloserThan (
69
+ bool isCloserThan (
72
70
const IndexRecord::RecordInfo& closer,
73
71
double timestamp,
74
72
const IndexRecord::RecordInfo& farther) {
@@ -226,6 +224,8 @@ void checkIndex(vrs::RecordFileReader& file, uint32_t recordIndex) {
226
224
EXPECT_NE (r, nullptr );
227
225
}
228
226
227
+ } // namespace
228
+
229
229
TEST_F (GetRecordTester, GetRecordTest) {
230
230
vrs::RecordFileReader file;
231
231
EXPECT_EQ (file.openFile (kTestFile ), 0 );
0 commit comments