| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |