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

Unified Diff: ash/test/ash_test_helper.h

Issue 2734933004: ash: Use SessionController instead of SessionStateDelegate (Closed)
Patch Set: rebase to get WorkspaceLayoutManagerSoloTest change 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/ash_test_base.cc ('k') | ash/test/ash_test_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/ash_test_helper.h
diff --git a/ash/test/ash_test_helper.h b/ash/test/ash_test_helper.h
index 0f0ba1e77da1278141f0d8ceca4b46c08a5f28f6..4a8d42d8be5cf02b600672b6a6421c486708b936 100644
--- a/ash/test/ash_test_helper.h
+++ b/ash/test/ash_test_helper.h
@@ -8,8 +8,10 @@
#include <stdint.h>
#include <memory>
+#include <utility>
#include <vector>
+#include "ash/common/test/test_session_controller_client.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "ui/aura/test/mus/test_window_tree_client_setup.h"
@@ -45,6 +47,7 @@ class AshTestEnvironment;
class AshTestViewsDelegate;
class TestScreenshotDelegate;
class TestShellDelegate;
+class TestSessionControllerClient;
class TestSessionStateDelegate;
// A helper class that does common initialization required for Ash. Creates a
@@ -91,6 +94,14 @@ class AshTestHelper {
return window_manager_app_.get();
}
+ TestSessionControllerClient* test_session_controller_client() {
+ return session_controller_client_.get();
+ }
+ void set_test_session_controller_client(
+ std::unique_ptr<TestSessionControllerClient> session_controller_client) {
+ session_controller_client_ = std::move(session_controller_client);
+ }
+
private:
// Called when running in mash to create the WindowManager.
void CreateMashWindowManager();
@@ -132,6 +143,8 @@ class AshTestHelper {
// Id for the next Display created by CreateRootWindowController().
int64_t next_display_id_ = 1;
+ std::unique_ptr<TestSessionControllerClient> session_controller_client_;
+
DISALLOW_COPY_AND_ASSIGN(AshTestHelper);
};
« no previous file with comments | « ash/test/ash_test_base.cc ('k') | ash/test/ash_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698