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

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

Issue 8872044: Add test cases for panel overflow handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 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 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 #pragma once 7 #pragma once
8 8
9 #include "base/task.h" 9 #include "base/task.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void WaitForBoundsAnimationFinished(Panel* panel); 64 void WaitForBoundsAnimationFinished(Panel* panel);
65 void WaitForExpansionStateChanged(Panel* panel, 65 void WaitForExpansionStateChanged(Panel* panel,
66 Panel::ExpansionState expansion_state); 66 Panel::ExpansionState expansion_state);
67 67
68 void CreateTestTabContents(Browser* browser); 68 void CreateTestTabContents(Browser* browser);
69 69
70 scoped_refptr<Extension> CreateExtension(const FilePath::StringType& path, 70 scoped_refptr<Extension> CreateExtension(const FilePath::StringType& path,
71 Extension::Location location, 71 Extension::Location location,
72 const DictionaryValue& extra_value); 72 const DictionaryValue& extra_value);
73 73
74 static void MoveMouse(const gfx::Point& position);
75 static void CloseWindowAndWait(Browser* browser);
76 static std::string GetPanelName(int index);
77
74 gfx::Rect testing_work_area() const { return testing_work_area_; } 78 gfx::Rect testing_work_area() const { return testing_work_area_; }
75 void set_testing_work_area(const gfx::Rect& work_area) { 79 void set_testing_work_area(const gfx::Rect& work_area) {
76 testing_work_area_ = work_area; 80 testing_work_area_ = work_area;
77 } 81 }
78 82
79 MockAutoHidingDesktopBar* mock_auto_hiding_desktop_bar() const { 83 MockAutoHidingDesktopBar* mock_auto_hiding_desktop_bar() const {
80 return mock_auto_hiding_desktop_bar_.get(); 84 return mock_auto_hiding_desktop_bar_.get();
81 } 85 }
82 86
83 static const FilePath::CharType* kTestDir; 87 static const FilePath::CharType* kTestDir;
84 private: 88 private:
85 gfx::Rect testing_work_area_; 89 gfx::Rect testing_work_area_;
86 scoped_refptr<MockAutoHidingDesktopBar> mock_auto_hiding_desktop_bar_; 90 scoped_refptr<MockAutoHidingDesktopBar> mock_auto_hiding_desktop_bar_;
87 }; 91 };
88 92
89 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ 93 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698