| 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 #include "ui/aura/test/aura_test_helper.h" | 5 #include "ui/aura/test/aura_test_helper.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "ui/aura/client/default_capture_client.h" | 10 #include "ui/aura/client/default_capture_client.h" |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 teardown_called_ = true; | 130 teardown_called_ = true; |
| 131 parenting_client_.reset(); | 131 parenting_client_.reset(); |
| 132 client::SetFocusClient(root_window(), nullptr); | 132 client::SetFocusClient(root_window(), nullptr); |
| 133 client::SetCaptureClient(root_window(), nullptr); | 133 client::SetCaptureClient(root_window(), nullptr); |
| 134 host_.reset(); | 134 host_.reset(); |
| 135 ui::GestureRecognizer::Reset(); | 135 ui::GestureRecognizer::Reset(); |
| 136 if (display::Screen::GetScreen() == test_screen_.get()) | 136 if (display::Screen::GetScreen() == test_screen_.get()) |
| 137 display::Screen::SetScreenInstance(nullptr); | 137 display::Screen::SetScreenInstance(nullptr); |
| 138 test_screen_.reset(); | 138 test_screen_.reset(); |
| 139 | 139 |
| 140 #if defined(USE_X11) | |
| 141 ui::test::ResetXCursorCache(); | |
| 142 #endif | |
| 143 | |
| 144 Env::GetInstance()->SetActiveFocusClient(nullptr, nullptr); | 140 Env::GetInstance()->SetActiveFocusClient(nullptr, nullptr); |
| 145 window_tree_client_setup_.reset(); | 141 window_tree_client_setup_.reset(); |
| 146 focus_client_.reset(); | 142 focus_client_.reset(); |
| 147 capture_client_.reset(); | 143 capture_client_.reset(); |
| 148 | 144 |
| 149 ui::ShutdownInputMethodForTesting(); | 145 ui::ShutdownInputMethodForTesting(); |
| 150 | 146 |
| 151 if (env_) { | 147 if (env_) { |
| 152 env_.reset(); | 148 env_.reset(); |
| 153 } else { | 149 } else { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 base::MakeUnique<WindowPortLocal>(window); | 185 base::MakeUnique<WindowPortLocal>(window); |
| 190 return std::move(window_port); | 186 return std::move(window_port); |
| 191 } | 187 } |
| 192 std::unique_ptr<WindowPortMus> window_port = base::MakeUnique<WindowPortMus>( | 188 std::unique_ptr<WindowPortMus> window_port = base::MakeUnique<WindowPortMus>( |
| 193 window_tree_client_, WindowMusType::LOCAL); | 189 window_tree_client_, WindowMusType::LOCAL); |
| 194 return std::move(window_port); | 190 return std::move(window_port); |
| 195 } | 191 } |
| 196 | 192 |
| 197 } // namespace test | 193 } // namespace test |
| 198 } // namespace aura | 194 } // namespace aura |
| OLD | NEW |