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

Unified Diff: remoting/protocol/fake_authenticator.h

Issue 2453933008: Bugfixes in JingleSession (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | remoting/protocol/fake_authenticator.cc » ('j') | remoting/protocol/jingle_session.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_authenticator.h
diff --git a/remoting/protocol/fake_authenticator.h b/remoting/protocol/fake_authenticator.h
index b17630c3398f59e72516b359102d2f1a03ae380e..8d0ac2f21d18873771d5a81f0e0123414ed375eb 100644
--- a/remoting/protocol/fake_authenticator.h
+++ b/remoting/protocol/fake_authenticator.h
@@ -68,6 +68,14 @@ class FakeAuthenticator : public Authenticator {
// |round_trips| is set to 0.
void set_auth_key(const std::string& auth_key) { auth_key_ = auth_key; }
+ // When pause_message_index is set the authenticator will pause in
+ // PROCESSING_MESSAGE state after that message, until
+ // TakeResumeClosure().Run() is called.
+ void set_pause_message_index(int pause_message_index) {
+ pause_message_index_ = pause_message_index;
+ }
+ void Resume();
+
// Authenticator interface.
State state() const override;
bool started() const override;
@@ -91,6 +99,9 @@ class FakeAuthenticator : public Authenticator {
// returns true. Default to 0.
int messages_till_started_ = 0;
+ int pause_message_index_ = -1;
+ base::Closure resume_closure_;
+
std::string auth_key_;
DISALLOW_COPY_AND_ASSIGN(FakeAuthenticator);
« no previous file with comments | « no previous file | remoting/protocol/fake_authenticator.cc » ('j') | remoting/protocol/jingle_session.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698