aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock/test/gmock_link_test.h
diff options
context:
space:
mode:
authorXiaoyi Zhang <zhangxy988@gmail.com>2018-02-27 16:06:07 -0500
committerXiaoyi Zhang <zhangxy988@gmail.com>2018-02-27 16:06:07 -0500
commite1622337aebe390301fd30ec9c3fee5f31de71e8 (patch)
treefbb470f9d5a55bd6b1a4da5f87e898265645e52d /googlemock/test/gmock_link_test.h
parent62be6f34d1755752f8d1d170ccda6c8a9d277233 (diff)
parent576d689c19f053be212ce1e18b02d342976baa29 (diff)
downloadgoogletest-e1622337aebe390301fd30ec9c3fee5f31de71e8.tar.gz
googletest-e1622337aebe390301fd30ec9c3fee5f31de71e8.tar.bz2
googletest-e1622337aebe390301fd30ec9c3fee5f31de71e8.zip
Merge branch 'variant_matcher' of https://github.com/zhangxy988/googletest into variant_matcher
Diffstat (limited to 'googlemock/test/gmock_link_test.h')
-rw-r--r--googlemock/test/gmock_link_test.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/googlemock/test/gmock_link_test.h b/googlemock/test/gmock_link_test.h
index 1f55f5bd..5f855d19 100644
--- a/googlemock/test/gmock_link_test.h
+++ b/googlemock/test/gmock_link_test.h
@@ -120,13 +120,15 @@
# include <errno.h>
#endif
-#include "gmock/internal/gmock-port.h"
-#include "gtest/gtest.h"
#include <iostream>
#include <vector>
+#include "gtest/gtest.h"
+#include "gtest/internal/gtest-port.h"
+
using testing::_;
using testing::A;
+using testing::Action;
using testing::AllOf;
using testing::AnyOf;
using testing::Assign;
@@ -148,6 +150,8 @@ using testing::Invoke;
using testing::InvokeArgument;
using testing::InvokeWithoutArgs;
using testing::IsNull;
+using testing::IsSubsetOf;
+using testing::IsSupersetOf;
using testing::Le;
using testing::Lt;
using testing::Matcher;
@@ -592,6 +596,22 @@ TEST(LinkTest, TestMatcherElementsAreArray) {
ON_CALL(mock, VoidFromVector(ElementsAreArray(arr))).WillByDefault(Return());
}
+// Tests the linkage of the IsSubsetOf matcher.
+TEST(LinkTest, TestMatcherIsSubsetOf) {
+ Mock mock;
+ char arr[] = {'a', 'b'};
+
+ ON_CALL(mock, VoidFromVector(IsSubsetOf(arr))).WillByDefault(Return());
+}
+
+// Tests the linkage of the IsSupersetOf matcher.
+TEST(LinkTest, TestMatcherIsSupersetOf) {
+ Mock mock;
+ char arr[] = {'a', 'b'};
+
+ ON_CALL(mock, VoidFromVector(IsSupersetOf(arr))).WillByDefault(Return());
+}
+
// Tests the linkage of the ContainerEq matcher.
TEST(LinkTest, TestMatcherContainerEq) {
Mock mock;