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

Side by Side Diff: chrome/renderer/mock_render_thread.cc

Issue 155905: Separates ipc code from common (http://crbug.com/16829) (Closed)
Patch Set: Fixes reference to 'common_message_traits' it's actually 'common_param_traits' Created 11 years, 5 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/renderer/mock_printer.cc ('k') | chrome/renderer/plugin_channel_host.cc » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/renderer/mock_render_thread.h" 5 #include "chrome/renderer/mock_render_thread.h"
6 6
7 #include "chrome/common/ipc_message_utils.h"
8 #include "chrome/common/render_messages.h" 7 #include "chrome/common/render_messages.h"
8 #include "ipc/ipc_message_utils.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 MockRenderThread::MockRenderThread() 11 MockRenderThread::MockRenderThread()
12 : routing_id_(0), 12 : routing_id_(0),
13 opener_id_(0), 13 opener_id_(0),
14 widget_(NULL), 14 widget_(NULL),
15 reply_deserializer_(NULL), 15 reply_deserializer_(NULL),
16 printer_(new MockPrinter) { 16 printer_(new MockPrinter) {
17 } 17 }
18 18
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 void MockRenderThread::OnDidGetPrintedPagesCount(int cookie, int number_pages) { 129 void MockRenderThread::OnDidGetPrintedPagesCount(int cookie, int number_pages) {
130 if (printer_.get()) 130 if (printer_.get())
131 printer_->SetPrintedPagesCount(cookie, number_pages); 131 printer_->SetPrintedPagesCount(cookie, number_pages);
132 } 132 }
133 133
134 void MockRenderThread::OnDidPrintPage( 134 void MockRenderThread::OnDidPrintPage(
135 const ViewHostMsg_DidPrintPage_Params& params) { 135 const ViewHostMsg_DidPrintPage_Params& params) {
136 if (printer_.get()) 136 if (printer_.get())
137 printer_->PrintPage(params); 137 printer_->PrintPage(params);
138 } 138 }
OLDNEW
« no previous file with comments | « chrome/renderer/mock_printer.cc ('k') | chrome/renderer/plugin_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698