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

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

Issue 3292019: Printing: Convert several wstrings to string16. (Closed)
Patch Set: Review fixes. Created 10 years, 3 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 | « chrome/browser/browser_main.cc ('k') | 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) 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/printing/print_view_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698