libcryfs/test/cryfs-cli/program_options/testutils/ProgramOptionsTestBase.h

20 lines
593 B
C
Raw Normal View History

2015-10-15 13:06:51 +02:00
#pragma once
#ifndef MESSMER_CRYFS_TEST_PROGRAMOPTIONS_PROGRAMOPTIONSTEST_H
#define MESSMER_CRYFS_TEST_PROGRAMOPTIONS_PROGRAMOPTIONSTEST_H
2016-02-11 16:39:42 +01:00
#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