Index: chromeos/dbus/blocking_method_caller_unittest.cc |
diff --git a/chromeos/dbus/blocking_method_caller_unittest.cc b/chromeos/dbus/blocking_method_caller_unittest.cc |
index eb2394ac8bbaa42716ed3c54138d268da16a3c10..2abfd642525555974c457327b35ba735933c5113 100644 |
--- a/chromeos/dbus/blocking_method_caller_unittest.cc |
+++ b/chromeos/dbus/blocking_method_caller_unittest.cc |
@@ -39,7 +39,7 @@ class BlockingMethodCallerTest : public testing::Test { |
// Set an expectation so mock_proxy's CallMethodAndBlock() will use |
// CreateMockProxyResponse() to return responses. |
- EXPECT_CALL(*mock_proxy_, CallMethodAndBlock(_, _)) |
+ EXPECT_CALL(*mock_proxy_, MockCallMethodAndBlock(_, _)) |
.WillRepeatedly(Invoke( |
this, &BlockingMethodCallerTest::CreateMockProxyResponse)); |
@@ -78,10 +78,10 @@ class BlockingMethodCallerTest : public testing::Test { |
dbus::MessageReader reader(method_call); |
std::string text_message; |
if (reader.PopString(&text_message)) { |
- dbus::Response* response = dbus::Response::CreateEmpty(); |
- dbus::MessageWriter writer(response); |
+ scoped_ptr<dbus::Response> response = dbus::Response::CreateEmpty(); |
+ dbus::MessageWriter writer(response.get()); |
writer.AppendString(text_message); |
- return response; |
+ return response.release(); |
} |
} |