aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIain Lane <iain.lane@canonical.com>2015-09-01 10:52:13 +0100
committerIain Lane <iain.lane@canonical.com>2015-09-01 10:52:13 +0100
commita3937830bf656d5a8e2f368757b947cef0c8b1de (patch)
tree7a965b3f4a2cf3c1ba3fd4c701cfb75e8ed397e8 /tests
parentf016debfbaac39f509f5947b098c141a03a3b65f (diff)
downloadayatana-indicator-datetime-a3937830bf656d5a8e2f368757b947cef0c8b1de.tar.gz
ayatana-indicator-datetime-a3937830bf656d5a8e2f368757b947cef0c8b1de.tar.bz2
ayatana-indicator-datetime-a3937830bf656d5a8e2f368757b947cef0c8b1de.zip
Rename FileTimezone to TimedatedTimezone
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt2
-rw-r--r--tests/test-timezone-timedated.cpp (renamed from tests/test-timezone-file.cpp)8
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 9d26484..032b84e 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -58,7 +58,7 @@ add_test_by_name(test-locations)
add_test_by_name(test-menus)
add_test_by_name(test-planner)
add_test_by_name(test-settings)
-add_test_by_name(test-timezone-file)
+add_test_by_name(test-timezone-timedated)
add_test_by_name(test-utils)
set (TEST_NAME manual-test-snap)
diff --git a/tests/test-timezone-file.cpp b/tests/test-timezone-timedated.cpp
index 0ec496d..7086e96 100644
--- a/tests/test-timezone-file.cpp
+++ b/tests/test-timezone-timedated.cpp
@@ -20,13 +20,13 @@
#include "timedated-fixture.h"
-#include <datetime/timezone-file.h>
+#include <datetime/timezone-timedated.h>
#include <cstdio> // fopen()
//#include <sys/stat.h> // chmod()
#include <unistd.h> // sync()
-using unity::indicator::datetime::FileTimezone;
+using unity::indicator::datetime::TimedatedTimezone;
/**
* Test that timezone-file picks up the initial value
@@ -35,7 +35,7 @@ TEST_F(TimedateFixture, InitialValue)
{
const std::string expected_timezone = "America/Chicago";
set_timezone(expected_timezone);
- FileTimezone tz;
+ TimedatedTimezone tz;
ASSERT_EQ(expected_timezone, tz.timezone.get());
}
@@ -50,7 +50,7 @@ TEST_F(TimedateFixture, ChangedValue)
set_timezone(initial_timezone);
- FileTimezone tz;
+ TimedatedTimezone tz;
ASSERT_EQ(initial_timezone, tz.timezone.get());
bool changed = false;