blob: 405466abf74277174b418473100a33465cf7293e [file] [log] [blame]
[email protected]c6d068ff2011-10-14 17:28:231// Copyright (c) 2011 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_
6#define CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_
[email protected]c6d068ff2011-10-14 17:28:237
8#include <string>
9
avi2729e442015-12-26 05:27:4510#include "base/macros.h"
Gabriel Charette5ff87ce2017-05-16 18:03:4511#include "base/single_thread_task_runner.h"
[email protected]08a932d52012-06-03 21:42:1212#include "content/public/test/mock_render_thread.h"
[email protected]c6d068ff2011-10-14 17:28:2313
dgn97dd2462015-02-05 19:31:1614// Extends content::MockRenderThread to know about extension messages.
[email protected]c6d068ff2011-10-14 17:28:2315class ChromeMockRenderThread : public content::MockRenderThread {
16 public:
17 ChromeMockRenderThread();
dchengb228d0382014-10-21 11:05:2318 ~ChromeMockRenderThread() override;
[email protected]c6d068ff2011-10-14 17:28:2319
[email protected]c9a49a52013-10-25 02:20:5320 // content::RenderThread overrides.
thestig529ad8a2016-07-08 20:30:1221 scoped_refptr<base::SingleThreadTaskRunner> GetIOTaskRunner() override;
[email protected]c9a49a52013-10-25 02:20:5322
[email protected]c6d068ff2011-10-14 17:28:2323 //////////////////////////////////////////////////////////////////////////
24 // The following functions are called by the test itself.
25
thestig529ad8a2016-07-08 20:30:1226 void set_io_task_runner(
skyostil140473b2015-06-10 16:44:4527 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
[email protected]c9a49a52013-10-25 02:20:5328
ananta5fc8d8d2016-11-09 01:41:4629 protected:
skyostil140473b2015-06-10 16:44:4530 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
[email protected]c9a49a52013-10-25 02:20:5331
[email protected]1e54c1c2013-08-12 17:16:0532 DISALLOW_COPY_AND_ASSIGN(ChromeMockRenderThread);
[email protected]c6d068ff2011-10-14 17:28:2333};
34
35#endif // CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_