Index: content/browser/download/drag_download_file_browsertest.cc |
diff --git a/content/browser/download/drag_download_file_browsertest.cc b/content/browser/download/drag_download_file_browsertest.cc |
index 7242c8417bed741a523b628fec7e13cfdaaf0137..2578b382952f47245a543c7839dfb7bb37b54b29 100644 |
--- a/content/browser/download/drag_download_file_browsertest.cc |
+++ b/content/browser/download/drag_download_file_browsertest.cc |
@@ -99,11 +99,11 @@ IN_PROC_BROWSER_TEST_F(DragDownloadFileTest, DragDownloadFileTest_NetError) { |
referrer_encoding, shell()->web_contents()); |
scoped_refptr<MockDownloadFileObserver> observer( |
new MockDownloadFileObserver()); |
- EXPECT_CALL(*observer, OnDownloadAborted()).WillOnce(InvokeWithoutArgs( |
- this, &DragDownloadFileTest::Succeed)); |
- ON_CALL(*observer, OnDownloadCompleted(_)).WillByDefault(InvokeWithoutArgs( |
- this, &DragDownloadFileTest::FailFast)); |
- file->Start(observer); |
+ EXPECT_CALL(*observer.get(), OnDownloadAborted()) |
+ .WillOnce(InvokeWithoutArgs(this, &DragDownloadFileTest::Succeed)); |
+ ON_CALL(*observer.get(), OnDownloadCompleted(_)) |
+ .WillByDefault(InvokeWithoutArgs(this, &DragDownloadFileTest::FailFast)); |
+ file->Start(observer.get()); |
RunMessageLoop(); |
} |
@@ -121,11 +121,11 @@ IN_PROC_BROWSER_TEST_F(DragDownloadFileTest, DragDownloadFileTest_Complete) { |
referrer_encoding, shell()->web_contents()); |
scoped_refptr<MockDownloadFileObserver> observer( |
new MockDownloadFileObserver()); |
- EXPECT_CALL(*observer, OnDownloadCompleted(_)).WillOnce(InvokeWithoutArgs( |
- this, &DragDownloadFileTest::Succeed)); |
- ON_CALL(*observer, OnDownloadAborted()).WillByDefault(InvokeWithoutArgs( |
- this, &DragDownloadFileTest::FailFast)); |
- file->Start(observer); |
+ EXPECT_CALL(*observer.get(), OnDownloadCompleted(_)) |
+ .WillOnce(InvokeWithoutArgs(this, &DragDownloadFileTest::Succeed)); |
+ ON_CALL(*observer.get(), OnDownloadAborted()) |
+ .WillByDefault(InvokeWithoutArgs(this, &DragDownloadFileTest::FailFast)); |
+ file->Start(observer.get()); |
RunMessageLoop(); |
} |