Repository: mesos Updated Branches: refs/heads/master c4ef28928 -> dde28e88e
Added AWAIT_EXPECT_TRUE and AWAIT_EXPECT_FALSE macros. Review: https://reviews.apache.org/r/36205 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/dde28e88 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/dde28e88 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/dde28e88 Branch: refs/heads/master Commit: dde28e88eead4e2aaa0c710741ebbd78a898f8da Parents: c4ef289 Author: Alexander Rojas <alexan...@mesosphere.io> Authored: Tue Jul 7 10:56:18 2015 +0200 Committer: Bernd Mathiske <be...@mesosphere.io> Committed: Tue Jul 7 10:56:18 2015 +0200 ---------------------------------------------------------------------- 3rdparty/libprocess/include/process/gtest.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/dde28e88/3rdparty/libprocess/include/process/gtest.hpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/include/process/gtest.hpp b/3rdparty/libprocess/include/process/gtest.hpp index 8518c38..afaed51 100644 --- a/3rdparty/libprocess/include/process/gtest.hpp +++ b/3rdparty/libprocess/include/process/gtest.hpp @@ -292,6 +292,14 @@ template <typename T1, typename T2> AWAIT_EXPECT_EQ_FOR(expected, actual, Seconds(15)) +#define AWAIT_EXPECT_TRUE(actual) \ + AWAIT_EXPECT_EQ_FOR(true, actual, Seconds(15)) + + +#define AWAIT_EXPECT_FALSE(actual) \ + AWAIT_EXPECT_EQ_FOR(false, actual, Seconds(15)) + + inline ::testing::AssertionResult AwaitAssertResponseStatusEq( const char* expectedExpr, const char* actualExpr,