aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tst_utils.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/tst_utils.cpp b/tests/tst_utils.cpp
index d7a4946..503afc9 100644
--- a/tests/tst_utils.cpp
+++ b/tests/tst_utils.cpp
@@ -1,5 +1,6 @@
/*
* Copyright 2021 Marius Gripsgard <marius@ubports.com>
+ * Copyright 2021 Robert Tari <robert@tari.in>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
@@ -22,15 +23,15 @@ extern "C" {
}
class XdgCurrentDesktopUtilsTest : public ::testing::Test
-{
-public:
- XdgCurrentDesktopUtilsTest() {}
+{
+public:
+ XdgCurrentDesktopUtilsTest() {}
- void SetUp() {
+ void SetUp() {
unsetenv("XDG_CURRENT_DESKTOP");
}
- void TearDown() {
+ void TearDown() {
unsetenv("XDG_CURRENT_DESKTOP");
}
};
@@ -72,3 +73,9 @@ TEST_F(XdgCurrentDesktopUtilsTest, isPantheon)
setenv("XDG_CURRENT_DESKTOP", "PANTHEON", 1);
EXPECT_TRUE(is_pantheon());
}
+TEST_F(XdgCurrentDesktopUtilsTest, isBudgie)
+{
+ EXPECT_FALSE(is_budgie());
+ setenv("XDG_CURRENT_DESKTOP", "Budgie:GNOME", 1);
+ EXPECT_TRUE(is_budgie());
+}