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

Side by Side Diff: chrome/browser/ui/panels/old_base_panel_browser_test.h

Issue 10544113: Revert 141690 - Modify old Panel test files and include them in .gyp. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
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_BROWSER_UI_PANELS_OLD_BASE_PANEL_BROWSER_TEST_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_
6 #define CHROME_BROWSER_UI_PANELS_OLD_BASE_PANEL_BROWSER_TEST_H_ 6 #define CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "chrome/browser/ui/panels/display_settings_provider.h" 11 #include "chrome/browser/ui/panels/display_settings_provider.h"
12 #include "chrome/browser/ui/panels/panel.h" 12 #include "chrome/browser/ui/panels/panel.h"
13 #include "chrome/browser/ui/panels/panel_strip.h" 13 #include "chrome/browser/ui/panels/panel_strip.h"
14 #include "chrome/common/extensions/extension.h" 14 #include "chrome/common/extensions/extension.h"
15 #include "chrome/test/base/in_process_browser_test.h" 15 #include "chrome/test/base/in_process_browser_test.h"
16 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
17 17
18 class OldBasePanelBrowserTest : public InProcessBrowserTest { 18 class BasePanelBrowserTest : public InProcessBrowserTest {
19 public: 19 public:
20 class MockDisplaySettingsProvider : public DisplaySettingsProvider { 20 class MockDisplaySettingsProvider : public DisplaySettingsProvider {
21 public: 21 public:
22 MockDisplaySettingsProvider() { } 22 MockDisplaySettingsProvider() { }
23 virtual ~MockDisplaySettingsProvider() { } 23 virtual ~MockDisplaySettingsProvider() { }
24 24
25 virtual void SetPrimaryScreenArea(const gfx::Rect& primary_screen_area) = 0; 25 virtual void SetPrimaryScreenArea(const gfx::Rect& primary_screen_area) = 0;
26 virtual void SetWorkArea(const gfx::Rect& work_area) = 0; 26 virtual void SetWorkArea(const gfx::Rect& work_area) = 0;
27 virtual void EnableAutoHidingDesktopBar(DesktopBarAlignment alignment, 27 virtual void EnableAutoHidingDesktopBar(DesktopBarAlignment alignment,
28 bool enabled, 28 bool enabled,
29 int thickness) = 0; 29 int thickness) = 0;
30 virtual void SetDesktopBarVisibility(DesktopBarAlignment alignment, 30 virtual void SetDesktopBarVisibility(DesktopBarAlignment alignment,
31 DesktopBarVisibility visibility) = 0; 31 DesktopBarVisibility visibility) = 0;
32 virtual void SetDesktopBarThickness(DesktopBarAlignment alignment, 32 virtual void SetDesktopBarThickness(DesktopBarAlignment alignment,
33 int thickness) = 0; 33 int thickness) = 0;
34 }; 34 };
35 35
36 OldBasePanelBrowserTest(); 36 BasePanelBrowserTest();
37 virtual ~OldBasePanelBrowserTest(); 37 virtual ~BasePanelBrowserTest();
38 38
39 // Linux bots use icewm which activate windows in ways that break 39 // Linux bots use icewm which activate windows in ways that break
40 // certain panel tests. Skip those tests when running on the bots. 40 // certain panel tests. Skip those tests when running on the bots.
41 // We do not disable the tests to make it easy for developers to run 41 // We do not disable the tests to make it easy for developers to run
42 // them locally. 42 // them locally.
43 bool SkipTestIfIceWM(); 43 bool SkipTestIfIceWM();
44 44
45 // Gnome running compiz refuses to activate a window that was initially 45 // Gnome running compiz refuses to activate a window that was initially
46 // created as inactive, causing certain panel tests to fail. These tests 46 // created as inactive, causing certain panel tests to fail. These tests
47 // pass fine on the bots, but fail for developers as Gnome running compiz 47 // pass fine on the bots, but fail for developers as Gnome running compiz
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 static const FilePath::CharType* kTestDir; 118 static const FilePath::CharType* kTestDir;
119 119
120 private: 120 private:
121 // Passed to and owned by PanelManager. 121 // Passed to and owned by PanelManager.
122 MockDisplaySettingsProvider* mock_display_settings_provider_; 122 MockDisplaySettingsProvider* mock_display_settings_provider_;
123 123
124 bool mock_display_settings_enabled_; 124 bool mock_display_settings_enabled_;
125 }; 125 };
126 126
127 #endif // CHROME_BROWSER_UI_PANELS_OLD_BASE_PANEL_BROWSER_TEST_H_ 127 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/native_panel.h ('k') | chrome/browser/ui/panels/old_base_panel_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698