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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/views/corewm/desktop_capture_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/ash_test_helper.cc
diff --git a/ash/test/ash_test_helper.cc b/ash/test/ash_test_helper.cc
index 8d680eb526deb14d657bdcc849f14fd5b71e5f18..6fd3841bf5c2abff3ad8717ab938eb2f2fbd4288 100644
--- a/ash/test/ash_test_helper.cc
+++ b/ash/test/ash_test_helper.cc
@@ -192,9 +192,10 @@ void AshTestHelper::TearDown() {
ui::ShutdownInputMethodForTesting();
zero_duration_mode_.reset();
- CHECK(!::wm::ScopedCaptureClient::IsActive());
-
views_delegate_.reset();
+ wm_state_.reset();
+
+ CHECK(!::wm::CaptureController::Get());
}
void AshTestHelper::RunAllPendingInMessageLoop() {
« 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