OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/string16.h" |
7 #include "chrome/browser/printing/print_job.h" | 7 #include "chrome/browser/printing/print_job.h" |
8 #include "chrome/browser/printing/print_job_worker.h" | 8 #include "chrome/browser/printing/print_job_worker.h" |
9 #include "chrome/common/chrome_notification_types.h" | 9 #include "chrome/common/chrome_notification_types.h" |
10 #include "chrome/test/testing_browser_process_test.h" | 10 #include "chrome/test/base/testing_browser_process_test.h" |
11 #include "content/common/notification_registrar.h" | 11 #include "content/common/notification_registrar.h" |
12 #include "content/common/notification_service.h" | 12 #include "content/common/notification_service.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 #include "printing/printed_pages_source.h" | 14 #include "printing/printed_pages_source.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 class TestSource : public printing::PrintedPagesSource { | 19 class TestSource : public printing::PrintedPagesSource { |
20 public: | 20 public: |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 job->is_job_pending(); | 135 job->is_job_pending(); |
136 job->document(); | 136 job->document(); |
137 // Private | 137 // Private |
138 job->UpdatePrintedDocument(NULL); | 138 job->UpdatePrintedDocument(NULL); |
139 scoped_refptr<printing::JobEventDetails> event_details; | 139 scoped_refptr<printing::JobEventDetails> event_details; |
140 job->OnNotifyPrintJobEvent(event_details); | 140 job->OnNotifyPrintJobEvent(event_details); |
141 job->OnDocumentDone(); | 141 job->OnDocumentDone(); |
142 job->ControlledWorkerShutdown(); | 142 job->ControlledWorkerShutdown(); |
143 */ | 143 */ |
144 } | 144 } |
OLD | NEW |