@@ -12,7 +12,7 @@ using namespace linuxdeploy::core::desktopfile;
1212
1313namespace bf = boost::filesystem;
1414
15- class DesktopFileFixture : public ::testing::Test {
15+ class DesktopFileTest : public ::testing::Test {
1616public:
1717 std::string testType;
1818 std::string testName;
@@ -61,12 +61,12 @@ class DesktopFileFixture : public ::testing::Test {
6161 }
6262};
6363
64- TEST_F (DesktopFileFixture , testDefaultConstructor) {
64+ TEST_F (DesktopFileTest , testDefaultConstructor) {
6565 DesktopFile file;
6666 EXPECT_TRUE (file.isEmpty ());
6767}
6868
69- TEST_F (DesktopFileFixture , testPathConstructor) {
69+ TEST_F (DesktopFileTest , testPathConstructor) {
7070 ASSERT_THROW (DesktopFile nonExistingPath (" /a/b/c/d/e/f/g/h/1/2/3/4/5/6/7/8" ), IOError);
7171
7272 DesktopFile emptyFile (" /dev/null" );
@@ -76,7 +76,7 @@ TEST_F(DesktopFileFixture, testPathConstructor) {
7676 EXPECT_FALSE (file.isEmpty ());
7777}
7878
79- TEST_F (DesktopFileFixture , testStreamConstructor) {
79+ TEST_F (DesktopFileTest , testStreamConstructor) {
8080 std::stringstream emptyString;
8181 DesktopFile emptyFile (emptyString);
8282 EXPECT_TRUE (emptyFile.isEmpty ());
@@ -89,7 +89,7 @@ TEST_F(DesktopFileFixture, testStreamConstructor) {
8989 assertIsTestDesktopFile (file);
9090}
9191
92- TEST_F (DesktopFileFixture , testCopyConstructor) {
92+ TEST_F (DesktopFileTest , testCopyConstructor) {
9393 DesktopFile empty;
9494 EXPECT_TRUE (empty == empty);
9595 EXPECT_FALSE (empty != empty);
@@ -111,7 +111,7 @@ TEST_F(DesktopFileFixture, testCopyConstructor) {
111111 assertIsTestDesktopFile (copy);
112112}
113113
114- TEST_F (DesktopFileFixture , testCopyAssignmentConstructor) {
114+ TEST_F (DesktopFileTest , testCopyAssignmentConstructor) {
115115 std::stringstream ss;
116116 ss << testDesktopFile;
117117 DesktopFile file (ss);
@@ -126,7 +126,7 @@ TEST_F(DesktopFileFixture, testCopyAssignmentConstructor) {
126126 assertIsTestDesktopFile (copy);
127127}
128128
129- TEST_F (DesktopFileFixture , testMoveAssignmentConstructor) {
129+ TEST_F (DesktopFileTest , testMoveAssignmentConstructor) {
130130 std::stringstream ss;
131131 ss << testDesktopFile;
132132 DesktopFile file (ss);
@@ -138,7 +138,7 @@ TEST_F(DesktopFileFixture, testMoveAssignmentConstructor) {
138138 assertIsTestDesktopFile (copy);
139139}
140140
141- TEST_F (DesktopFileFixture , testAddDefaultValues) {
141+ TEST_F (DesktopFileTest , testAddDefaultValues) {
142142 const auto & value = " testExecutable" ;
143143
144144 DesktopFile file;
@@ -157,7 +157,7 @@ TEST_F(DesktopFileFixture, testAddDefaultValues) {
157157 EXPECT_EQ (reader[" Desktop Entry" ][" Categories" ].value (), " Utility;" );
158158}
159159
160- TEST_F (DesktopFileFixture , testAddDefaultValuesExistingKeys) {
160+ TEST_F (DesktopFileTest , testAddDefaultValuesExistingKeys) {
161161 const auto & value = " testExecutable" ;
162162
163163 std::stringstream iss;
@@ -181,7 +181,7 @@ TEST_F(DesktopFileFixture, testAddDefaultValuesExistingKeys) {
181181 EXPECT_EQ (reader[" Desktop Entry" ][" Categories" ].value (), " Utility;" );
182182}
183183
184- TEST_F (DesktopFileFixture , testAddDefaultValuesNoOverwrite) {
184+ TEST_F (DesktopFileTest , testAddDefaultValuesNoOverwrite) {
185185 const auto & value = " testExecutable" ;
186186
187187 std::stringstream iss;
@@ -208,7 +208,7 @@ TEST_F(DesktopFileFixture, testAddDefaultValuesNoOverwrite) {
208208 }
209209}
210210
211- TEST_F (DesktopFileFixture , testSaveToPath) {
211+ TEST_F (DesktopFileTest , testSaveToPath) {
212212 std::stringstream ins;
213213 ins << testDesktopFile;
214214
@@ -217,12 +217,12 @@ TEST_F(DesktopFileFixture, testSaveToPath) {
217217 EXPECT_NO_THROW (file.save (" /dev/null" ));
218218}
219219
220- TEST_F (DesktopFileFixture , testSave) {
220+ TEST_F (DesktopFileTest , testSave) {
221221 DesktopFile file (" /dev/null" );
222222 EXPECT_NO_THROW (file.save ());
223223}
224224
225- TEST_F (DesktopFileFixture , testSaveToStream) {
225+ TEST_F (DesktopFileTest , testSaveToStream) {
226226 std::stringstream ins;
227227 ins << testDesktopFile;
228228
@@ -234,7 +234,7 @@ TEST_F(DesktopFileFixture, testSaveToStream) {
234234 assertHasTestDesktopFileKeys (outs);
235235}
236236
237- TEST_F (DesktopFileFixture , testEquality) {
237+ TEST_F (DesktopFileTest , testEquality) {
238238 std::stringstream ins0 (testDesktopFile);
239239 std::stringstream ins1 (testDesktopFile);
240240
@@ -247,7 +247,7 @@ TEST_F(DesktopFileFixture, testEquality) {
247247 EXPECT_EQ (file0, file1);
248248}
249249
250- TEST_F (DesktopFileFixture , testInequality) {
250+ TEST_F (DesktopFileTest , testInequality) {
251251 std::stringstream ins;
252252 ins << testDesktopFile;
253253
0 commit comments