40c64a879c
fuse_main needs the program arguments as char ** instead of const char ** or (even better) vector<string>. With this commit, we hide that inside the Fuse class. Everything outside handles these arguments as vector<string> and passes it as such to the Fuse class.
20 lines
593 B
C++
20 lines
593 B
C++
#pragma once
|
|
#ifndef MESSMER_CRYFS_TEST_PROGRAMOPTIONS_PROGRAMOPTIONSTEST_H
|
|
#define MESSMER_CRYFS_TEST_PROGRAMOPTIONS_PROGRAMOPTIONSTEST_H
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
class ProgramOptionsTestBase: public ::testing::Test {
|
|
public:
|
|
|
|
void EXPECT_VECTOR_EQ(std::initializer_list<std::string> expected, const std::vector<std::string> &actual) {
|
|
std::vector<std::string> expectedVec(expected);
|
|
ASSERT_EQ(expectedVec.size(), actual.size());
|
|
for(unsigned int i = 0; i < expectedVec.size(); ++i) {
|
|
EXPECT_EQ(expectedVec[i], actual[i]);
|
|
}
|
|
}
|
|
};
|
|
|
|
#endif
|