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

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

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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
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();
}
« no previous file with comments | « content/browser/dom_storage/dom_storage_message_filter.cc ('k') | content/browser/geolocation/fake_access_token_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698