summaryrefslogtreecommitdiffstats
path: root/content/browser/download/drag_download_file_browsertest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/download/drag_download_file_browsertest.cc')
-rw-r--r--content/browser/download/drag_download_file_browsertest.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/content/browser/download/drag_download_file_browsertest.cc b/content/browser/download/drag_download_file_browsertest.cc
index 7242c84..2578b38 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();
}