| Index: remoting/client/client_util_unittest.cc
|
| ===================================================================
|
| --- remoting/client/client_util_unittest.cc (revision 53948)
|
| +++ remoting/client/client_util_unittest.cc (working copy)
|
| @@ -10,11 +10,26 @@
|
|
|
| namespace remoting {
|
|
|
| -// TODO(ajwong): Fill this out.
|
| +// TODO(ajwong): Once ChromotingPlugin stablizes a little more, come up with
|
| +// sane unittests.
|
| 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
|
|
|