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

Unified Diff: ash/test/shell_test_api.cc

Issue 2761373002: Move yet more from WmShell to Shell (Closed)
Patch Set: merge Created 3 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
« no previous file with comments | « ash/test/shell_test_api.h ('k') | ash/wm/ash_focus_rules_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/shell_test_api.cc
diff --git a/ash/test/shell_test_api.cc b/ash/test/shell_test_api.cc
index eea718cb6fef33cfed5e65e5dc8161d964937f5d..c81507e26303d5a0f5fd06eb416ea33b27435d38 100644
--- a/ash/test/shell_test_api.cc
+++ b/ash/test/shell_test_api.cc
@@ -3,8 +3,10 @@
// found in the LICENSE file.
#include "ash/test/shell_test_api.h"
+
#include "ash/common/palette_delegate.h"
#include "ash/common/session/session_state_delegate.h"
+#include "ash/common/shelf/shelf_delegate.h"
#include "ash/root_window_controller.h"
#include "ash/shell.h"
@@ -45,5 +47,10 @@ void ShellTestApi::SetSessionStateDelegate(
shell_->session_state_delegate_.reset(session_state_delegate);
}
+void ShellTestApi::SetShelfDelegate(
+ std::unique_ptr<ShelfDelegate> test_delegate) {
+ shell_->shelf_delegate_ = std::move(test_delegate);
+}
+
} // namespace test
} // namespace ash
« no previous file with comments | « ash/test/shell_test_api.h ('k') | ash/wm/ash_focus_rules_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698