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

Side by Side Diff: ash/test/ash_test_views_delegate.h

Issue 2296973002: Moves ash content specific tests into ash_content_unittests (Closed)
Patch Set: remove GetMessageLoop and merge Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ASH_TEST_ASH_TEST_VIEWS_DELEGATE_H_ 5 #ifndef ASH_TEST_ASH_TEST_VIEWS_DELEGATE_H_
6 #define ASH_TEST_ASH_TEST_VIEWS_DELEGATE_H_ 6 #define ASH_TEST_ASH_TEST_VIEWS_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/views/test/test_views_delegate.h" 9 #include "ui/views/test/test_views_delegate.h"
10 10
11 namespace ash { 11 namespace ash {
12 namespace test { 12 namespace test {
13 13
14 // Ash specific ViewsDelegate. In addition to creating a TestWebContents this 14 // Ash specific ViewsDelegate. In addition to creating a TestWebContents this
15 // parents widget with no parent/context to the shell. This is created by 15 // parents widget with no parent/context to the shell. This is created by
16 // default AshTestHelper. 16 // default AshTestHelper.
17 class AshTestViewsDelegate : public views::TestViewsDelegate { 17 class AshTestViewsDelegate : public views::TestViewsDelegate {
18 public: 18 public:
19 AshTestViewsDelegate(); 19 AshTestViewsDelegate();
20 ~AshTestViewsDelegate() override; 20 ~AshTestViewsDelegate() override;
21 21
22 // Overriden from TestViewsDelegate. 22 // Overriden from TestViewsDelegate.
23 content::WebContents* CreateWebContents(
24 content::BrowserContext* browser_context,
25 content::SiteInstance* site_instance) override;
26 void OnBeforeWidgetInit( 23 void OnBeforeWidgetInit(
27 views::Widget::InitParams* params, 24 views::Widget::InitParams* params,
28 views::internal::NativeWidgetDelegate* delegate) override; 25 views::internal::NativeWidgetDelegate* delegate) override;
29 26
30 private: 27 private:
31 DISALLOW_COPY_AND_ASSIGN(AshTestViewsDelegate); 28 DISALLOW_COPY_AND_ASSIGN(AshTestViewsDelegate);
32 }; 29 };
33 30
34 } // namespace test 31 } // namespace test
35 } // namespace ash 32 } // namespace ash
36 33
37 #endif // ASH_TEST_ASH_TEST_VIEWS_DELEGATE_H_ 34 #endif // ASH_TEST_ASH_TEST_VIEWS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698