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

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

Issue 8113029: Cleanup: Remove dead code - printing::PrintedPagesSource::RenderSourceName() and printing::Printe... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/printing/print_view_manager.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) 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 "content/common/notification_registrar.h" 10 #include "content/common/notification_registrar.h"
11 #include "content/common/notification_service.h" 11 #include "content/common/notification_service.h"
12 #include "googleurl/src/gurl.h"
13 #include "printing/printed_pages_source.h" 12 #include "printing/printed_pages_source.h"
14 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
15 14
16 namespace { 15 namespace {
17 16
18 class TestSource : public printing::PrintedPagesSource { 17 class TestSource : public printing::PrintedPagesSource {
19 public: 18 public:
20 virtual string16 RenderSourceName() { 19 virtual string16 RenderSourceName() OVERRIDE {
21 return string16(); 20 return string16();
22 } 21 }
23 virtual GURL RenderSourceUrl() {
24 return GURL();
25 }
26 }; 22 };
27 23
28 class TestPrintJobWorker : public printing::PrintJobWorker { 24 class TestPrintJobWorker : public printing::PrintJobWorker {
29 public: 25 public:
30 explicit TestPrintJobWorker(printing::PrintJobWorkerOwner* owner) 26 explicit TestPrintJobWorker(printing::PrintJobWorkerOwner* owner)
31 : printing::PrintJobWorker(owner) { 27 : printing::PrintJobWorker(owner) {
32 } 28 }
33 friend class TestOwner; 29 friend class TestOwner;
34 }; 30 };
35 31
(...skipping 16 matching lines...) Expand all
52 virtual MessageLoop* message_loop() { 48 virtual MessageLoop* message_loop() {
53 EXPECT_FALSE(true); 49 EXPECT_FALSE(true);
54 return NULL; 50 return NULL;
55 } 51 }
56 virtual const printing::PrintSettings& settings() const { 52 virtual const printing::PrintSettings& settings() const {
57 return settings_; 53 return settings_;
58 } 54 }
59 virtual int cookie() const { 55 virtual int cookie() const {
60 return 42; 56 return 42;
61 } 57 }
58
62 private: 59 private:
63 printing::PrintSettings settings_; 60 printing::PrintSettings settings_;
64 }; 61 };
65 62
66 class TestPrintJob : public printing::PrintJob { 63 class TestPrintJob : public printing::PrintJob {
67 public: 64 public:
68 explicit TestPrintJob(volatile bool* check) : check_(check) { 65 explicit TestPrintJob(volatile bool* check) : check_(check) {
69 } 66 }
70 private: 67 private:
71 ~TestPrintJob() { 68 ~TestPrintJob() {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 job->is_job_pending(); 131 job->is_job_pending();
135 job->document(); 132 job->document();
136 // Private 133 // Private
137 job->UpdatePrintedDocument(NULL); 134 job->UpdatePrintedDocument(NULL);
138 scoped_refptr<printing::JobEventDetails> event_details; 135 scoped_refptr<printing::JobEventDetails> event_details;
139 job->OnNotifyPrintJobEvent(event_details); 136 job->OnNotifyPrintJobEvent(event_details);
140 job->OnDocumentDone(); 137 job->OnDocumentDone();
141 job->ControlledWorkerShutdown(); 138 job->ControlledWorkerShutdown();
142 */ 139 */
143 } 140 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/printing/print_view_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698