summaryrefslogtreecommitdiffstats
path: root/metrics
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-08-15 12:05:42 +0200
committerHenning Baldersheim <balder@oath.com>2018-08-15 12:05:42 +0200
commitf515632ca718c475c573ce760c58d64ff786f8a6 (patch)
tree052b3c9e76890387919937487d49ff9bf496730b /metrics
parentd9e6096d48523eb32ae983f1a2352ba327813030 (diff)
Use anonymous namespace
Diffstat (limited to 'metrics')
-rw-r--r--metrics/src/tests/snapshottest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/metrics/src/tests/snapshottest.cpp b/metrics/src/tests/snapshottest.cpp
index 816b3456c7e..75af75999d1 100644
--- a/metrics/src/tests/snapshottest.cpp
+++ b/metrics/src/tests/snapshottest.cpp
@@ -194,7 +194,7 @@ struct FakeTimer : public MetricManager::Timer {
time_t getTime() const override { return _timeInSecs; }
};
-} // End of anonymous namespace
+void ASSERT_VALUE(int32_t value, const MetricSnapshot & snapshot, const char *name) __attribute__((noinline));
void ASSERT_VALUE(int32_t value, const MetricSnapshot & snapshot, const char *name)
{
@@ -205,6 +205,8 @@ void ASSERT_VALUE(int32_t value, const MetricSnapshot & snapshot, const char *na
CPPUNIT_ASSERT_EQUAL(value, int32_t(_metricValue_->getLongValue("value")));
}
+} // End of anonymous namespace
+
void SnapshotTest::testSnapshotTwoDays()
{
// Create load types