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

Unified Diff: remoting/host/token_validator_factory_impl_unittest.cc

Issue 1788443005: Make TokenValidatorFactory ref-counted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/token_validator_factory_impl.h ('k') | remoting/protocol/me2me_host_authenticator_factory.h » ('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 3623039b09aff5f04a4d1d33c55ac0d780c788d2..b86f9fbadb06859ef1a39773bd8d41a939f4e02f 100644
--- a/remoting/host/token_validator_factory_impl_unittest.cc
+++ b/remoting/host/token_validator_factory_impl_unittest.cc
@@ -98,8 +98,8 @@ class TokenValidatorFactoryImplTest : public testing::Test {
config.token_url = GURL(kTokenUrl);
config.token_validation_url = GURL(kTokenValidationUrl);
config.token_validation_cert_issuer = kTokenValidationCertIssuer;
- token_validator_factory_.reset(new TokenValidatorFactoryImpl(
- config, key_pair_, request_context_getter_));
+ token_validator_factory_ = new TokenValidatorFactoryImpl(
+ config, key_pair_, request_context_getter_);
}
static std::string CreateResponse(const std::string& scope) {
@@ -131,7 +131,7 @@ class TokenValidatorFactoryImplTest : public testing::Test {
base::MessageLoop message_loop_;
scoped_refptr<RsaKeyPair> key_pair_;
scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
- scoped_ptr<TokenValidatorFactoryImpl> token_validator_factory_;
+ scoped_refptr<TokenValidatorFactoryImpl> token_validator_factory_;
scoped_ptr<protocol::TokenValidator> token_validator_;
};
« no previous file with comments | « remoting/host/token_validator_factory_impl.h ('k') | remoting/protocol/me2me_host_authenticator_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698