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

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

Issue 10068036: RefCounted types should not have public destructors, chrome/browser/ part 5 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix Created 8 years, 8 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
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/public/browser/notification_registrar.h" 10 #include "content/public/browser/notification_registrar.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 return NULL; 50 return NULL;
51 } 51 }
52 virtual const printing::PrintSettings& settings() const { 52 virtual const printing::PrintSettings& settings() const {
53 return settings_; 53 return settings_;
54 } 54 }
55 virtual int cookie() const { 55 virtual int cookie() const {
56 return 42; 56 return 42;
57 } 57 }
58 58
59 private: 59 private:
60 virtual ~TestOwner() {}
61
60 printing::PrintSettings settings_; 62 printing::PrintSettings settings_;
61 }; 63 };
62 64
63 class TestPrintJob : public printing::PrintJob { 65 class TestPrintJob : public printing::PrintJob {
64 public: 66 public:
65 explicit TestPrintJob(volatile bool* check) : check_(check) { 67 explicit TestPrintJob(volatile bool* check) : check_(check) {
66 } 68 }
67 private: 69 private:
68 ~TestPrintJob() { 70 ~TestPrintJob() {
69 *check_ = true; 71 *check_ = true;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 job->is_job_pending(); 133 job->is_job_pending();
132 job->document(); 134 job->document();
133 // Private 135 // Private
134 job->UpdatePrintedDocument(NULL); 136 job->UpdatePrintedDocument(NULL);
135 scoped_refptr<printing::JobEventDetails> event_details; 137 scoped_refptr<printing::JobEventDetails> event_details;
136 job->OnNotifyPrintJobEvent(event_details); 138 job->OnNotifyPrintJobEvent(event_details);
137 job->OnDocumentDone(); 139 job->OnDocumentDone();
138 job->ControlledWorkerShutdown(); 140 job->ControlledWorkerShutdown();
139 */ 141 */
140 } 142 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698