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

Unified Diff: remoting/host/token_validator_factory_impl_unittest.cc

Issue 2082363002: Remove calls to deprecated MessageLoop methods in remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing include Created 4 years, 6 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/host/setup/start_host_main.cc ('k') | remoting/protocol/authenticator_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/token_validator_factory_impl_unittest.cc
diff --git a/remoting/host/token_validator_factory_impl_unittest.cc b/remoting/host/token_validator_factory_impl_unittest.cc
index c9aabd3f53ec0b1e8dbaef2798e7c82920ceb96a..ae08f59f150c7d8f963556aa9d289c7d84eb7acd 100644
--- a/remoting/host/token_validator_factory_impl_unittest.cc
+++ b/remoting/host/token_validator_factory_impl_unittest.cc
@@ -11,6 +11,7 @@
#include "base/json/json_writer.h"
#include "base/memory/ptr_util.h"
+#include "base/run_loop.h"
#include "base/values.h"
#include "net/http/http_status_code.h"
#include "net/url_request/url_request_job_factory.h"
@@ -147,7 +148,7 @@ TEST_F(TokenValidatorFactoryImplTest, Success) {
token_validator_->ValidateThirdPartyToken(
kToken, base::Bind(&TokenValidatorFactoryImplTest::SuccessCallback,
base::Unretained(this)));
- message_loop_.Run();
+ base::RunLoop().Run();
}
TEST_F(TokenValidatorFactoryImplTest, BadToken) {
@@ -159,7 +160,7 @@ TEST_F(TokenValidatorFactoryImplTest, BadToken) {
token_validator_->ValidateThirdPartyToken(
kToken, base::Bind(&TokenValidatorFactoryImplTest::FailureCallback,
base::Unretained(this)));
- message_loop_.Run();
+ base::RunLoop().Run();
}
TEST_F(TokenValidatorFactoryImplTest, BadScope) {
@@ -172,7 +173,7 @@ TEST_F(TokenValidatorFactoryImplTest, BadScope) {
token_validator_->ValidateThirdPartyToken(
kToken, base::Bind(&TokenValidatorFactoryImplTest::FailureCallback,
base::Unretained(this)));
- message_loop_.Run();
+ base::RunLoop().Run();
}
TEST_F(TokenValidatorFactoryImplTest, DeleteOnFailure) {
@@ -185,7 +186,7 @@ TEST_F(TokenValidatorFactoryImplTest, DeleteOnFailure) {
kToken, base::Bind(
&TokenValidatorFactoryImplTest::DeleteOnFailureCallback,
base::Unretained(this)));
- message_loop_.Run();
+ base::RunLoop().Run();
}
} // namespace remoting
« no previous file with comments | « remoting/host/setup/start_host_main.cc ('k') | remoting/protocol/authenticator_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698