Skip to content
Snippets Groups Projects
Commit 125a7ba6 authored by jam@chromium.org's avatar jam@chromium.org
Browse files

Fix problems with my previous patch (r70105) with gmock.

TBR=joi

Review URL: http://codereview.chromium.org/6010005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70138 0039d316-1c4b-4281-b951-d872f2087c98
parent 439f8d66
No related merge requests found
......@@ -134,7 +134,7 @@ TEST_F(ExtensionTestSimpleApiCall, FLAKY_RunTest) {
EXPECT_CALL(*mock_, OnForwardMessageToExternalHost(
_, keys::kAutomationOrigin, keys::kAutomationRequestTarget))
.WillOnce(DoAll(
SaveArg<1>(&message_received),
SaveArg<0>(&message_received),
InvokeWithoutArgs(
CreateFunctor(&loop_, &TimedMessageLoopRunner::Quit))));
......@@ -285,7 +285,7 @@ TEST_F(ExtensionTestRoundtripApiCall, FLAKY_RunTest) {
EXPECT_CALL(*mock_, OnForwardMessageToExternalHost(
_, keys::kAutomationOrigin, keys::kAutomationRequestTarget))
.Times(2)
.WillRepeatedly(WithArgs<1>(Invoke(
.WillRepeatedly(WithArgs<0>(Invoke(
CreateFunctor(this,
&ExtensionTestRoundtripApiCall::CheckAndSendResponse))));
......@@ -472,7 +472,7 @@ TEST_F(ExtensionTestBrowserEvents, FLAKY_RunTest) {
EXPECT_CALL(*mock_, OnForwardMessageToExternalHost(
_, keys::kAutomationOrigin, _))
.WillRepeatedly(WithArgs<1, 2>(Invoke(
.WillRepeatedly(WithArgs<0, 2>(Invoke(
CreateFunctor(this,
&ExtensionTestBrowserEvents::HandleMessageFromChrome))));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment