aboutsummaryrefslogtreecommitdiffstats
path: root/src/gmock-cardinalities.cc
diff options
context:
space:
mode:
authorvladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386>2011-05-20 00:42:22 +0000
committervladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386>2011-05-20 00:42:22 +0000
commit587c1b37c2f0b6d430fb13ce09326db0135b557c (patch)
tree9396b2a9b8eb5d3c30beb9001e983bba37bc7774 /src/gmock-cardinalities.cc
parent47be72a952e672e2635c62353d25e611e9a70dac (diff)
downloadgoogletest-587c1b37c2f0b6d430fb13ce09326db0135b557c.tar.gz
googletest-587c1b37c2f0b6d430fb13ce09326db0135b557c.tar.bz2
googletest-587c1b37c2f0b6d430fb13ce09326db0135b557c.zip
Adds support for building Google Mock as a shared library (DLL).
Diffstat (limited to 'src/gmock-cardinalities.cc')
-rw-r--r--src/gmock-cardinalities.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gmock-cardinalities.cc b/src/gmock-cardinalities.cc
index 1a7902b4..274f98a9 100644
--- a/src/gmock-cardinalities.cc
+++ b/src/gmock-cardinalities.cc
@@ -136,20 +136,20 @@ void Cardinality::DescribeActualCallCountTo(int actual_call_count,
}
// Creates a cardinality that allows at least n calls.
-Cardinality AtLeast(int n) { return Between(n, INT_MAX); }
+GTEST_API_ Cardinality AtLeast(int n) { return Between(n, INT_MAX); }
// Creates a cardinality that allows at most n calls.
-Cardinality AtMost(int n) { return Between(0, n); }
+GTEST_API_ Cardinality AtMost(int n) { return Between(0, n); }
// Creates a cardinality that allows any number of calls.
-Cardinality AnyNumber() { return AtLeast(0); }
+GTEST_API_ Cardinality AnyNumber() { return AtLeast(0); }
// Creates a cardinality that allows between min and max calls.
-Cardinality Between(int min, int max) {
+GTEST_API_ Cardinality Between(int min, int max) {
return Cardinality(new BetweenCardinalityImpl(min, max));
}
// Creates a cardinality that allows exactly n calls.
-Cardinality Exactly(int n) { return Between(n, n); }
+GTEST_API_ Cardinality Exactly(int n) { return Between(n, n); }
} // namespace testing