OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008 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 "base/logging.h" | |
8 #include "chrome/common/ipc_message_utils.h" | 7 #include "chrome/common/ipc_message_utils.h" |
9 #include "chrome/common/render_messages.h" | 8 #include "chrome/common/render_messages.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
11 | 10 |
12 MockRenderThread::MockRenderThread() | 11 MockRenderThread::MockRenderThread() |
13 : routing_id_(0), | 12 : routing_id_(0), |
14 opener_id_(0), | 13 opener_id_(0), |
15 widget_(NULL), | 14 widget_(NULL), |
16 reply_deserializer_(NULL) { | 15 reply_deserializer_(NULL) { |
17 } | 16 } |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 IPC_END_MESSAGE_MAP_EX() | 75 IPC_END_MESSAGE_MAP_EX() |
77 } | 76 } |
78 | 77 |
79 // The Widget expects to be returned valid route_id. | 78 // The Widget expects to be returned valid route_id. |
80 void MockRenderThread::OnMsgCreateWidget(int opener_id, | 79 void MockRenderThread::OnMsgCreateWidget(int opener_id, |
81 bool activatable, | 80 bool activatable, |
82 int* route_id) { | 81 int* route_id) { |
83 opener_id_ = opener_id; | 82 opener_id_ = opener_id; |
84 *route_id = routing_id_; | 83 *route_id = routing_id_; |
85 } | 84 } |
OLD | NEW |