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

Unified Diff: ash/display/display_util_unittest.cc

Issue 1261693004: Allow dynamic enabling/disabling of unified desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/display/display_util.cc ('k') | ash/display/unified_mouse_warp_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_util_unittest.cc
diff --git a/ash/display/display_util_unittest.cc b/ash/display/display_util_unittest.cc
index 1bd3d8cd8b168922d67a938c16c2740742199b6f..1dcd0c7c87fd52cd80d9483d509949f20395ddd8 100644
--- a/ash/display/display_util_unittest.cc
+++ b/ash/display/display_util_unittest.cc
@@ -98,11 +98,27 @@ TEST_F(DisplayUtilTest, CreateDisplayIdPair) {
pair = CreateDisplayIdPair(10, 100);
EXPECT_EQ(10, pair.first);
EXPECT_EQ(100, pair.second);
+ {
+ test::ScopedSetInternalDisplayId set_internal(100);
+ pair = CreateDisplayIdPair(10, 100);
+ EXPECT_EQ(100, pair.first);
+ EXPECT_EQ(10, pair.second);
- test::ScopedSetInternalDisplayId set_internal(100);
- pair = CreateDisplayIdPair(10, 100);
- EXPECT_EQ(100, pair.first);
- EXPECT_EQ(10, pair.second);
+ pair = CreateDisplayIdPair(100, 10);
+ EXPECT_EQ(100, pair.first);
+ EXPECT_EQ(10, pair.second);
+ }
+
+ {
+ test::ScopedSetInternalDisplayId set_internal(10);
+ pair = CreateDisplayIdPair(10, 100);
+ EXPECT_EQ(10, pair.first);
+ EXPECT_EQ(100, pair.second);
+
+ pair = CreateDisplayIdPair(100, 10);
+ EXPECT_EQ(10, pair.first);
+ EXPECT_EQ(100, pair.second);
+ }
}
} // namespace
« no previous file with comments | « ash/display/display_util.cc ('k') | ash/display/unified_mouse_warp_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698