| Index: remoting/signaling/jid_util_unittest.cc
|
| diff --git a/remoting/signaling/jid_util_unittest.cc b/remoting/signaling/jid_util_unittest.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c4e307de4e69f62ebac10d73884940c3b7486496
|
| --- /dev/null
|
| +++ b/remoting/signaling/jid_util_unittest.cc
|
| @@ -0,0 +1,19 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "remoting/signaling/jid_util.h"
|
| +
|
| +#include "testing/gtest/include/gtest/gtest.h"
|
| +
|
| +namespace remoting {
|
| +
|
| +TEST(JidUtil, NormalizeJid) {
|
| + EXPECT_EQ(NormalizeJid("USER@DOMAIN.com"), "user@domain.com");
|
| + EXPECT_EQ(NormalizeJid("user@domain.com"), "user@domain.com");
|
| + EXPECT_EQ(NormalizeJid("USER@DOMAIN.com/RESOURCE"),
|
| + "user@domain.com/RESOURCE");
|
| + EXPECT_EQ(NormalizeJid("USER@DOMAIN.com/"), "user@domain.com/");
|
| +}
|
| +
|
| +} // namespace remoting
|
|
|