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/protocol/v2_authenticator.h" | 5 #include "remoting/protocol/v2_authenticator.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/macros.h" |
8 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
9 #include "remoting/base/rsa_key_pair.h" | 10 #include "remoting/base/rsa_key_pair.h" |
10 #include "remoting/protocol/authenticator_test_base.h" | 11 #include "remoting/protocol/authenticator_test_base.h" |
11 #include "remoting/protocol/channel_authenticator.h" | 12 #include "remoting/protocol/channel_authenticator.h" |
12 #include "remoting/protocol/connection_tester.h" | 13 #include "remoting/protocol/connection_tester.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 16 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" |
16 | 17 |
17 using testing::_; | 18 using testing::_; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 ASSERT_TRUE(message.get()); | 87 ASSERT_TRUE(message.get()); |
87 | 88 |
88 ASSERT_EQ(Authenticator::WAITING_MESSAGE, client_->state()); | 89 ASSERT_EQ(Authenticator::WAITING_MESSAGE, client_->state()); |
89 host_->ProcessMessage(message.get(), base::Bind(&base::DoNothing)); | 90 host_->ProcessMessage(message.get(), base::Bind(&base::DoNothing)); |
90 // This assumes that V2Authenticator::ProcessMessage runs synchronously. | 91 // This assumes that V2Authenticator::ProcessMessage runs synchronously. |
91 ASSERT_EQ(Authenticator::REJECTED, host_->state()); | 92 ASSERT_EQ(Authenticator::REJECTED, host_->state()); |
92 } | 93 } |
93 | 94 |
94 } // namespace protocol | 95 } // namespace protocol |
95 } // namespace remoting | 96 } // namespace remoting |
OLD | NEW |