| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/host_status_sender.h" | 5 #include "remoting/host/host_status_sender.h" |
| 6 | 6 |
| 7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "remoting/base/constants.h" | 9 #include "remoting/base/constants.h" |
| 10 #include "remoting/base/logging.h" | 10 #include "remoting/base/logging.h" |
| 11 #include "remoting/base/rsa_key_pair.h" | 11 #include "remoting/base/rsa_key_pair.h" |
| 12 #include "remoting/base/test_rsa_key_pair.h" | 12 #include "remoting/base/test_rsa_key_pair.h" |
| 13 #include "remoting/host/host_exit_codes.h" | 13 #include "remoting/host/host_exit_codes.h" |
| 14 #include "remoting/jingle_glue/mock_objects.h" | 14 #include "remoting/signaling/mock_signal_strategy.h" |
| 15 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 17 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
| 18 | 18 |
| 19 using buzz::QName; | 19 using buzz::QName; |
| 20 using buzz::XmlElement; | 20 using buzz::XmlElement; |
| 21 | 21 |
| 22 using testing::DoAll; | 22 using testing::DoAll; |
| 23 using testing::NotNull; | 23 using testing::NotNull; |
| 24 using testing::Return; | 24 using testing::Return; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 187 |
| 188 scoped_refptr<RsaKeyPair> key_pair = RsaKeyPair::FromString(kTestRsaKeyPair); | 188 scoped_refptr<RsaKeyPair> key_pair = RsaKeyPair::FromString(kTestRsaKeyPair); |
| 189 ASSERT_TRUE(key_pair.get()); | 189 ASSERT_TRUE(key_pair.get()); |
| 190 | 190 |
| 191 std::string expected_signature = | 191 std::string expected_signature = |
| 192 key_pair->SignMessage(message); | 192 key_pair->SignMessage(message); |
| 193 EXPECT_EQ(expected_signature, signature->BodyText()); | 193 EXPECT_EQ(expected_signature, signature->BodyText()); |
| 194 } | 194 } |
| 195 | 195 |
| 196 } // namespace remoting | 196 } // namespace remoting |
| OLD | NEW |