| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/host/heartbeat_sender.h" | 5 #include "remoting/host/heartbeat_sender.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "base/message_loop/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
| 12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 14 #include "remoting/base/constants.h" | 14 #include "remoting/base/constants.h" |
| 15 #include "remoting/base/rsa_key_pair.h" | 15 #include "remoting/base/rsa_key_pair.h" |
| 16 #include "remoting/base/test_rsa_key_pair.h" | 16 #include "remoting/base/test_rsa_key_pair.h" |
| 17 #include "remoting/jingle_glue/iq_sender.h" | 17 #include "remoting/signaling/iq_sender.h" |
| 18 #include "remoting/jingle_glue/mock_objects.h" | 18 #include "remoting/signaling/mock_signal_strategy.h" |
| 19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 21 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
| 22 #include "third_party/libjingle/source/talk/xmpp/constants.h" | 22 #include "third_party/libjingle/source/talk/xmpp/constants.h" |
| 23 | 23 |
| 24 using buzz::QName; | 24 using buzz::QName; |
| 25 using buzz::XmlElement; | 25 using buzz::XmlElement; |
| 26 | 26 |
| 27 using testing::_; | 27 using testing::_; |
| 28 using testing::DeleteArg; | 28 using testing::DeleteArg; |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 EXPECT_TRUE(heartbeat_stanza->NextNamed(signature_tag) == NULL); | 250 EXPECT_TRUE(heartbeat_stanza->NextNamed(signature_tag) == NULL); |
| 251 | 251 |
| 252 scoped_refptr<RsaKeyPair> key_pair = RsaKeyPair::FromString(kTestRsaKeyPair); | 252 scoped_refptr<RsaKeyPair> key_pair = RsaKeyPair::FromString(kTestRsaKeyPair); |
| 253 ASSERT_TRUE(key_pair.get()); | 253 ASSERT_TRUE(key_pair.get()); |
| 254 std::string expected_signature = | 254 std::string expected_signature = |
| 255 key_pair->SignMessage(std::string(kTestJid) + ' ' + expectedSequenceId); | 255 key_pair->SignMessage(std::string(kTestJid) + ' ' + expectedSequenceId); |
| 256 EXPECT_EQ(expected_signature, signature->BodyText()); | 256 EXPECT_EQ(expected_signature, signature->BodyText()); |
| 257 } | 257 } |
| 258 | 258 |
| 259 } // namespace remoting | 259 } // namespace remoting |
| OLD | NEW |