Index: chromeos/dbus/shill_client_unittest_base.cc |
diff --git a/chromeos/dbus/shill_client_unittest_base.cc b/chromeos/dbus/shill_client_unittest_base.cc |
index 7488fa982f23df43f6bb2dbd9da6d48bbb03ebcc..72906e5c5d17f0db504e8088dfd01474afa0f649 100644 |
--- a/chromeos/dbus/shill_client_unittest_base.cc |
+++ b/chromeos/dbus/shill_client_unittest_base.cc |
@@ -115,7 +115,7 @@ void ShillClientUnittestBase::SetUp() { |
// Set an expectation so mock_proxy's CallMethodAndBlock() will use |
// OnCallMethodAndBlock() to return responses. |
- EXPECT_CALL(*mock_proxy_, CallMethodAndBlock(_, _)) |
+ EXPECT_CALL(*mock_proxy_, MockCallMethodAndBlock(_, _)) |
.WillRepeatedly(Invoke( |
this, &ShillClientUnittestBase::OnCallMethodAndBlock)); |
@@ -315,7 +315,7 @@ dbus::Response* ShillClientUnittestBase::OnCallMethodAndBlock( |
dbus::MessageReader reader(method_call); |
argument_checker_.Run(&reader); |
return dbus::Response::FromRawMessage( |
- dbus_message_copy(response_->raw_message())); |
+ dbus_message_copy(response_->raw_message())).release(); |
} |
} // namespace chromeos |