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

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

Issue 10836324: Panels test cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: feedback change to remove redundant if-check Created 8 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/panels/base_panel_browser_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BASE_PANEL_BROWSER_TEST_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_
6 #define CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ 6 #define CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_
7 7
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "chrome/browser/ui/panels/display_settings_provider.h" 10 #include "chrome/browser/ui/panels/display_settings_provider.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 Panel* CreatePanel(const std::string& panel_name); 75 Panel* CreatePanel(const std::string& panel_name);
76 76
77 Panel* CreateDockedPanel(const std::string& name, const gfx::Rect& bounds); 77 Panel* CreateDockedPanel(const std::string& name, const gfx::Rect& bounds);
78 Panel* CreateDetachedPanel(const std::string& name, const gfx::Rect& bounds); 78 Panel* CreateDetachedPanel(const std::string& name, const gfx::Rect& bounds);
79 79
80 static NativePanelTesting* CreateNativePanelTesting(Panel* panel); 80 static NativePanelTesting* CreateNativePanelTesting(Panel* panel);
81 81
82 void WaitForPanelActiveState(Panel* panel, ActiveState state); 82 void WaitForPanelActiveState(Panel* panel, ActiveState state);
83 void WaitForWindowSizeAvailable(Panel* panel); 83 void WaitForWindowSizeAvailable(Panel* panel);
84 void WaitForBoundsAnimationFinished(Panel* panel); 84 void WaitForBoundsAnimationFinished(Panel* panel);
85 void WaitForExpansionStateChanged(Panel* panel,
86 Panel::ExpansionState expansion_state);
87 85
88 void CreateTestTabContents(Browser* browser); 86 void CreateTestTabContents(Browser* browser);
89 87
90 scoped_refptr<extensions::Extension> CreateExtension( 88 scoped_refptr<extensions::Extension> CreateExtension(
91 const FilePath::StringType& path, 89 const FilePath::StringType& path,
92 extensions::Extension::Location location, 90 extensions::Extension::Location location,
93 const DictionaryValue& extra_value); 91 const DictionaryValue& extra_value);
94 92
95 void MoveMouseAndWaitForExpansionStateChange(Panel* panel, 93 void MoveMouseAndWaitForExpansionStateChange(Panel* panel,
96 const gfx::Point& position); 94 const gfx::Point& position);
(...skipping 18 matching lines...) Expand all
115 static const FilePath::CharType* kTestDir; 113 static const FilePath::CharType* kTestDir;
116 114
117 private: 115 private:
118 // Passed to and owned by PanelManager. 116 // Passed to and owned by PanelManager.
119 MockDisplaySettingsProvider* mock_display_settings_provider_; 117 MockDisplaySettingsProvider* mock_display_settings_provider_;
120 118
121 bool mock_display_settings_enabled_; 119 bool mock_display_settings_enabled_;
122 }; 120 };
123 121
124 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ 122 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/panels/base_panel_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698