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

Unified Diff: remoting/test/it2me_standalone_host.h

Issue 2846943002: Use ScopedTaskEnvironment instead of MessageLoopForUI in remoting tests. (Closed)
Patch Set: add-deps Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/test/BUILD.gn ('k') | remoting/test/it2me_standalone_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/it2me_standalone_host.h
diff --git a/remoting/test/it2me_standalone_host.h b/remoting/test/it2me_standalone_host.h
index c7055374dbadebdc3722323081e58b46f1deb664..5d1f6433044063a99ff184fad94440da3aa23113 100644
--- a/remoting/test/it2me_standalone_host.h
+++ b/remoting/test/it2me_standalone_host.h
@@ -9,8 +9,8 @@
#include <string>
#include "base/memory/ref_counted.h"
-#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
+#include "base/test/scoped_task_environment.h"
#include "base/timer/timer.h"
#include "remoting/host/host_mock_objects.h"
#include "remoting/host/it2me_desktop_environment.h"
@@ -43,7 +43,7 @@ class It2MeStandaloneHost {
private:
void Connect();
- base::MessageLoopForUI message_loop_;
+ base::test::ScopedTaskEnvironment scoped_task_environment_;
base::RunLoop run_loop_;
std::unique_ptr<ChromotingHostContext> context_;
scoped_refptr<AutoThreadTaskRunner> main_task_runner_;
« no previous file with comments | « remoting/test/BUILD.gn ('k') | remoting/test/it2me_standalone_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698