Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: chrome/test/base/chrome_render_view_host_test_harness.h

Issue 7892007: Add ChromeRenderViewHostTestHarness to get rid of the dependency from RVHTH to profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // 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_TEST_BASE_CHROME_RENDER_VIEW_HOST_TEST_HARNESS_H_
6 #define CHROME_TEST_BASE_CHROME_RENDER_VIEW_HOST_TEST_HARNESS_H_
7 #pragma once
8
9 #include "base/compiler_specific.h"
10 #include "content/browser/renderer_host/test_render_view_host.h"
11
12 class TestingProfile;
13
14 // Wrapper around RenderViewHostTestHarness that uses a TestingProfile as
15 // browser context instead of a TestBrowserContext.
16 class ChromeRenderViewHostTestHarness : public RenderViewHostTestHarness {
17 public:
18 ChromeRenderViewHostTestHarness();
19 virtual ~ChromeRenderViewHostTestHarness();
20
21 TestingProfile* profile();
22
23 protected:
24 // testing::Test
25 virtual void SetUp() OVERRIDE;
26 virtual void TearDown() OVERRIDE;
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewHostTestHarness);
Paweł Hajdan Jr. 2011/09/13 19:16:36 nit: No need for that for test fixtures.
30 };
31
32 #endif // CHROME_TEST_BASE_CHROME_RENDER_VIEW_HOST_TEST_HARNESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698