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

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

Issue 2466023003: Makes CaptureController be created and owned by WMState (Closed)
Patch Set: moar Created 4 years, 1 month 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 | ui/views/corewm/desktop_capture_controller_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_new_window_client.h" 10 #include "ash/common/test/test_new_window_client.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 } 185 }
186 #endif 186 #endif
187 187
188 ui::TerminateContextFactoryForTests(); 188 ui::TerminateContextFactoryForTests();
189 189
190 TestSystemTrayDelegate::SetSystemUpdateRequired(false); 190 TestSystemTrayDelegate::SetSystemUpdateRequired(false);
191 191
192 ui::ShutdownInputMethodForTesting(); 192 ui::ShutdownInputMethodForTesting();
193 zero_duration_mode_.reset(); 193 zero_duration_mode_.reset();
194 194
195 CHECK(!::wm::ScopedCaptureClient::IsActive()); 195 views_delegate_.reset();
196 wm_state_.reset();
196 197
197 views_delegate_.reset(); 198 CHECK(!::wm::CaptureController::Get());
198 } 199 }
199 200
200 void AshTestHelper::RunAllPendingInMessageLoop() { 201 void AshTestHelper::RunAllPendingInMessageLoop() {
201 base::RunLoop run_loop; 202 base::RunLoop run_loop;
202 run_loop.RunUntilIdle(); 203 run_loop.RunUntilIdle();
203 } 204 }
204 205
205 // static 206 // static
206 TestSessionStateDelegate* AshTestHelper::GetTestSessionStateDelegate() { 207 TestSessionStateDelegate* AshTestHelper::GetTestSessionStateDelegate() {
207 CHECK(WmShell::HasInstance()); 208 CHECK(WmShell::HasInstance());
(...skipping 13 matching lines...) Expand all
221 bool AshTestHelper::SupportsMultipleDisplays() { 222 bool AshTestHelper::SupportsMultipleDisplays() {
222 #if defined(OS_WIN) 223 #if defined(OS_WIN)
223 return false; 224 return false;
224 #else 225 #else
225 return true; 226 return true;
226 #endif 227 #endif
227 } 228 }
228 229
229 } // namespace test 230 } // namespace test
230 } // namespace ash 231 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ui/views/corewm/desktop_capture_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698