| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_TEST_ASH_TEST_BASE_H_ | 5 #ifndef ASH_TEST_ASH_TEST_BASE_H_ |
| 6 #define ASH_TEST_ASH_TEST_BASE_H_ | 6 #define ASH_TEST_ASH_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 virtual ~AshTestBase(); | 57 virtual ~AshTestBase(); |
| 58 | 58 |
| 59 // testing::Test: | 59 // testing::Test: |
| 60 virtual void SetUp() OVERRIDE; | 60 virtual void SetUp() OVERRIDE; |
| 61 virtual void TearDown() OVERRIDE; | 61 virtual void TearDown() OVERRIDE; |
| 62 | 62 |
| 63 // Update the display configuration as given in |display_specs|. | 63 // Update the display configuration as given in |display_specs|. |
| 64 // See ash::test::DisplayManagerTestApi::UpdateDisplay for more details. | 64 // See ash::test::DisplayManagerTestApi::UpdateDisplay for more details. |
| 65 void UpdateDisplay(const std::string& display_specs); | 65 void UpdateDisplay(const std::string& display_specs); |
| 66 | 66 |
| 67 // Returns a RootWindow. Usually this is the active RootWindow, but that | 67 // Returns a root Window. Usually this is the active root Window, but that |
| 68 // method can return NULL sometimes, and in those cases, we fall back on the | 68 // method can return NULL sometimes, and in those cases, we fall back on the |
| 69 // primary RootWindow. | 69 // primary root Window. |
| 70 aura::RootWindow* CurrentContext(); | 70 aura::Window* CurrentContext(); |
| 71 | 71 |
| 72 // Versions of the functions in aura::test:: that go through our shell | 72 // Versions of the functions in aura::test:: that go through our shell |
| 73 // StackingController instead of taking a parent. | 73 // StackingController instead of taking a parent. |
| 74 aura::Window* CreateTestWindowInShellWithId(int id); | 74 aura::Window* CreateTestWindowInShellWithId(int id); |
| 75 aura::Window* CreateTestWindowInShellWithBounds(const gfx::Rect& bounds); | 75 aura::Window* CreateTestWindowInShellWithBounds(const gfx::Rect& bounds); |
| 76 aura::Window* CreateTestWindowInShell(SkColor color, | 76 aura::Window* CreateTestWindowInShell(SkColor color, |
| 77 int id, | 77 int id, |
| 78 const gfx::Rect& bounds); | 78 const gfx::Rect& bounds); |
| 79 aura::Window* CreateTestWindowInShellWithDelegate( | 79 aura::Window* CreateTestWindowInShellWithDelegate( |
| 80 aura::WindowDelegate* delegate, | 80 aura::WindowDelegate* delegate, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 virtual ~NoSessionAshTestBase() {} | 156 virtual ~NoSessionAshTestBase() {} |
| 157 | 157 |
| 158 private: | 158 private: |
| 159 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); | 159 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 } // namespace test | 162 } // namespace test |
| 163 } // namespace ash | 163 } // namespace ash |
| 164 | 164 |
| 165 #endif // ASH_TEST_ASH_TEST_BASE_H_ | 165 #endif // ASH_TEST_ASH_TEST_BASE_H_ |
| OLD | NEW |