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

Unified Diff: chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc

Issue 11795004: Continue threading context through unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « ash/wm/window_modality_controller_unittest.cc ('k') | chrome/browser/ui/views/first_run_bubble_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc
diff --git a/chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc b/chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc
index f464cdf202d4104f82f64102574ff4d8adb115e7..e991a22f8890894e33dd65c7197b7d7f38b79ba9 100644
--- a/chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc
+++ b/chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc
@@ -29,6 +29,7 @@
#endif
#if defined(USE_AURA)
+#include "ui/aura/root_window.h"
#include "ui/aura/test/aura_test_helper.h"
#endif
@@ -121,8 +122,14 @@ class AccessibilityEventRouterViewsTest
}
views::Widget* CreateWindowWithContents(views::View* contents) {
- return views::Widget::CreateWindowWithBounds(
+ gfx::NativeView context = NULL;
+#if defined(USE_AURA)
+ context = aura_test_helper_->root_window();
+#endif
+
+ return views::Widget::CreateWindowWithContextAndBounds(
new AccessibilityWindowDelegate(contents),
+ context,
gfx::Rect(0, 0, 500, 500));
}
« no previous file with comments | « ash/wm/window_modality_controller_unittest.cc ('k') | chrome/browser/ui/views/first_run_bubble_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698