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

Side by Side Diff: ui/aura/test/aura_test_helper.cc

Issue 154203002: Remove unnecessary uses of aura::Env::GetDispatcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 months 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 | Annotate | Revision Log
OLDNEW
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/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
10 #include "ui/aura/client/default_activation_client.h" 10 #include "ui/aura/client/default_activation_client.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 ui::ShutdownInputMethodForTesting(); 108 ui::ShutdownInputMethodForTesting();
109 109
110 Env::DeleteInstance(); 110 Env::DeleteInstance();
111 111
112 ui::TerminateContextFactoryForTests(); 112 ui::TerminateContextFactoryForTests();
113 } 113 }
114 114
115 void AuraTestHelper::RunAllPendingInMessageLoop() { 115 void AuraTestHelper::RunAllPendingInMessageLoop() {
116 // TODO(jbates) crbug.com/134753 Find quitters of this RunLoop and have them 116 // TODO(jbates) crbug.com/134753 Find quitters of this RunLoop and have them
117 // use run_loop.QuitClosure(). 117 // use run_loop.QuitClosure().
118 base::RunLoop run_loop(Env::GetInstance()->GetDispatcher()); 118 base::RunLoop run_loop;
119 run_loop.RunUntilIdle(); 119 run_loop.RunUntilIdle();
120 } 120 }
121 121
122 } // namespace test 122 } // namespace test
123 } // namespace aura 123 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698