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/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 thread_->OnCreateWidget(opener_id, popup_type, route_id); | 70 thread_->OnCreateWidget(opener_id, popup_type, route_id); |
71 return true; | 71 return true; |
72 } | 72 } |
73 | 73 |
74 void CreateFullscreenWidget( | 74 void CreateFullscreenWidget( |
75 int opener_id, | 75 int opener_id, |
76 const CreateFullscreenWidgetCallback& callback) override { | 76 const CreateFullscreenWidgetCallback& callback) override { |
77 NOTREACHED(); | 77 NOTREACHED(); |
78 } | 78 } |
79 | 79 |
80 void AllocatedSharedBitmap(mojo::ScopedSharedBufferHandle buffer, | 80 void GetSharedBitmapManager( |
81 const cc::SharedBitmapId& id) override { | 81 cc::mojom::SharedBitmapManagerAssociatedRequest request) override { |
82 NOTREACHED(); | 82 NOTREACHED(); |
83 } | 83 } |
84 | 84 |
85 void DeletedSharedBitmap(const cc::SharedBitmapId& id) override { | |
86 NOTREACHED(); | |
87 } | |
88 | |
89 private: | 85 private: |
90 MockRenderThread* const thread_; | 86 MockRenderThread* const thread_; |
91 }; | 87 }; |
92 | 88 |
93 } // namespace | 89 } // namespace |
94 | 90 |
95 MockRenderThread::MockRenderThread() | 91 MockRenderThread::MockRenderThread() |
96 : routing_id_(0), | 92 : routing_id_(0), |
97 opener_id_(0), | 93 opener_id_(0), |
98 new_window_routing_id_(0), | 94 new_window_routing_id_(0), |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 void MockRenderThread::OnCreateWindow( | 341 void MockRenderThread::OnCreateWindow( |
346 const mojom::CreateNewWindowParams& params, | 342 const mojom::CreateNewWindowParams& params, |
347 mojom::CreateNewWindowReply* reply) { | 343 mojom::CreateNewWindowReply* reply) { |
348 reply->route_id = new_window_routing_id_; | 344 reply->route_id = new_window_routing_id_; |
349 reply->main_frame_route_id = new_window_main_frame_routing_id_; | 345 reply->main_frame_route_id = new_window_main_frame_routing_id_; |
350 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_; | 346 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_; |
351 reply->cloned_session_storage_namespace_id = 0; | 347 reply->cloned_session_storage_namespace_id = 0; |
352 } | 348 } |
353 | 349 |
354 } // namespace content | 350 } // namespace content |
OLD | NEW |