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

Side by Side Diff: ash/test/ash_test_helper.cc

Issue 2493223002: Change exo::SurfaceFactoryOwner to exo::ExoCompositorFrameSink (Closed)
Patch Set: Override DesktopMediaListAshTest::TearDown() to reset list_ Created 4 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ash/test/ash_test_helper.h" 5 #include "ash/test/ash_test_helper.h"
6 6
7 #include "ash/accelerators/accelerator_controller_delegate_aura.h" 7 #include "ash/accelerators/accelerator_controller_delegate_aura.h"
8 #include "ash/common/material_design/material_design_controller.h" 8 #include "ash/common/material_design/material_design_controller.h"
9 #include "ash/common/test/material_design_controller_test_api.h" 9 #include "ash/common/test/material_design_controller_test_api.h"
10 #include "ash/common/test/test_session_state_delegate.h" 10 #include "ash/common/test/test_session_state_delegate.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 ShellTestApi(shell).DisableDisplayAnimator(); 153 ShellTestApi(shell).DisableDisplayAnimator();
154 154
155 test_screenshot_delegate_ = new TestScreenshotDelegate(); 155 test_screenshot_delegate_ = new TestScreenshotDelegate();
156 shell->accelerator_controller_delegate()->SetScreenshotDelegate( 156 shell->accelerator_controller_delegate()->SetScreenshotDelegate(
157 std::unique_ptr<ScreenshotDelegate>(test_screenshot_delegate_)); 157 std::unique_ptr<ScreenshotDelegate>(test_screenshot_delegate_));
158 } 158 }
159 159
160 void AshTestHelper::TearDown() { 160 void AshTestHelper::TearDown() {
161 // Tear down the shell. 161 // Tear down the shell.
162 Shell::DeleteInstance(); 162 Shell::DeleteInstance();
163
164 // Suspend the tear down until all resources are returned via
165 // MojoCompositorFrameSinkClient::ReclaimResources()
166 RunAllPendingInMessageLoop();
163 material_design_state_.reset(); 167 material_design_state_.reset();
164 test::MaterialDesignControllerTestAPI::Uninitialize(); 168 test::MaterialDesignControllerTestAPI::Uninitialize();
165 ash_test_environment_->TearDown(); 169 ash_test_environment_->TearDown();
166 170
167 test_screenshot_delegate_ = NULL; 171 test_screenshot_delegate_ = NULL;
168 172
169 // Remove global message center state. 173 // Remove global message center state.
170 message_center::MessageCenter::Shutdown(); 174 message_center::MessageCenter::Shutdown();
171 175
172 #if defined(OS_CHROMEOS) 176 #if defined(OS_CHROMEOS)
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 bool AshTestHelper::SupportsMultipleDisplays() { 221 bool AshTestHelper::SupportsMultipleDisplays() {
218 #if defined(OS_WIN) 222 #if defined(OS_WIN)
219 return false; 223 return false;
220 #else 224 #else
221 return true; 225 return true;
222 #endif 226 #endif
223 } 227 }
224 228
225 } // namespace test 229 } // namespace test
226 } // namespace ash 230 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698