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

Unified Diff: remoting/protocol/authenticator_test_base.h

Issue 12326090: Third Party authentication protocol. (Closed) Base URL: http://git.chromium.org/chromium/src.git@host_key_pair
Patch Set: Add the missing new files Created 7 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 side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/authenticator_test_base.h
diff --git a/remoting/protocol/authenticator_test_base.h b/remoting/protocol/authenticator_test_base.h
index b8671376bcd83628ecf8eb3285e44effab995e13..b54039307912c982e3c65cd25844cce748288458 100644
--- a/remoting/protocol/authenticator_test_base.h
+++ b/remoting/protocol/authenticator_test_base.h
@@ -38,7 +38,11 @@ class AuthenticatorTestBase : public testing::Test {
};
virtual void SetUp() OVERRIDE;
+ // Starts the auth exchange, the first message is from client to host.
void RunAuthExchange();
+ // Continues an interrupted authentication exchange (starting with a message
+ // from host to client if skip_client_to_host is true).
+ void ContinueAuthExchange(bool skip_client_to_host);
void RunChannelAuth(bool expected_fail);
void OnHostConnected(net::Error error,
@@ -49,6 +53,7 @@ class AuthenticatorTestBase : public testing::Test {
MessageLoop message_loop_;
scoped_ptr<KeyPair> key_pair_;
+ std::string host_public_key_;
std::string host_cert_;
scoped_ptr<Authenticator> host_;
scoped_ptr<Authenticator> client_;
@@ -61,6 +66,7 @@ class AuthenticatorTestBase : public testing::Test {
scoped_ptr<net::StreamSocket> client_socket_;
scoped_ptr<net::StreamSocket> host_socket_;
+ private:
DISALLOW_COPY_AND_ASSIGN(AuthenticatorTestBase);
};

Powered by Google App Engine
This is Rietveld 408576698