Index: chrome/browser/printing/print_job_unittest.cc |
=================================================================== |
--- chrome/browser/printing/print_job_unittest.cc (revision 27591) |
+++ chrome/browser/printing/print_job_unittest.cc (working copy) |
@@ -33,12 +33,6 @@ |
class TestOwner : public printing::PrintJobWorkerOwner { |
public: |
- virtual void AddRef() { |
- EXPECT_FALSE(true); |
- } |
- virtual void Release() { |
- EXPECT_FALSE(true); |
- } |
virtual void GetSettingsDone(const printing::PrintSettings& new_settings, |
printing::PrintingContext::Result result) { |
EXPECT_FALSE(true); |
@@ -104,9 +98,9 @@ |
volatile bool check = false; |
scoped_refptr<printing::PrintJob> job(new TestPrintJob(&check)); |
EXPECT_EQ(MessageLoop::current(), job->message_loop()); |
- TestOwner owner; |
+ scoped_refptr<TestOwner> owner(new TestOwner); |
TestSource source; |
- job->Initialize(&owner, &source); |
+ job->Initialize(owner, &source); |
job->Stop(); |
job = NULL; |
EXPECT_TRUE(check); |