Skip to content

Commit a9f7959

Browse files
committed
Rename time_zone_test_util to test_time_zone_names
1 parent ccc4f10 commit a9f7959

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

BUILD

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ cc_library(
7676
### tests
7777

7878
cc_library(
79-
name = "time_zone_test_util",
79+
name = "test_time_zone_names",
8080
testonly = True,
81-
srcs = ["src/time_zone_test_util.cc"],
82-
hdrs = ["src/time_zone_test_util.h"],
81+
srcs = ["src/test_time_zone_names.cc"],
82+
hdrs = ["src/test_time_zone_names.h"],
8383
visibility = ["//visibility:private"],
8484
)
8585

@@ -112,8 +112,8 @@ cc_test(
112112
srcs = ["src/time_zone_lookup_test.cc"],
113113
deps = [
114114
":civil_time",
115+
":test_time_zone_names",
115116
":time_zone",
116-
":time_zone_test_util",
117117
"@googletest//:gtest",
118118
"@googletest//:gtest_main",
119119
],
@@ -133,8 +133,8 @@ cc_test(
133133
],
134134
deps = [
135135
":civil_time",
136+
":test_time_zone_names",
136137
":time_zone",
137-
":time_zone_test_util",
138138
"@fuzztest//fuzztest",
139139
"@fuzztest//fuzztest:fuzztest_gtest_main",
140140
"@googletest//:gtest",
@@ -156,8 +156,8 @@ cc_test(
156156
tags = ["benchmark"],
157157
deps = [
158158
":civil_time",
159+
":test_time_zone_names",
159160
":time_zone",
160-
":time_zone_test_util",
161161
"@google_benchmark//:benchmark_main",
162162
],
163163
)

CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ if (BUILD_EXAMPLES)
111111
endif()
112112

113113
if (BUILD_TESTING)
114-
add_library(time_zone_test_util
115-
"src/time_zone_test_util.cc"
116-
"src/time_zone_test_util.h"
114+
add_library(test_time_zone_names
115+
"src/test_time_zone_names.cc"
116+
"src/test_time_zone_names.h"
117117
)
118118

119119
add_executable(civil_time_test src/civil_time_test.cc)
@@ -131,7 +131,7 @@ if (BUILD_TESTING)
131131
target_include_directories(time_zone_lookup_test PRIVATE ${GTEST_INCLUDE_DIRS})
132132
target_link_libraries(time_zone_lookup_test
133133
cctz::cctz
134-
time_zone_test_util
134+
test_time_zone_names
135135
${GTEST_BOTH_LIBRARIES}
136136
${CMAKE_THREAD_LIBS_INIT}
137137
)
@@ -161,7 +161,7 @@ if (BUILD_TESTING)
161161
cctz_target_set_cxx_standard(cctz_benchmark)
162162
target_link_libraries(cctz_benchmark
163163
cctz::cctz
164-
time_zone_test_util
164+
test_time_zone_names
165165
benchmark::benchmark_main
166166
)
167167
endif()

src/cctz_benchmark.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
#include "benchmark/benchmark.h"
2424
#include "cctz/civil_time.h"
2525
#include "cctz/time_zone.h"
26+
#include "test_time_zone_names.h"
2627
#include "time_zone_impl.h"
27-
#include "time_zone_test_util.h"
2828

2929
namespace {
3030

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "time_zone_test_util.h"
15+
#include "test_time_zone_names.h"
1616

1717
namespace cctz {
1818

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef CCTZ_TIME_ZONE_TEST_UTIL_H_
16-
#define CCTZ_TIME_ZONE_TEST_UTIL_H_
15+
#ifndef CCTZ_TEST_TIME_ZONE_NAMES_H_
16+
#define CCTZ_TEST_TIME_ZONE_NAMES_H_
1717

1818
namespace cctz {
1919

@@ -22,4 +22,4 @@ extern const char* const kTimeZoneNames[];
2222

2323
} // namespace cctz
2424

25-
#endif // CCTZ_TIME_ZONE_TEST_UTIL_H_
25+
#endif // CCTZ_TEST_TIME_ZONE_NAMES_H_

src/time_zone_fuzz_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
#include "cctz/time_zone.h"
2323
#include "fuzztest/fuzztest.h"
2424
#include "gtest/gtest.h"
25+
#include "test_time_zone_names.h"
2526
#include "time_zone_impl.h"
26-
#include "time_zone_test_util.h"
2727

2828
namespace cctz {
2929

src/time_zone_lookup_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#include "cctz/civil_time.h"
3030
#include "gtest/gtest.h"
31-
#include "time_zone_test_util.h"
31+
#include "test_time_zone_names.h"
3232

3333
namespace chrono = std::chrono;
3434

0 commit comments

Comments
 (0)