OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/message_loop.h" | 5 #include "base/message_loop.h" |
| 6 #include "base/string16.h" |
6 #include "chrome/browser/printing/print_job.h" | 7 #include "chrome/browser/printing/print_job.h" |
7 #include "chrome/browser/printing/print_job_worker.h" | 8 #include "chrome/browser/printing/print_job_worker.h" |
8 #include "chrome/common/notification_registrar.h" | 9 #include "chrome/common/notification_registrar.h" |
9 #include "chrome/common/notification_service.h" | 10 #include "chrome/common/notification_service.h" |
10 #include "printing/printed_pages_source.h" | 11 #include "printing/printed_pages_source.h" |
11 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
13 | 14 |
14 namespace { | 15 namespace { |
15 | 16 |
16 class TestSource : public printing::PrintedPagesSource { | 17 class TestSource : public printing::PrintedPagesSource { |
17 public: | 18 public: |
18 virtual std::wstring RenderSourceName() { | 19 virtual string16 RenderSourceName() { |
19 return L""; | 20 return string16(); |
20 } | 21 } |
21 virtual GURL RenderSourceUrl() { | 22 virtual GURL RenderSourceUrl() { |
22 return GURL(); | 23 return GURL(); |
23 } | 24 } |
24 }; | 25 }; |
25 | 26 |
26 class TestPrintJobWorker : public printing::PrintJobWorker { | 27 class TestPrintJobWorker : public printing::PrintJobWorker { |
27 public: | 28 public: |
28 explicit TestPrintJobWorker(printing::PrintJobWorkerOwner* owner) | 29 explicit TestPrintJobWorker(printing::PrintJobWorkerOwner* owner) |
29 : printing::PrintJobWorker(owner) { | 30 : printing::PrintJobWorker(owner) { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 job->is_print_dialog_box_shown(); | 132 job->is_print_dialog_box_shown(); |
132 job->document(); | 133 job->document(); |
133 // Private | 134 // Private |
134 job->UpdatePrintedDocument(NULL); | 135 job->UpdatePrintedDocument(NULL); |
135 scoped_refptr<printing::JobEventDetails> event_details; | 136 scoped_refptr<printing::JobEventDetails> event_details; |
136 job->OnNotifyPrintJobEvent(event_details); | 137 job->OnNotifyPrintJobEvent(event_details); |
137 job->OnDocumentDone(); | 138 job->OnDocumentDone(); |
138 job->ControlledWorkerShutdown(); | 139 job->ControlledWorkerShutdown(); |
139 */ | 140 */ |
140 } | 141 } |
OLD | NEW |