diff options
Diffstat (limited to 'ash/test/ash_test_base.h')
-rw-r--r-- | ash/test/ash_test_base.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ash/test/ash_test_base.h b/ash/test/ash_test_base.h index 7a1c23b..40ae938 100644 --- a/ash/test/ash_test_base.h +++ b/ash/test/ash_test_base.h @@ -56,6 +56,11 @@ class AshTestBase : public testing::Test { // See ash::test::DisplayManagerTestApi::UpdateDisplay for more details. void UpdateDisplay(const std::string& display_specs); + // Returns a RootWindow. Usually this is the active RootWindow, but that + // method can return NULL sometimes, and in those cases, we fall back on the + // primary RootWindow. + aura::RootWindow* CurrentContext(); + // Versions of the functions in aura::test:: that go through our shell // StackingController instead of taking a parent. aura::Window* CreateTestWindowInShellWithId(int id); |