Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(477)

Unified Diff: content/browser/download/drag_download_file_browsertest.cc

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/download/drag_download_file.cc ('k') | content/browser/download/drag_download_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « content/browser/download/drag_download_file.cc ('k') | content/browser/download/drag_download_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698