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

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

Issue 2696263002: Refactor ViewsDelegate and MD-ify the icon-to-text spacing for checkbox and radiobutton (Closed)
Patch Set: Fix unit tests to use a ViewsDelegate to guard against crashes Created 3 years, 9 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
OLDNEW
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 #ifndef CHROME_TEST_BASE_CHROME_RENDER_VIEW_HOST_TEST_HARNESS_H_ 5 #ifndef CHROME_TEST_BASE_CHROME_RENDER_VIEW_HOST_TEST_HARNESS_H_
6 #define CHROME_TEST_BASE_CHROME_RENDER_VIEW_HOST_TEST_HARNESS_H_ 6 #define CHROME_TEST_BASE_CHROME_RENDER_VIEW_HOST_TEST_HARNESS_H_
7 7
8 #include <memory>
9
8 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
9 #include "content/public/test/test_renderer_host.h" 11 #include "content/public/test/test_renderer_host.h"
12 #include "ui/views/test/test_views_delegate.h"
10 13
11 class TestingProfile; 14 class TestingProfile;
12 15
13 // Wrapper around RenderViewHostTestHarness that uses a TestingProfile as 16 // Wrapper around RenderViewHostTestHarness that uses a TestingProfile as
14 // browser context instead of a TestBrowserContext. 17 // browser context instead of a TestBrowserContext.
15 class ChromeRenderViewHostTestHarness 18 class ChromeRenderViewHostTestHarness
16 : public content::RenderViewHostTestHarness { 19 : public content::RenderViewHostTestHarness {
17 public: 20 public:
18 ChromeRenderViewHostTestHarness(); 21 ChromeRenderViewHostTestHarness();
19 ~ChromeRenderViewHostTestHarness() override; 22 ~ChromeRenderViewHostTestHarness() override;
20 23
21 TestingProfile* profile(); 24 TestingProfile* profile();
22 25
23 protected: 26 protected:
24 // testing::Test 27 // testing::Test
25 void TearDown() override; 28 void TearDown() override;
26 29
27 // content::RenderViewHostTestHarness. 30 // content::RenderViewHostTestHarness.
28 content::BrowserContext* CreateBrowserContext() override; 31 content::BrowserContext* CreateBrowserContext() override;
32
33 private:
34 std::unique_ptr<views::TestViewsDelegate> views_delegate_;
Peter Kasting 2017/02/28 02:44:04 Yeah, pretty sure this can't be here, as RVH tests
29 }; 35 };
30 36
31 #endif // CHROME_TEST_BASE_CHROME_RENDER_VIEW_HOST_TEST_HARNESS_H_ 37 #endif // CHROME_TEST_BASE_CHROME_RENDER_VIEW_HOST_TEST_HARNESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/harmony/layout_delegate.cc ('k') | chrome/test/base/chrome_render_view_host_test_harness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698