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 ce844afc61d163145dc02d2ac55734e60b61ebb0..e7915b79fe463480d4976b258c3f68604b093148 100644 |
--- a/content/browser/download/drag_download_file_browsertest.cc |
+++ b/content/browser/download/drag_download_file_browsertest.cc |
@@ -101,11 +101,12 @@ 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( |
+ EXPECT_CALL(*observer.get(), OnDownloadAborted()).WillOnce(InvokeWithoutArgs( |
this, &DragDownloadFileTest::Succeed)); |
- ON_CALL(*observer, OnDownloadCompleted(_)).WillByDefault(InvokeWithoutArgs( |
- this, &DragDownloadFileTest::FailFast)); |
- file->Start(observer); |
+ ON_CALL( |
+ *observer.get(), OnDownloadCompleted(_)).WillByDefault(InvokeWithoutArgs( |
+ this, &DragDownloadFileTest::FailFast)); |
+ file->Start(observer.get()); |
RunMessageLoop(); |
} |
@@ -127,11 +128,12 @@ 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( |
+ EXPECT_CALL( |
+ *observer.get(), OnDownloadCompleted(_)).WillOnce(InvokeWithoutArgs( |
+ this, &DragDownloadFileTest::Succeed)); |
+ ON_CALL(*observer.get(), OnDownloadAborted()).WillByDefault(InvokeWithoutArgs( |
this, &DragDownloadFileTest::FailFast)); |
- file->Start(observer); |
+ file->Start(observer.get()); |
RunMessageLoop(); |
} |