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

Side by Side Diff: content/public/test/mock_render_thread.cc

Issue 11363008: Fix for 128506: Random Chinese/Japanese characters are missing in documents printed via the syst... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string>
6
5 #include "content/public/test/mock_render_thread.h" 7 #include "content/public/test/mock_render_thread.h"
6 8
7 #include "base/process_util.h" 9 #include "base/process_util.h"
8 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
9 #include "content/common/view_messages.h" 11 #include "content/common/view_messages.h"
10 #include "ipc/ipc_message_utils.h" 12 #include "ipc/ipc_message_utils.h"
11 #include "ipc/ipc_sync_message.h" 13 #include "ipc/ipc_sync_message.h"
12 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
13 15
14 namespace content { 16 namespace content {
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 void MockRenderThread::ToggleWebKitSharedTimer(bool suspend) { 176 void MockRenderThread::ToggleWebKitSharedTimer(bool suspend) {
175 } 177 }
176 178
177 void MockRenderThread::UpdateHistograms(int sequence_number) { 179 void MockRenderThread::UpdateHistograms(int sequence_number) {
178 } 180 }
179 181
180 #if defined(OS_WIN) 182 #if defined(OS_WIN)
181 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { 183 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) {
182 } 184 }
183 185
186 void MockRenderThread::PreCacheFontCharacters(const LOGFONT& log_font,
187 const std::wstring& str) {
188 }
189
184 void MockRenderThread::ReleaseCachedFonts() { 190 void MockRenderThread::ReleaseCachedFonts() {
185 } 191 }
186 192
187 #endif // OS_WIN 193 #endif // OS_WIN
188 194
189 void MockRenderThread::SendCloseMessage() { 195 void MockRenderThread::SendCloseMessage() {
190 ViewMsg_Close msg(routing_id_); 196 ViewMsg_Close msg(routing_id_);
191 widget_->OnMessageReceived(msg); 197 widget_->OnMessageReceived(msg);
192 } 198 }
193 199
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 void MockRenderThread::OnDuplicateSection( 236 void MockRenderThread::OnDuplicateSection(
231 base::SharedMemoryHandle renderer_handle, 237 base::SharedMemoryHandle renderer_handle,
232 base::SharedMemoryHandle* browser_handle) { 238 base::SharedMemoryHandle* browser_handle) {
233 // We don't have to duplicate the input handles since RenderViewTest does not 239 // We don't have to duplicate the input handles since RenderViewTest does not
234 // separate a browser process from a renderer process. 240 // separate a browser process from a renderer process.
235 *browser_handle = renderer_handle; 241 *browser_handle = renderer_handle;
236 } 242 }
237 #endif // defined(OS_WIN) 243 #endif // defined(OS_WIN)
238 244
239 } // namespace content 245 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698