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

Unified Diff: ash/test/ash_test_base.h

Issue 2355063002: Separate ash::test::DisplayManagerTestApi from ash (Closed)
Patch Set: review comment Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/toast/toast_manager_unittest.cc ('k') | ash/test/ash_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/ash_test_base.h
diff --git a/ash/test/ash_test_base.h b/ash/test/ash_test_base.h
index c93451ee337b2493f74d4a1f37299f873fcc7df8..35300179f8c75d0b132f3bb087868ebb481ef920 100644
--- a/ash/test/ash_test_base.h
+++ b/ash/test/ash_test_base.h
@@ -114,6 +114,14 @@ class AshTestBase : public testing::Test {
// hasn't been created yet.
ui::test::EventGenerator& GetEventGenerator();
+ // Convenience method to return the DisplayManager.
+ DisplayManager* display_manager();
+
+ // Test if moving a mouse to |point_in_screen| warps it to another
+ // display.
+ bool TestIfMouseWarpsAt(ui::test::EventGenerator& event_generator,
+ const gfx::Point& point_in_screen);
+
protected:
enum UserSessionBlockReason {
FIRST_BLOCK_REASON,
@@ -168,6 +176,9 @@ class AshTestBase : public testing::Test {
void DisableIME();
+ // Swap the primary display with the secondary.
+ void SwapPrimaryDisplay();
+
private:
friend class ash::AshTestImplAura;
« no previous file with comments | « ash/system/toast/toast_manager_unittest.cc ('k') | ash/test/ash_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698