You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2013/06/21 19:55:15 UTC

[2/4] git commit: Added (EXPECT|ASSERT)_NONE in gtest.hpp.

Added (EXPECT|ASSERT)_NONE in gtest.hpp.

From: Jiang Yan Xu <ya...@jxu.me>
Review: https://reviews.apache.org/r/11555


Project: http://git-wip-us.apache.org/repos/asf/incubator-mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mesos/commit/ad842c39
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mesos/tree/ad842c39
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mesos/diff/ad842c39

Branch: refs/heads/master
Commit: ad842c3998fe5e97fe178cf7ae9ffe1f890f7b4f
Parents: 93dfc5f
Author: Benjamin Mahler <bm...@twitter.com>
Authored: Fri Jun 21 10:45:53 2013 -0700
Committer: Benjamin Mahler <bm...@twitter.com>
Committed: Fri Jun 21 10:45:53 2013 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/3rdparty/stout/include/stout/gtest.hpp | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mesos/blob/ad842c39/3rdparty/libprocess/3rdparty/stout/include/stout/gtest.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/gtest.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/gtest.hpp
index 3c34124..1f10834 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/gtest.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/gtest.hpp
@@ -119,4 +119,12 @@ template <typename T1, typename T2>
 #define EXPECT_ERROR(actual)                    \
   EXPECT_TRUE(actual.isError())
 
+
+#define ASSERT_NONE(actual)                     \
+  ASSERT_TRUE(actual.isNone())
+
+
+#define EXPECT_NONE(actual)                     \
+  EXPECT_TRUE(actual.isNone())
+
 #endif // __STOUT_GTEST_HPP__