blob: 20eaa7c0564bffca33ac37eb77ca23ddf67f0a36 [file] [log] [blame]
[email protected]a61890e2012-07-27 22:27:111// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]c6d068ff2011-10-14 17:28:232// 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
skyostil140473b2015-06-10 16:44:457#include "base/single_thread_task_runner.h"
[email protected]c6d068ff2011-10-14 17:28:238#include "testing/gtest/include/gtest/gtest.h"
9
dgn97dd2462015-02-05 19:31:1610ChromeMockRenderThread::ChromeMockRenderThread() {
[email protected]c6d068ff2011-10-14 17:28:2311}
12
13ChromeMockRenderThread::~ChromeMockRenderThread() {
14}
15
skyostil12262cf2015-05-21 14:49:3116scoped_refptr<base::SingleThreadTaskRunner>
thestig529ad8a2016-07-08 20:30:1217ChromeMockRenderThread::GetIOTaskRunner() {
skyostil140473b2015-06-10 16:44:4518 return io_task_runner_;
[email protected]c9a49a52013-10-25 02:20:5319}
20
thestig529ad8a2016-07-08 20:30:1221void ChromeMockRenderThread::set_io_task_runner(
skyostil140473b2015-06-10 16:44:4522 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner) {
23 io_task_runner_ = task_runner;
[email protected]c9a49a52013-10-25 02:20:5324}