[email protected] | a61890e | 2012-07-27 22:27:11 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | c6d068ff | 2011-10-14 17:28:23 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #include "chrome/renderer/chrome_mock_render_thread.h" | ||||
6 | |||||
skyostil | 140473b | 2015-06-10 16:44:45 | [diff] [blame] | 7 | #include "base/single_thread_task_runner.h" |
[email protected] | c6d068ff | 2011-10-14 17:28:23 | [diff] [blame] | 8 | #include "testing/gtest/include/gtest/gtest.h" |
9 | |||||
dgn | 97dd246 | 2015-02-05 19:31:16 | [diff] [blame] | 10 | ChromeMockRenderThread::ChromeMockRenderThread() { |
[email protected] | c6d068ff | 2011-10-14 17:28:23 | [diff] [blame] | 11 | } |
12 | |||||
13 | ChromeMockRenderThread::~ChromeMockRenderThread() { | ||||
14 | } | ||||
15 | |||||
skyostil | 12262cf | 2015-05-21 14:49:31 | [diff] [blame] | 16 | scoped_refptr<base::SingleThreadTaskRunner> |
thestig | 529ad8a | 2016-07-08 20:30:12 | [diff] [blame] | 17 | ChromeMockRenderThread::GetIOTaskRunner() { |
skyostil | 140473b | 2015-06-10 16:44:45 | [diff] [blame] | 18 | return io_task_runner_; |
[email protected] | c9a49a5 | 2013-10-25 02:20:53 | [diff] [blame] | 19 | } |
20 | |||||
thestig | 529ad8a | 2016-07-08 20:30:12 | [diff] [blame] | 21 | void ChromeMockRenderThread::set_io_task_runner( |
skyostil | 140473b | 2015-06-10 16:44:45 | [diff] [blame] | 22 | const scoped_refptr<base::SingleThreadTaskRunner>& task_runner) { |
23 | io_task_runner_ = task_runner; | ||||
[email protected] | c9a49a5 | 2013-10-25 02:20:53 | [diff] [blame] | 24 | } |