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

Side by Side Diff: remoting/protocol/third_party_authenticator_unittest.cc

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/callback_helpers.h" 6 #include "base/callback_helpers.h"
7 #include "base/macros.h"
7 #include "net/base/net_errors.h" 8 #include "net/base/net_errors.h"
8 #include "remoting/base/rsa_key_pair.h" 9 #include "remoting/base/rsa_key_pair.h"
9 #include "remoting/protocol/authenticator_test_base.h" 10 #include "remoting/protocol/authenticator_test_base.h"
10 #include "remoting/protocol/channel_authenticator.h" 11 #include "remoting/protocol/channel_authenticator.h"
11 #include "remoting/protocol/connection_tester.h" 12 #include "remoting/protocol/connection_tester.h"
12 #include "remoting/protocol/fake_authenticator.h" 13 #include "remoting/protocol/fake_authenticator.h"
13 #include "remoting/protocol/third_party_authenticator_base.h" 14 #include "remoting/protocol/third_party_authenticator_base.h"
14 #include "remoting/protocol/third_party_client_authenticator.h" 15 #include "remoting/protocol/third_party_client_authenticator.h"
15 #include "remoting/protocol/third_party_host_authenticator.h" 16 #include "remoting/protocol/third_party_host_authenticator.h"
16 #include "remoting/protocol/token_validator.h" 17 #include "remoting/protocol/token_validator.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 ASSERT_EQ(Authenticator::PROCESSING_MESSAGE, host_->state()); 203 ASSERT_EQ(Authenticator::PROCESSING_MESSAGE, host_->state());
203 ASSERT_NO_FATAL_FAILURE( 204 ASSERT_NO_FATAL_FAILURE(
204 token_validator_->OnTokenValidated(kSharedSecret)); 205 token_validator_->OnTokenValidated(kSharedSecret));
205 206
206 // The end result is that the host rejected the fake authentication. 207 // The end result is that the host rejected the fake authentication.
207 ASSERT_EQ(Authenticator::REJECTED, client_->state()); 208 ASSERT_EQ(Authenticator::REJECTED, client_->state());
208 } 209 }
209 210
210 } // namespace protocol 211 } // namespace protocol
211 } // namespace remoting 212 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/third_party_authenticator_base.h ('k') | remoting/protocol/third_party_client_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698