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

Unified Diff: ui/display/test/display_test_util.h

Issue 1965073002: Rename gfx::Display to display::Display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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/display/screen.h ('k') | ui/display/win/screen_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/test/display_test_util.h
diff --git a/ui/gfx/test/display_util.h b/ui/display/test/display_test_util.h
similarity index 63%
rename from ui/gfx/test/display_util.h
rename to ui/display/test/display_test_util.h
index 817e26ca1dcfdbac18274c22939d9750c3510da5..a760f86ee725e0c741915fdc753d025cf8170020 100644
--- a/ui/gfx/test/display_util.h
+++ b/ui/display/test/display_test_util.h
@@ -2,12 +2,12 @@
// 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_
+#ifndef UI_DISPLAY_TEST_DISPLAY_TEST_UTIL_H_
+#define UI_DISPLAY_TEST_DISPLAY_TEST_UTIL_H_
-#include "ui/gfx/display.h"
+#include "ui/display/display.h"
-namespace gfx {
+namespace display {
inline bool operator==(const Display& lhs, const Display& rhs) {
return lhs.id() == rhs.id() &&
@@ -18,6 +18,10 @@ inline bool operator==(const Display& lhs, const Display& rhs) {
lhs.touch_support() == rhs.touch_support();
}
-} // namespace gfx
+void PrintTo(const Display& display, ::std::ostream* os) {
+ *os << display.ToString();
+}
+
+} // namespace display
-#endif // UI_GFX_TEST_DISPLAY_UTIL_H_
+#endif // UI_DISPLAY_TEST_DISPLAY_TEST_UTIL_H_
« no previous file with comments | « ui/display/screen.h ('k') | ui/display/win/screen_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698