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

Unified Diff: ui/views/accessibility/native_view_accessibility_unittest.cc

Issue 2154213007: Replace gfx::Rect with gfx::RectF in ui::AXNodeData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win compile Created 4 years, 5 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/views/accessibility/native_view_accessibility.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/accessibility/native_view_accessibility_unittest.cc
diff --git a/ui/views/accessibility/native_view_accessibility_unittest.cc b/ui/views/accessibility/native_view_accessibility_unittest.cc
index a60b1cb6b9538c93a4101726d0b21d670c13fd6f..c7666b0fd3d912967cfb6a18879889c910123007 100644
--- a/ui/views/accessibility/native_view_accessibility_unittest.cc
+++ b/ui/views/accessibility/native_view_accessibility_unittest.cc
@@ -4,6 +4,7 @@
#include "base/strings/utf_string_conversions.h"
#include "ui/accessibility/ax_view_state.h"
+#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/views/accessibility/native_view_accessibility.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/label.h"
@@ -60,7 +61,8 @@ TEST_F(NativeViewAccessibilityTest, RoleShouldMatch) {
}
TEST_F(NativeViewAccessibilityTest, BoundsShouldMatch) {
- gfx::Rect bounds = button_accessibility_->GetData().location;
+ gfx::Rect bounds = gfx::ToEnclosingRect(
+ button_accessibility_->GetData().location);
bounds.Offset(button_accessibility_->GetGlobalCoordinateOffset());
EXPECT_EQ(button_->GetBoundsInScreen(), bounds);
}
« no previous file with comments | « ui/views/accessibility/native_view_accessibility.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698