Skip to content

Commit

Permalink
Some type hints for older version of GCC.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed May 13, 2014
1 parent 20422a5 commit e1981ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/src/test_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ TEST(cache, purge) {

// Verify that the pcp::cache::purge wrapper passes the recent argument
// (456 in this case) to pmdaCachePurge verbatim.
EXPECT_EQ(456, pcp::cache::purge(123, 456));
EXPECT_EQ(300, pcp::cache::purge(123, 300));
EXPECT_EQ((size_t)456, pcp::cache::purge(123, 456));
EXPECT_EQ((size_t)300, pcp::cache::purge(123, 300));
}

TEST(cache, purge_boost) {
Expand All @@ -111,8 +111,8 @@ TEST(cache, purge_boost) {
EXPECT_NO_THROW(pcp::cache::purge(123, boost::posix_time::seconds(123)));

// Verify that the pcp::cache::purge boost overload converts to seconds.
EXPECT_EQ(456, pcp::cache::purge(123, boost::posix_time::seconds(456)));
EXPECT_EQ(300, pcp::cache::purge(123, boost::posix_time::minutes(5)));
EXPECT_EQ((size_t)456, pcp::cache::purge(123, boost::posix_time::seconds(456)));
EXPECT_EQ((size_t)300, pcp::cache::purge(123, boost::posix_time::minutes(5)));
}

TEST(cache, store_by_name) {
Expand Down

0 comments on commit e1981ad

Please sign in to comment.