Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: remoting/protocol/v2_authenticator_unittest.cc

Issue 543433002: Roll WebRTC 7011:7046 libjingle: 7007:7045 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update README.chromium Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/protocol/v2_authenticator.cc ('k') | remoting/signaling/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "net/base/net_errors.h" 8 #include "net/base/net_errors.h"
9 #include "remoting/base/rsa_key_pair.h" 9 #include "remoting/base/rsa_key_pair.h"
10 #include "remoting/protocol/authenticator_test_base.h" 10 #include "remoting/protocol/authenticator_test_base.h"
11 #include "remoting/protocol/channel_authenticator.h" 11 #include "remoting/protocol/channel_authenticator.h"
12 #include "remoting/protocol/connection_tester.h" 12 #include "remoting/protocol/connection_tester.h"
13 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" 15 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h"
16 16
17 using testing::_; 17 using testing::_;
18 using testing::DeleteArg; 18 using testing::DeleteArg;
19 using testing::SaveArg; 19 using testing::SaveArg;
20 20
21 namespace remoting { 21 namespace remoting {
22 namespace protocol { 22 namespace protocol {
23 23
24 namespace { 24 namespace {
25 25
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 ASSERT_TRUE(message.get()); 87 ASSERT_TRUE(message.get());
88 88
89 ASSERT_EQ(Authenticator::WAITING_MESSAGE, client_->state()); 89 ASSERT_EQ(Authenticator::WAITING_MESSAGE, client_->state());
90 host_->ProcessMessage(message.get(), base::Bind(&base::DoNothing)); 90 host_->ProcessMessage(message.get(), base::Bind(&base::DoNothing));
91 // This assumes that V2Authenticator::ProcessMessage runs synchronously. 91 // This assumes that V2Authenticator::ProcessMessage runs synchronously.
92 ASSERT_EQ(Authenticator::REJECTED, host_->state()); 92 ASSERT_EQ(Authenticator::REJECTED, host_->state());
93 } 93 }
94 94
95 } // namespace protocol 95 } // namespace protocol
96 } // namespace remoting 96 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/v2_authenticator.cc ('k') | remoting/signaling/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698