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 "chrome/renderer/chrome_mock_render_thread.h" | 5 #include "chrome/renderer/chrome_mock_render_thread.h" |
6 | 6 |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 | 8 |
9 #if defined(ENABLE_EXTENSIONS) | 9 #if defined(ENABLE_EXTENSIONS) |
10 #include "extensions/common/extension_messages.h" | 10 #include "extensions/common/extension_messages.h" |
11 #endif | 11 #endif |
12 | 12 |
13 ChromeMockRenderThread::ChromeMockRenderThread() { | 13 ChromeMockRenderThread::ChromeMockRenderThread() { |
14 } | 14 } |
15 | 15 |
16 ChromeMockRenderThread::~ChromeMockRenderThread() { | 16 ChromeMockRenderThread::~ChromeMockRenderThread() { |
17 } | 17 } |
18 | 18 |
19 scoped_refptr<base::MessageLoopProxy> | 19 scoped_refptr<base::SingleThreadTaskRunner> |
20 ChromeMockRenderThread::GetIOMessageLoopProxy() { | 20 ChromeMockRenderThread::GetIOMessageLoopProxy() { |
21 return io_message_loop_proxy_; | 21 return io_message_loop_proxy_; |
22 } | 22 } |
23 | 23 |
24 void ChromeMockRenderThread::set_io_message_loop_proxy( | 24 void ChromeMockRenderThread::set_io_message_loop_proxy( |
25 const scoped_refptr<base::MessageLoopProxy>& proxy) { | 25 const scoped_refptr<base::MessageLoopProxy>& proxy) { |
26 io_message_loop_proxy_ = proxy; | 26 io_message_loop_proxy_ = proxy; |
27 } | 27 } |
28 | 28 |
29 bool ChromeMockRenderThread::OnMessageReceived(const IPC::Message& msg) { | 29 bool ChromeMockRenderThread::OnMessageReceived(const IPC::Message& msg) { |
(...skipping 17 matching lines...) Expand all Loading... |
47 #if defined(ENABLE_EXTENSIONS) | 47 #if defined(ENABLE_EXTENSIONS) |
48 void ChromeMockRenderThread::OnOpenChannelToExtension( | 48 void ChromeMockRenderThread::OnOpenChannelToExtension( |
49 int routing_id, | 49 int routing_id, |
50 const ExtensionMsg_ExternalConnectionInfo& info, | 50 const ExtensionMsg_ExternalConnectionInfo& info, |
51 const std::string& channel_name, | 51 const std::string& channel_name, |
52 bool include_tls_channel_id, | 52 bool include_tls_channel_id, |
53 int* port_id) { | 53 int* port_id) { |
54 *port_id = 0; | 54 *port_id = 0; |
55 } | 55 } |
56 #endif | 56 #endif |
OLD | NEW |