Index: ui/aura/window_event_dispatcher_unittest.cc |
diff --git a/ui/aura/window_event_dispatcher_unittest.cc b/ui/aura/window_event_dispatcher_unittest.cc |
index 9c3a77ec15ac8d33d605fc36c8a93d740c2faa69..edb399c4a587092be791fe78e851e236a098442d 100644 |
--- a/ui/aura/window_event_dispatcher_unittest.cc |
+++ b/ui/aura/window_event_dispatcher_unittest.cc |
@@ -1441,7 +1441,8 @@ TEST_F(WindowEventDispatcherTest, ValidRootDuringDestruction) { |
&has_valid_root); |
{ |
scoped_ptr<WindowTreeHost> host( |
- WindowTreeHost::Create(gfx::Rect(0, 0, 100, 100))); |
+ WindowTreeHost::Create(gfx::Rect(0, 0, 100, 100), |
+ context_factory())); |
host->InitHost(); |
// Owned by WindowEventDispatcher. |
Window* w1 = CreateNormalWindow(1, host->window(), NULL); |
@@ -1549,7 +1550,8 @@ class DeleteHostFromHeldMouseEventDelegate |
// we don't crash. |
TEST_F(WindowEventDispatcherTest, DeleteHostFromHeldMouseEvent) { |
// Should be deleted by |delegate|. |
- WindowTreeHost* h2 = WindowTreeHost::Create(gfx::Rect(0, 0, 100, 100)); |
+ WindowTreeHost* h2 = WindowTreeHost::Create(gfx::Rect(0, 0, 100, 100), |
+ context_factory()); |
h2->InitHost(); |
DeleteHostFromHeldMouseEventDelegate delegate(h2); |
// Owned by |h2|. |
@@ -2019,7 +2021,7 @@ class MoveWindowHandler : public ui::EventHandler { |
// event in the inner loop. |
TEST_F(WindowEventDispatcherTest, NestedEventDispatchTargetMoved) { |
scoped_ptr<WindowTreeHost> second_host( |
- WindowTreeHost::Create(gfx::Rect(20, 30, 100, 50))); |
+ WindowTreeHost::Create(gfx::Rect(20, 30, 100, 50), context_factory())); |
second_host->InitHost(); |
Window* second_root = second_host->window(); |
@@ -2080,7 +2082,7 @@ TEST_F(WindowEventDispatcherTest, |
window->Show(); |
scoped_ptr<WindowTreeHost> second_host( |
- WindowTreeHost::Create(gfx::Rect(20, 30, 100, 50))); |
+ WindowTreeHost::Create(gfx::Rect(20, 30, 100, 50), context_factory())); |
second_host->InitHost(); |
WindowEventDispatcher* second_dispatcher = second_host->dispatcher(); |