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

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: Rebase to bdd95f1 Created 4 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: 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 {
oshima 2016/01/30 00:10:33 namespace test namespace is meaningless for oper
robliao 2016/01/30 01:23:52 Oddly enough, it does matter. http://stackoverflo
oshima 2016/02/01 19:07:37 interesting, thanks for the pointer.
+
+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_

Powered by Google App Engine
This is Rietveld 408576698