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)); |