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

Unified Diff: ash/display/display_info_unittest.cc

Issue 138903025: Read compositor VSync information from platform, when possible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 041e3518 Cleaned up. Created 6 years, 11 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/display/display_info_unittest.cc
diff --git a/ash/display/display_info_unittest.cc b/ash/display/display_info_unittest.cc
index 9faa0aa9863c6d69fc00bdec6912039788965201..8a2f9e904c481426b8cdf730a7b42e302fb422c0 100644
--- a/ash/display/display_info_unittest.cc
+++ b/ash/display/display_info_unittest.cc
@@ -45,12 +45,14 @@ TEST_F(DisplayInfoTest, CreateFromSpec) {
EXPECT_EQ(1.5f, info.configured_ui_scale());
info = DisplayInfo::CreateFromSpecWithID(
- "200x200#300x200|200x200|100x100", 10);
+ "200x200#300x200|200x200%59.9|100x100%60", 10);
EXPECT_EQ("0,0 200x200", info.bounds_in_native().ToString());
EXPECT_EQ(3u, info.resolutions().size());
EXPECT_EQ("300x200", info.resolutions()[0].size.ToString());
EXPECT_EQ("200x200", info.resolutions()[1].size.ToString());
+ EXPECT_EQ(59.9f, info.resolutions()[1].refresh_rate);
EXPECT_EQ("100x100", info.resolutions()[2].size.ToString());
+ EXPECT_EQ(60.0f, info.resolutions()[2].refresh_rate);
}
} // namespace internal

Powered by Google App Engine
This is Rietveld 408576698