@@ -132,7 +132,7 @@ TEST_F(DesktopFileReaderTest, testMoveAssignmentConstructor) {
132132
133133TEST_F (DesktopFileReaderTest, testParseSimpleDesktopFile) {
134134 std::stringstream ss;
135- ss << " [Desktop File ]" << std::endl
135+ ss << " [Desktop Entry ]" << std::endl
136136 << " Version=1.0" << std::endl
137137 << " Name=name" << std::endl
138138 << " Exec=exec" << std::endl
@@ -143,7 +143,7 @@ TEST_F(DesktopFileReaderTest, testParseSimpleDesktopFile) {
143143 DesktopFileReader reader;
144144 reader = DesktopFileReader (ss);
145145
146- auto section = reader[" Desktop File " ];
146+ auto section = reader[" Desktop Entry " ];
147147 EXPECT_FALSE (section.empty ());
148148 EXPECT_EQ (section.size (), 6 );
149149
@@ -158,7 +158,7 @@ TEST_F(DesktopFileReaderTest, testParseSimpleDesktopFile) {
158158
159159TEST_F (DesktopFileReaderTest, testParseSimpleDesktopFileWithComments) {
160160 std::stringstream ss;
161- ss << " [Desktop File ]" << std::endl
161+ ss << " [Desktop Entry ]" << std::endl
162162 << " Version=1.0" << std::endl
163163 << " Name=name" << std::endl
164164 << " # a comment" << std::endl
@@ -171,7 +171,7 @@ TEST_F(DesktopFileReaderTest, testParseSimpleDesktopFileWithComments) {
171171 DesktopFileReader reader;
172172 reader = DesktopFileReader (ss);
173173
174- auto section = reader[" Desktop File " ];
174+ auto section = reader[" Desktop Entry " ];
175175 EXPECT_FALSE (section.empty ());
176176 EXPECT_EQ (section.size (), 6 );
177177
@@ -189,7 +189,7 @@ TEST_F(DesktopFileReaderTest, testParseSimpleDesktopFileWithComments) {
189189
190190TEST_F (DesktopFileReaderTest, testParseFileGetNonExistingSection) {
191191 std::stringstream ss;
192- ss << " [Desktop File ]" << std::endl;
192+ ss << " [Desktop Entry ]" << std::endl;
193193
194194 DesktopFileReader reader;
195195 reader = DesktopFileReader (ss);
@@ -211,7 +211,7 @@ TEST_F(DesktopFileReaderTest, testParseFileMissingSectionHeader) {
211211
212212TEST_F (DesktopFileReaderTest, testParseFileEmptyKey) {
213213 std::stringstream ss;
214- ss << " [Desktop File ]" << std::endl
214+ ss << " [Desktop Entry ]" << std::endl
215215 << " =name" << std::endl
216216 << " Exec=exec" << std::endl
217217 << " Icon=icon" << std::endl
@@ -224,7 +224,7 @@ TEST_F(DesktopFileReaderTest, testParseFileEmptyKey) {
224224TEST_F (DesktopFileReaderTest, testParseFileMissingDelimiterInLine) {
225225 {
226226 std::stringstream ss;
227- ss << " [Desktop File ]" << std::endl
227+ ss << " [Desktop Entry ]" << std::endl
228228 << " Exec" << std::endl;
229229
230230 DesktopFileReader reader;
@@ -233,7 +233,7 @@ TEST_F(DesktopFileReaderTest, testParseFileMissingDelimiterInLine) {
233233
234234 {
235235 std::stringstream ss;
236- ss << " [Desktop File ]" << std::endl
236+ ss << " [Desktop Entry ]" << std::endl
237237 << " Name name" << std::endl;
238238
239239 DesktopFileReader reader;
@@ -243,7 +243,7 @@ TEST_F(DesktopFileReaderTest, testParseFileMissingDelimiterInLine) {
243243
244244TEST_F (DesktopFileReaderTest, testParseFile) {
245245 std::stringstream ss;
246- ss << " [Desktop File ]" << std::endl
246+ ss << " [Desktop Entry ]" << std::endl
247247 << " Name name" << std::endl
248248 << " Exec" << std::endl;
249249
@@ -254,7 +254,7 @@ TEST_F(DesktopFileReaderTest, testParseFile) {
254254TEST_F (DesktopFileReaderTest, testParseFileMultipleDelimitersInLine) {
255255 // TODO: verify that ==Name would be a legal value according to desktop file specification
256256 std::stringstream ss;
257- ss << " [Desktop File ]" << std::endl
257+ ss << " [Desktop Entry ]" << std::endl
258258 << " Name===name" << std::endl;
259259
260260 DesktopFileReader reader;
@@ -263,13 +263,13 @@ TEST_F(DesktopFileReaderTest, testParseFileMultipleDelimitersInLine) {
263263
264264TEST_F (DesktopFileReaderTest, testParseFileWithLeadingAndTrailingWhitespaceInLines) {
265265 std::stringstream ss;
266- ss << " [Desktop File ]" << std::endl
266+ ss << " [Desktop Entry ]" << std::endl
267267 << " Name= name" << std::endl
268268 << " Exec =exec" << std::endl;
269269
270270 DesktopFileReader reader (ss);
271271
272- auto section = reader[" Desktop File " ];
272+ auto section = reader[" Desktop Entry " ];
273273 EXPECT_FALSE (section.empty ());
274274
275275 EXPECT_EQ (section[" Name" ].value (), " name" );
@@ -278,13 +278,13 @@ TEST_F(DesktopFileReaderTest, testParseFileWithLeadingAndTrailingWhitespaceInLin
278278
279279TEST_F (DesktopFileReaderTest, testDataGetter) {
280280 std::stringstream ss;
281- ss << " [Desktop File ]" << std::endl
281+ ss << " [Desktop Entry ]" << std::endl
282282 << " Name= name" << std::endl
283283 << " Exec =exec" << std::endl;
284284
285285 DesktopFileReader reader (ss);
286286
287- auto section = reader[" Desktop File " ];
287+ auto section = reader[" Desktop Entry " ];
288288 EXPECT_FALSE (section.empty ());
289289
290290 auto data = reader.data ();
@@ -294,17 +294,17 @@ TEST_F(DesktopFileReaderTest, testDataGetter) {
294294 {" Exec" , DesktopFileEntry (" Exec" , " exec" )},
295295 });
296296
297- EXPECT_EQ (data[" Desktop File " ], expected);
297+ EXPECT_EQ (data[" Desktop Entry " ], expected);
298298}
299299
300300TEST_F (DesktopFileReaderTest, testParseLinesWithMultipleSpaces) {
301301 std::stringstream ss;
302- ss << " [Desktop File ]" << std::endl
302+ ss << " [Desktop Entry ]" << std::endl
303303 << " Name= What a great name " << std::endl;
304304
305305 DesktopFileReader reader (ss);
306306
307- auto section = reader[" Desktop File " ];
307+ auto section = reader[" Desktop Entry " ];
308308 EXPECT_FALSE (section.empty ());
309309
310310 EXPECT_EQ (section[" Name" ].value (), " What a great name" );
0 commit comments