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

Unified Diff: chrome/browser/ui/panels/test_panel_collection_squeeze_observer.h

Issue 12764018: Improve panel related tests to make them more reliable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/panels/test_panel_collection_squeeze_observer.h
diff --git a/chrome/browser/ui/panels/test_panel_collection_squeeze_observer.h b/chrome/browser/ui/panels/test_panel_collection_squeeze_observer.h
deleted file mode 100644
index 95541387187398ee60de0f440667f9c02cea52b1..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/panels/test_panel_collection_squeeze_observer.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_PANELS_TEST_PANEL_COLLECTION_SQUEEZE_OBSERVER_H_
-#define CHROME_BROWSER_UI_PANELS_TEST_PANEL_COLLECTION_SQUEEZE_OBSERVER_H_
-
-#include "chrome/browser/ui/panels/test_panel_notification_observer.h"
-
-class DockedPanelCollection;
-class Panel;
-
-// Custom notification observer for waiting on panel collection that squeezes
-// its panels to reflect a certain state.
-// Modeled after ui_test_utils notification observers.
-class PanelCollectionSqueezeObserver : public TestPanelNotificationObserver {
- public:
- // Register to listen for panel collection updated notifications
- // from the specified collection to detect a change to the state
- // where the |active_panel| is at full width and all other
- // panels in the collection are squeezed.
- PanelCollectionSqueezeObserver(DockedPanelCollection* collection,
- Panel* active_panel);
- virtual ~PanelCollectionSqueezeObserver();
-
- private:
- // TestNotificationObserver override:
- virtual bool AtExpectedState() OVERRIDE;
-
- bool IsSqueezed(Panel* panel);
-
- DockedPanelCollection* panel_collection_;
- Panel* active_panel_;
-
- DISALLOW_COPY_AND_ASSIGN(PanelCollectionSqueezeObserver);
-};
-
-#endif // CHROME_BROWSER_UI_PANELS_TEST_PANEL_COLLECTION_SQUEEZE_OBSERVER_H_
« no previous file with comments | « chrome/browser/ui/panels/panel_manager.cc ('k') | chrome/browser/ui/panels/test_panel_collection_squeeze_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698