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

Unified Diff: ui/gfx/test/display_util.h

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/screen_win_unittest.cc ('k') | ui/gfx/test/gfx_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/test/display_util.h
diff --git a/ui/gfx/test/display_util.h b/ui/gfx/test/display_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..842af7fdf9980cbfafe084cedec615bbb7de8888
--- /dev/null
+++ b/ui/gfx/test/display_util.h
@@ -0,0 +1,23 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_GFX_TEST_DISPLAY_UTIL_H_
+#define UI_GFX_TEST_DISPLAY_UTIL_H_
+
+#include "ui/gfx/display.h"
+
+namespace gfx {
+
+inline bool operator==(const gfx::Display& lhs, const gfx::Display& rhs) {
+ return lhs.id() == rhs.id() &&
+ lhs.bounds() == rhs.bounds() &&
+ lhs.work_area() == rhs.work_area() &&
+ lhs.device_scale_factor() == rhs.device_scale_factor() &&
+ lhs.rotation() == rhs.rotation() &&
+ lhs.touch_support() == rhs.touch_support();
+}
+
+} // namespace gfx
+
+#endif // UI_GFX_TEST_DISPLAY_UTIL_H_
« no previous file with comments | « ui/gfx/screen_win_unittest.cc ('k') | ui/gfx/test/gfx_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698