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

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

Issue 10987037: Add tests for panel app icon functionaility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix builds Created 8 years, 2 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_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 const gfx::Rect& bounds); 75 const gfx::Rect& bounds);
76 Panel* CreatePanel(const std::string& panel_name); 76 Panel* CreatePanel(const std::string& panel_name);
77 77
78 Panel* CreateDockedPanel(const std::string& name, const gfx::Rect& bounds); 78 Panel* CreateDockedPanel(const std::string& name, const gfx::Rect& bounds);
79 Panel* CreateDetachedPanel(const std::string& name, const gfx::Rect& bounds); 79 Panel* CreateDetachedPanel(const std::string& name, const gfx::Rect& bounds);
80 80
81 static NativePanelTesting* CreateNativePanelTesting(Panel* panel); 81 static NativePanelTesting* CreateNativePanelTesting(Panel* panel);
82 82
83 void WaitForPanelActiveState(Panel* panel, ActiveState state); 83 void WaitForPanelActiveState(Panel* panel, ActiveState state);
84 void WaitForWindowSizeAvailable(Panel* panel); 84 void WaitForWindowSizeAvailable(Panel* panel);
85 void WaitForAppIconAvailable(Panel* panel);
85 void WaitForBoundsAnimationFinished(Panel* panel); 86 void WaitForBoundsAnimationFinished(Panel* panel);
86 87
87 scoped_refptr<extensions::Extension> CreateExtension( 88 scoped_refptr<extensions::Extension> CreateExtension(
88 const FilePath::StringType& path, 89 const FilePath::StringType& path,
89 extensions::Extension::Location location, 90 extensions::Extension::Location location,
90 const DictionaryValue& extra_value); 91 const DictionaryValue& extra_value);
92 scoped_refptr<extensions::Extension> LoadExtensionFromManifest(
93 const FilePath::StringType& manifest_file);
91 94
92 void MoveMouseAndWaitForExpansionStateChange(Panel* panel, 95 void MoveMouseAndWaitForExpansionStateChange(Panel* panel,
93 const gfx::Point& position); 96 const gfx::Point& position);
94 static void MoveMouse(const gfx::Point& position); 97 static void MoveMouse(const gfx::Point& position);
95 void CloseWindowAndWait(Panel* panel); 98 void CloseWindowAndWait(Panel* panel);
96 static std::string MakePanelName(int index); 99 static std::string MakePanelName(int index);
97 100
98 // |primary_screen_area| must contain |work_area|. If empty rect is passed 101 // |primary_screen_area| must contain |work_area|. If empty rect is passed
99 // to |work_area|, it will be set to same as |primary_screen_area|. 102 // to |work_area|, it will be set to same as |primary_screen_area|.
100 void SetTestingAreas(const gfx::Rect& primary_screen_area, 103 void SetTestingAreas(const gfx::Rect& primary_screen_area,
(...skipping 11 matching lines...) Expand all
112 static const FilePath::CharType* kTestDir; 115 static const FilePath::CharType* kTestDir;
113 116
114 private: 117 private:
115 // Passed to and owned by PanelManager. 118 // Passed to and owned by PanelManager.
116 MockDisplaySettingsProvider* mock_display_settings_provider_; 119 MockDisplaySettingsProvider* mock_display_settings_provider_;
117 120
118 bool mock_display_settings_enabled_; 121 bool mock_display_settings_enabled_;
119 }; 122 };
120 123
121 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_ 124 #endif // CHROME_BROWSER_UI_PANELS_BASE_PANEL_BROWSER_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698