OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |