| OLD | NEW |
| 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 "content/public/test/mock_render_thread.h" | 5 #include "content/public/test/mock_render_thread.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 9 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 } | 211 } |
| 212 | 212 |
| 213 bool MockRenderThread::ResolveProxy(const GURL& url, std::string* proxy_list) { | 213 bool MockRenderThread::ResolveProxy(const GURL& url, std::string* proxy_list) { |
| 214 return false; | 214 return false; |
| 215 } | 215 } |
| 216 | 216 |
| 217 base::WaitableEvent* MockRenderThread::GetShutdownEvent() { | 217 base::WaitableEvent* MockRenderThread::GetShutdownEvent() { |
| 218 return NULL; | 218 return NULL; |
| 219 } | 219 } |
| 220 | 220 |
| 221 int32_t MockRenderThread::GetClientId() { |
| 222 return 1; |
| 223 } |
| 224 |
| 221 #if defined(OS_WIN) | 225 #if defined(OS_WIN) |
| 222 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { | 226 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { |
| 223 } | 227 } |
| 224 | 228 |
| 225 void MockRenderThread::ReleaseCachedFonts() { | 229 void MockRenderThread::ReleaseCachedFonts() { |
| 226 } | 230 } |
| 227 | 231 |
| 228 #endif // OS_WIN | 232 #endif // OS_WIN |
| 229 | 233 |
| 230 ServiceManagerConnection* MockRenderThread::GetServiceManagerConnection() { | 234 ServiceManagerConnection* MockRenderThread::GetServiceManagerConnection() { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 void MockRenderThread::OnCreateWindow( | 309 void MockRenderThread::OnCreateWindow( |
| 306 const mojom::CreateNewWindowParams& params, | 310 const mojom::CreateNewWindowParams& params, |
| 307 mojom::CreateNewWindowReply* reply) { | 311 mojom::CreateNewWindowReply* reply) { |
| 308 reply->route_id = new_window_routing_id_; | 312 reply->route_id = new_window_routing_id_; |
| 309 reply->main_frame_route_id = new_window_main_frame_routing_id_; | 313 reply->main_frame_route_id = new_window_main_frame_routing_id_; |
| 310 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_; | 314 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_; |
| 311 reply->cloned_session_storage_namespace_id = 0; | 315 reply->cloned_session_storage_namespace_id = 0; |
| 312 } | 316 } |
| 313 | 317 |
| 314 } // namespace content | 318 } // namespace content |
| OLD | NEW |