diff options
author | Gennadiy Civil <gennadiycivil@users.noreply.github.com> | 2018-04-12 18:56:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-12 18:56:57 -0400 |
commit | 0957cce368316577aae5ddfffcb67f24621d69e7 (patch) | |
tree | de8da25573b0e66f37111a976dcbf9ed234e1b81 /googlemock/test/gmock-more-actions_test.cc | |
parent | 6fb65b8215610ee7c447526784eeace091164b90 (diff) | |
parent | f7330f9f14e8860bbec0620eb1d06f9c812cf561 (diff) | |
download | googletest-0957cce368316577aae5ddfffcb67f24621d69e7.tar.gz googletest-0957cce368316577aae5ddfffcb67f24621d69e7.tar.bz2 googletest-0957cce368316577aae5ddfffcb67f24621d69e7.zip |
Merge pull request #1568 from gennadiycivil/master
merging
Diffstat (limited to 'googlemock/test/gmock-more-actions_test.cc')
-rw-r--r-- | googlemock/test/gmock-more-actions_test.cc | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/googlemock/test/gmock-more-actions_test.cc b/googlemock/test/gmock-more-actions_test.cc index f5e28eae..911d034a 100644 --- a/googlemock/test/gmock-more-actions_test.cc +++ b/googlemock/test/gmock-more-actions_test.cc @@ -327,11 +327,9 @@ TEST(InvokeTest, FunctionThatTakes10Arguments) { // Tests using Invoke() with functions with parameters declared as Unused. TEST(InvokeTest, FunctionWithUnusedParameters) { - Action<int(int, int, double, const string&)> a1 = - Invoke(SumOfFirst2); - string s("hi"); - EXPECT_EQ(12, a1.Perform( - tuple<int, int, double, const string&>(10, 2, 5.6, s))); + Action<int(int, int, double, const std::string&)> a1 = Invoke(SumOfFirst2); + tuple<int, int, double, std::string> dummy = make_tuple(10, 2, 5.6, std::string("hi")); + EXPECT_EQ(12, a1.Perform(dummy)); Action<int(int, int, bool, int*)> a2 = Invoke(SumOfFirst2); @@ -380,10 +378,10 @@ TEST(InvokeMethodTest, Unary) { // Tests using Invoke() with a binary method. TEST(InvokeMethodTest, Binary) { Foo foo; - Action<string(const string&, char)> a = Invoke(&foo, &Foo::Binary); - string s("Hell"); - EXPECT_EQ("Hello", a.Perform( - tuple<const string&, char>(s, 'o'))); + Action<std::string(const std::string&, char)> a = Invoke(&foo, &Foo::Binary); + std::string s("Hell"); + tuple<std::string, char> dummy = make_tuple(s, 'o'); + EXPECT_EQ("Hello", a.Perform(dummy)); } // Tests using Invoke() with a ternary method. |