summaryrefslogtreecommitdiffstats
path: root/remoting/jingle_glue/jingle_test_client.cc
diff options
context:
space:
mode:
authorrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-09 19:09:11 +0000
committerrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-09 19:09:11 +0000
commit6f5ec4a51a4cfc6023c094801f2f180c6739a89b (patch)
tree256f64b843183e4c1c0b525ac84b84797e038848 /remoting/jingle_glue/jingle_test_client.cc
parentc78559eabd562359ef23585df9268eeb5119b718 (diff)
downloadchromium_src-6f5ec4a51a4cfc6023c094801f2f180c6739a89b.zip
chromium_src-6f5ec4a51a4cfc6023c094801f2f180c6739a89b.tar.gz
chromium_src-6f5ec4a51a4cfc6023c094801f2f180c6739a89b.tar.bz2
Revert 49298 - Broke compile - Token-based authentication for chromoting.
BUG=none TEST=none Review URL: http://codereview.chromium.org/2749004 TBR=sergeyu@chromium.org Review URL: http://codereview.chromium.org/2724010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49300 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/jingle_glue/jingle_test_client.cc')
-rw-r--r--remoting/jingle_glue/jingle_test_client.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/remoting/jingle_glue/jingle_test_client.cc b/remoting/jingle_glue/jingle_test_client.cc
index 7bf33c0..38677fe 100644
--- a/remoting/jingle_glue/jingle_test_client.cc
+++ b/remoting/jingle_glue/jingle_test_client.cc
@@ -15,13 +15,11 @@ extern "C" {
#include "base/at_exit.h"
#include "media/base/data_buffer.h"
-#include "remoting/base/constants.h"
#include "remoting/jingle_glue/jingle_channel.h"
#include "remoting/jingle_glue/jingle_client.h"
using remoting::JingleClient;
using remoting::JingleChannel;
-using remoting::kChromotingTokenServiceName;
void SetConsoleEcho(bool on) {
#if defined(OS_WIN)
@@ -53,10 +51,10 @@ class JingleTestClient : public JingleChannel::Callback,
public:
virtual ~JingleTestClient() {}
- void Run(const std::string& username, const std::string& auth_token,
+ void Run(const std::string& username, const std::string& password,
const std::string& host_jid) {
client_ = new JingleClient();
- client_->Init(username, auth_token, kChromotingTokenServiceName, this);
+ client_->Init(username, password, this);
if (host_jid != "") {
scoped_refptr<JingleChannel> channel = client_->Connect(host_jid, this);
@@ -146,13 +144,16 @@ int main(int argc, char** argv) {
std::cout << "JID: ";
std::cin >> username;
- std::string auth_token;
- std::cout << "Auth token: ";
- std::cin >> auth_token;
+ std::string password;
+ SetConsoleEcho(false);
+ std::cout << "Password: ";
+ std::cin >> password;
+ SetConsoleEcho(true);
+ std::cout << std::endl;
JingleTestClient client;
- client.Run(username, auth_token, host_jid);
+ client.Run(username, password, host_jid);
return 0;
}