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

Unified Diff: chrome/service/cloud_print/printer_job_handler_unittest.cc

Issue 17948002: Update Linux 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, 6 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 | « chrome/common/extensions/sync_type_unittest.cc ('k') | components/webdata/common/web_database_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/printer_job_handler_unittest.cc
diff --git a/chrome/service/cloud_print/printer_job_handler_unittest.cc b/chrome/service/cloud_print/printer_job_handler_unittest.cc
index 854e7aaef886a7cb67fd95db07e6f8c571e1f2fa..3efe21cebb85f23d2e4e34d9169b293c069d08e7 100644
--- a/chrome/service/cloud_print/printer_job_handler_unittest.cc
+++ b/chrome/service/cloud_print/printer_job_handler_unittest.cc
@@ -635,14 +635,13 @@ MockPrintSystem::MockPrintSystem()
: job_spooler_(new NiceMock<MockJobSpooler>()),
printer_watcher_(new NiceMock<MockPrinterWatcher>()),
print_server_watcher_(new NiceMock<MockPrintServerWatcher>()) {
- ON_CALL(*this, CreateJobSpooler())
- .WillByDefault(Return(job_spooler_));
+ ON_CALL(*this, CreateJobSpooler()).WillByDefault(Return(job_spooler_.get()));
ON_CALL(*this, CreatePrinterWatcher(_))
- .WillByDefault(Return(printer_watcher_));
+ .WillByDefault(Return(printer_watcher_.get()));
ON_CALL(*this, CreatePrintServerWatcher())
- .WillByDefault(Return(print_server_watcher_));
+ .WillByDefault(Return(print_server_watcher_.get()));
ON_CALL(*this, IsValidPrinter(_)).
WillByDefault(Return(true));
« no previous file with comments | « chrome/common/extensions/sync_type_unittest.cc ('k') | components/webdata/common/web_database_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698