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

Side by Side Diff: chrome/browser/printing/print_job_unittest.cc

Issue 3610013: Printing: Convert PrintingContext into an interface implemented by the separate (Closed)
Patch Set: Comment cleanup only. Created 10 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/printing/print_job_worker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "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/notification_registrar.h" 9 #include "chrome/common/notification_registrar.h"
10 #include "chrome/common/notification_service.h" 10 #include "chrome/common/notification_service.h"
(...skipping 26 matching lines...) Expand all
37 virtual void GetSettingsDone(const printing::PrintSettings& new_settings, 37 virtual void GetSettingsDone(const printing::PrintSettings& new_settings,
38 printing::PrintingContext::Result result) { 38 printing::PrintingContext::Result result) {
39 EXPECT_FALSE(true); 39 EXPECT_FALSE(true);
40 } 40 }
41 virtual printing::PrintJobWorker* DetachWorker( 41 virtual printing::PrintJobWorker* DetachWorker(
42 printing::PrintJobWorkerOwner* new_owner) { 42 printing::PrintJobWorkerOwner* new_owner) {
43 // We're screwing up here since we're calling worker from the main thread. 43 // We're screwing up here since we're calling worker from the main thread.
44 // That's fine for testing. It is actually simulating PrinterQuery behavior. 44 // That's fine for testing. It is actually simulating PrinterQuery behavior.
45 TestPrintJobWorker* worker(new TestPrintJobWorker(new_owner)); 45 TestPrintJobWorker* worker(new TestPrintJobWorker(new_owner));
46 EXPECT_TRUE(worker->Start()); 46 EXPECT_TRUE(worker->Start());
47 worker->printing_context().UseDefaultSettings(); 47 worker->printing_context()->UseDefaultSettings();
48 settings_ = worker->printing_context().settings(); 48 settings_ = worker->printing_context()->settings();
49 return worker; 49 return worker;
50 } 50 }
51 virtual MessageLoop* message_loop() { 51 virtual MessageLoop* message_loop() {
52 EXPECT_FALSE(true); 52 EXPECT_FALSE(true);
53 return NULL; 53 return NULL;
54 } 54 }
55 virtual const printing::PrintSettings& settings() const { 55 virtual const printing::PrintSettings& settings() const {
56 return settings_; 56 return settings_;
57 } 57 }
58 virtual int cookie() const { 58 virtual int cookie() const {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 job->is_print_dialog_box_shown(); 138 job->is_print_dialog_box_shown();
139 job->document(); 139 job->document();
140 // Private 140 // Private
141 job->UpdatePrintedDocument(NULL); 141 job->UpdatePrintedDocument(NULL);
142 scoped_refptr<printing::JobEventDetails> event_details; 142 scoped_refptr<printing::JobEventDetails> event_details;
143 job->OnNotifyPrintJobEvent(event_details); 143 job->OnNotifyPrintJobEvent(event_details);
144 job->OnDocumentDone(); 144 job->OnDocumentDone();
145 job->ControlledWorkerShutdown(); 145 job->ControlledWorkerShutdown();
146 */ 146 */
147 } 147 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/printing/print_job_worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698