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

Unified Diff: ui/aura/test/aura_test_helper.h

Issue 2207043002: SetDeviceScaleFactorForTest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SetDeviceScaleFactorForTest Created 4 years, 4 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/aura/demo/demo_main.cc ('k') | ui/aura/test/aura_test_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/aura_test_helper.h
diff --git a/ui/aura/test/aura_test_helper.h b/ui/aura/test/aura_test_helper.h
index 3a755e06ab4db0caf20c71fb9223fbba1cb89b18..c90850d8be07679d2232344a6feb83f3f5ac817e 100644
--- a/ui/aura/test/aura_test_helper.h
+++ b/ui/aura/test/aura_test_helper.h
@@ -8,6 +8,7 @@
#include <memory>
#include "base/macros.h"
+#include "ui/aura/test/test_screen.h"
#include "ui/aura/window_event_dispatcher.h"
#include "ui/aura/window_tree_host.h"
@@ -52,9 +53,9 @@ class AuraTestHelper {
// Flushes message loop.
void RunAllPendingInMessageLoop();
- Window* root_window() { return host_->window(); }
- ui::EventProcessor* event_processor() { return host_->event_processor(); }
- WindowTreeHost* host() { return host_.get(); }
+ Window* root_window() { return host()->window(); }
+ ui::EventProcessor* event_processor() { return host()->event_processor(); }
+ WindowTreeHost* host() { return test_screen_->host(); }
TestScreen* test_screen() { return test_screen_.get(); }
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/aura/test/aura_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698