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

Side by Side Diff: remoting/host/gnubby_auth_handler_posix_unittest.cc

Issue 660803004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/host/disconnect_window_linux.cc ('k') | remoting/host/heartbeat_sender_unittest.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/message_loop/message_loop.h" 5 #include "base/message_loop/message_loop.h"
6 #include "base/strings/stringprintf.h" 6 #include "base/strings/stringprintf.h"
7 #include "base/timer/mock_timer.h" 7 #include "base/timer/mock_timer.h"
8 #include "net/socket/stream_listen_socket.h" 8 #include "net/socket/stream_listen_socket.h"
9 #include "remoting/host/gnubby_auth_handler_posix.h" 9 #include "remoting/host/gnubby_auth_handler_posix.h"
10 #include "remoting/host/gnubby_socket.h" 10 #include "remoting/host/gnubby_socket.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 private: 47 private:
48 ~MockStreamListenSocket() override {} 48 ~MockStreamListenSocket() override {}
49 }; 49 };
50 50
51 } // namespace 51 } // namespace
52 52
53 class GnubbyAuthHandlerPosixTest : public testing::Test { 53 class GnubbyAuthHandlerPosixTest : public testing::Test {
54 public: 54 public:
55 GnubbyAuthHandlerPosixTest() {} 55 GnubbyAuthHandlerPosixTest() {}
56 56
57 virtual void SetUp() override; 57 void SetUp() override;
58 58
59 protected: 59 protected:
60 // Object under test. 60 // Object under test.
61 scoped_ptr<GnubbyAuthHandlerPosix> auth_handler_posix_; 61 scoped_ptr<GnubbyAuthHandlerPosix> auth_handler_posix_;
62 62
63 // GnubbyAuthHandler interface for |auth_handler_posix_|. 63 // GnubbyAuthHandler interface for |auth_handler_posix_|.
64 GnubbyAuthHandler* auth_handler_; 64 GnubbyAuthHandler* auth_handler_;
65 65
66 // Stream delegate interface for |auth_handler_posix_|. 66 // Stream delegate interface for |auth_handler_posix_|.
67 net::StreamListenSocket::Delegate* delegate_; 67 net::StreamListenSocket::Delegate* delegate_;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 std::string error_json = base::StringPrintf( 156 std::string error_json = base::StringPrintf(
157 "{\"type\":\"error\",\"connectionId\":%d}", 157 "{\"type\":\"error\",\"connectionId\":%d}",
158 auth_handler_posix_->GetConnectionIdForTesting(socket)); 158 auth_handler_posix_->GetConnectionIdForTesting(socket));
159 159
160 ASSERT_TRUE(auth_handler_posix_->HasActiveSocketForTesting(socket)); 160 ASSERT_TRUE(auth_handler_posix_->HasActiveSocketForTesting(socket));
161 auth_handler_->DeliverClientMessage(error_json); 161 auth_handler_->DeliverClientMessage(error_json);
162 ASSERT_FALSE(auth_handler_posix_->HasActiveSocketForTesting(socket)); 162 ASSERT_FALSE(auth_handler_posix_->HasActiveSocketForTesting(socket));
163 } 163 }
164 164
165 } // namespace remoting 165 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/disconnect_window_linux.cc ('k') | remoting/host/heartbeat_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698