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

Unified Diff: ash/common/test/test_shelf_delegate.h

Issue 2688353005: Fix shelf alignment and auto-hide initialization. (Closed)
Patch Set: Fix mash_unittests by installing a TestShellDelegate. Created 3 years, 10 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: ash/common/test/test_shelf_delegate.h
diff --git a/ash/common/test/test_shelf_delegate.h b/ash/common/test/test_shelf_delegate.h
index 575a808fa02043259aacdb21cd988ec6e832b056..cb71bc5df40d14325d56e9b0e7883c49ed7aaa10 100644
--- a/ash/common/test/test_shelf_delegate.h
+++ b/ash/common/test/test_shelf_delegate.h
@@ -14,16 +14,15 @@
#include "base/macros.h"
namespace ash {
-
-class ShelfModel;
-
namespace test {
+class ShelfInitializer;
+
// Test implementation of ShelfDelegate.
// Tests may create icons for windows by calling AddShelfItem().
class TestShelfDelegate : public ShelfDelegate, public WmWindowObserver {
public:
- explicit TestShelfDelegate(ShelfModel* model);
+ TestShelfDelegate();
~TestShelfDelegate() override;
// Adds a ShelfItem for the given |window|. The ShelfItem's status will be
@@ -69,7 +68,7 @@ class TestShelfDelegate : public ShelfDelegate, public WmWindowObserver {
static TestShelfDelegate* instance_;
- ShelfModel* model_;
+ std::unique_ptr<ShelfInitializer> shelf_initializer_;
std::set<std::string> pinned_apps_;

Powered by Google App Engine
This is Rietveld 408576698