aboutsummaryrefslogtreecommitdiffstats
path: root/test/gmock_output_test_.cc
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386>2009-06-09 06:09:53 +0000
committerzhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386>2009-06-09 06:09:53 +0000
commitbf55085d456e3ee55eb234c98c435e54d0a2d5aa (patch)
tree32d9ace4b2fa991dd2f82f76685cb9eae0b00523 /test/gmock_output_test_.cc
parent2661c6821a4d7964697e48747c4d739e1ac3a243 (diff)
downloadgoogletest-bf55085d456e3ee55eb234c98c435e54d0a2d5aa.tar.gz
googletest-bf55085d456e3ee55eb234c98c435e54d0a2d5aa.tar.bz2
googletest-bf55085d456e3ee55eb234c98c435e54d0a2d5aa.zip
Implements .With() as a synonym of .WithArguments(); implements AllArgs(m) as a synonym of m; relies on gtest-port to #include tuple; fixes a compatibility with Symbian.
Diffstat (limited to 'test/gmock_output_test_.cc')
-rw-r--r--test/gmock_output_test_.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/gmock_output_test_.cc b/test/gmock_output_test_.cc
index 97619af1..8244f10b 100644
--- a/test/gmock_output_test_.cc
+++ b/test/gmock_output_test_.cc
@@ -177,19 +177,19 @@ TEST_F(GMockOutputTest, MismatchArguments) {
foo_.Bar(s, 0, 0);
}
-TEST_F(GMockOutputTest, MismatchWithArguments) {
+TEST_F(GMockOutputTest, MismatchWith) {
EXPECT_CALL(foo_, Bar2(Ge(2), Ge(1)))
- .WithArguments(Ge());
+ .With(Ge());
- foo_.Bar2(2, 3); // Mismatch WithArguments()
+ foo_.Bar2(2, 3); // Mismatch With()
foo_.Bar2(2, 1);
}
-TEST_F(GMockOutputTest, MismatchArgumentsAndWithArguments) {
+TEST_F(GMockOutputTest, MismatchArgumentsAndWith) {
EXPECT_CALL(foo_, Bar2(Ge(2), Ge(1)))
- .WithArguments(Ge());
+ .With(Ge());
- foo_.Bar2(1, 3); // Mismatch arguments and mismatch WithArguments()
+ foo_.Bar2(1, 3); // Mismatch arguments and mismatch With()
foo_.Bar2(2, 1);
}