summaryrefslogtreecommitdiffstats
path: root/remoting/client/client_util_unittest.cc
diff options
context:
space:
mode:
authorajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-28 01:23:17 +0000
committerajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-28 01:23:17 +0000
commit0b75f6173ddaf3a82837903013eeabb29739e015 (patch)
tree0cccf20878ba646636e5e211adb6c81448a395ea /remoting/client/client_util_unittest.cc
parentb5f9de67c1231759039f1d0eced5143c7d911ce5 (diff)
downloadchromium_src-0b75f6173ddaf3a82837903013eeabb29739e015.zip
chromium_src-0b75f6173ddaf3a82837903013eeabb29739e015.tar.gz
chromium_src-0b75f6173ddaf3a82837903013eeabb29739e015.tar.bz2
Initial scriptable object implementation.
BUG=50248 TEST=write javascript to manually setup connection. Review URL: http://codereview.chromium.org/3064009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53892 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client/client_util_unittest.cc')
-rw-r--r--remoting/client/client_util_unittest.cc17
1 files changed, 1 insertions, 16 deletions
diff --git a/remoting/client/client_util_unittest.cc b/remoting/client/client_util_unittest.cc
index 4277769..b1c3d21 100644
--- a/remoting/client/client_util_unittest.cc
+++ b/remoting/client/client_util_unittest.cc
@@ -10,26 +10,11 @@
namespace remoting {
-// TODO(ajwong): Once ChromotingPlugin stablizes a little more, come up with
-// sane unittests.
+// TODO(ajwong): Fill this out.
class ClientUtilTest : public testing::Test {
protected:
virtual void SetUp() {
}
};
-TEST_F(ClientUtilTest, GetLoginInfoFromUrlParams) {
- const char url[] = "chromotocol://hostid?user=auser&auth=someauth&jid=ajid";
- std::string user_id;
- std::string auth_token;
- std::string host_jid;
- ClientConfig config;
-
- ASSERT_TRUE(GetLoginInfoFromUrlParams(url, &config));
-
- EXPECT_EQ("auser", config.username);
- EXPECT_EQ("someauth", config.auth_token);
- EXPECT_EQ("ajid", config.host_jid);
-}
-
} // namespace remoting