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

Unified Diff: ui/gfx/test/gfx_util.cc

Issue 1639623003: ScreenWin Testability and Restructuring (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync + VS2015 Friendly - struct -> class to maintain immutability Created 4 years, 10 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 | « ui/gfx/test/display_util.h ('k') | ui/gfx/win/display_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/test/gfx_util.cc
diff --git a/ui/gfx/test/gfx_util.cc b/ui/gfx/test/gfx_util.cc
index d8bf5f2af942e8b3eb54db125d47f78e8a39639e..e2157fe61b76eda18cdee20f26d8cc3a261a05d6 100644
--- a/ui/gfx/test/gfx_util.cc
+++ b/ui/gfx/test/gfx_util.cc
@@ -8,6 +8,7 @@
#include <sstream>
#include <string>
+#include "ui/gfx/display.h"
#include "ui/gfx/geometry/box_f.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/point3_f.h"
@@ -95,6 +96,10 @@ void PrintTo(const BoxF& box, ::std::ostream* os) {
*os << box.ToString();
}
+void PrintTo(const Display& display, ::std::ostream* os) {
+ *os << display.ToString();
+}
+
void PrintTo(const Point& point, ::std::ostream* os) {
*os << point.ToString();
}
« no previous file with comments | « ui/gfx/test/display_util.h ('k') | ui/gfx/win/display_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698