summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/message_reader_unittest.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-13 03:54:28 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-13 03:54:28 +0000
commit57651a87aecad07517dd5d334ef0b45e872b70b9 (patch)
treec4cd753bf38216e6d31d554fd91fa86f98f2a780 /remoting/protocol/message_reader_unittest.cc
parentf7e3fb85e5f15210155ef761fa4bbac674d6f501 (diff)
downloadchromium_src-57651a87aecad07517dd5d334ef0b45e872b70b9.zip
chromium_src-57651a87aecad07517dd5d334ef0b45e872b70b9.tar.gz
chromium_src-57651a87aecad07517dd5d334ef0b45e872b70b9.tar.bz2
Separate Authenticator and Session unittests.
Previously JingleSession unit tests were using real authenticators. Here I changed them to always use FakeAuthenticator and added new tests for channel authentication in v1_authenticator_unittest.cc . Also, to make new tests pass, fixed session-terminate message handling in JingleSession to return correct error code. BUG=105214 Review URL: http://codereview.chromium.org/8743023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114178 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/message_reader_unittest.cc')
-rw-r--r--remoting/protocol/message_reader_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/protocol/message_reader_unittest.cc b/remoting/protocol/message_reader_unittest.cc
index bbd57e4..30115d1 100644
--- a/remoting/protocol/message_reader_unittest.cc
+++ b/remoting/protocol/message_reader_unittest.cc
@@ -68,7 +68,7 @@ class MessageReaderTest : public testing::Test {
std::string data = std::string(4, ' ') + message;
talk_base::SetBE32(const_cast<char*>(data.data()), message.size());
- socket_.AppendInputData(data.data(), data.size());
+ socket_.AppendInputData(std::vector<char>(data.begin(), data.end()));
}
bool CompareResult(CompoundBuffer* buffer, const std::string& expected) {