| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 } | 228 } |
| 229 | 229 |
| 230 bool MockRenderThread::ResolveProxy(const GURL& url, std::string* proxy_list) { | 230 bool MockRenderThread::ResolveProxy(const GURL& url, std::string* proxy_list) { |
| 231 return false; | 231 return false; |
| 232 } | 232 } |
| 233 | 233 |
| 234 base::WaitableEvent* MockRenderThread::GetShutdownEvent() { | 234 base::WaitableEvent* MockRenderThread::GetShutdownEvent() { |
| 235 return NULL; | 235 return NULL; |
| 236 } | 236 } |
| 237 | 237 |
| 238 int32_t MockRenderThread::GetClientId() { |
| 239 return 1; |
| 240 } |
| 241 |
| 238 #if defined(OS_WIN) | 242 #if defined(OS_WIN) |
| 239 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { | 243 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { |
| 240 } | 244 } |
| 241 | 245 |
| 242 void MockRenderThread::ReleaseCachedFonts() { | 246 void MockRenderThread::ReleaseCachedFonts() { |
| 243 } | 247 } |
| 244 | 248 |
| 245 #endif // OS_WIN | 249 #endif // OS_WIN |
| 246 | 250 |
| 247 ServiceManagerConnection* MockRenderThread::GetServiceManagerConnection() { | 251 ServiceManagerConnection* MockRenderThread::GetServiceManagerConnection() { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 void MockRenderThread::OnCreateWindow( | 325 void MockRenderThread::OnCreateWindow( |
| 322 const mojom::CreateNewWindowParams& params, | 326 const mojom::CreateNewWindowParams& params, |
| 323 mojom::CreateNewWindowReply* reply) { | 327 mojom::CreateNewWindowReply* reply) { |
| 324 reply->route_id = new_window_routing_id_; | 328 reply->route_id = new_window_routing_id_; |
| 325 reply->main_frame_route_id = new_window_main_frame_routing_id_; | 329 reply->main_frame_route_id = new_window_main_frame_routing_id_; |
| 326 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_; | 330 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_; |
| 327 reply->cloned_session_storage_namespace_id = 0; | 331 reply->cloned_session_storage_namespace_id = 0; |
| 328 } | 332 } |
| 329 | 333 |
| 330 } // namespace content | 334 } // namespace content |
| OLD | NEW |