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

Side by Side Diff: net/socket/socks_client_socket_unittest.cc

Issue 663043004: 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 | « net/socket/socks_client_socket_pool_unittest.cc ('k') | net/socket/ssl_client_socket_nss.h » ('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 "net/socket/socks_client_socket.h" 5 #include "net/socket/socks_client_socket.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "net/base/address_list.h" 8 #include "net/base/address_list.h"
9 #include "net/base/net_log.h" 9 #include "net/base/net_log.h"
10 #include "net/base/net_log_unittest.h" 10 #include "net/base/net_log_unittest.h"
(...skipping 17 matching lines...) Expand all
28 class SOCKSClientSocketTest : public PlatformTest { 28 class SOCKSClientSocketTest : public PlatformTest {
29 public: 29 public:
30 SOCKSClientSocketTest(); 30 SOCKSClientSocketTest();
31 // Create a SOCKSClientSocket on top of a MockSocket. 31 // Create a SOCKSClientSocket on top of a MockSocket.
32 scoped_ptr<SOCKSClientSocket> BuildMockSocket( 32 scoped_ptr<SOCKSClientSocket> BuildMockSocket(
33 MockRead reads[], size_t reads_count, 33 MockRead reads[], size_t reads_count,
34 MockWrite writes[], size_t writes_count, 34 MockWrite writes[], size_t writes_count,
35 HostResolver* host_resolver, 35 HostResolver* host_resolver,
36 const std::string& hostname, int port, 36 const std::string& hostname, int port,
37 NetLog* net_log); 37 NetLog* net_log);
38 virtual void SetUp(); 38 void SetUp() override;
39 39
40 protected: 40 protected:
41 scoped_ptr<SOCKSClientSocket> user_sock_; 41 scoped_ptr<SOCKSClientSocket> user_sock_;
42 AddressList address_list_; 42 AddressList address_list_;
43 // Filled in by BuildMockSocket() and owned by its return value 43 // Filled in by BuildMockSocket() and owned by its return value
44 // (which |user_sock| is set to). 44 // (which |user_sock| is set to).
45 StreamSocket* tcp_sock_; 45 StreamSocket* tcp_sock_;
46 TestCompletionCallback callback_; 46 TestCompletionCallback callback_;
47 scoped_ptr<MockHostResolver> host_resolver_; 47 scoped_ptr<MockHostResolver> host_resolver_;
48 scoped_ptr<SocketDataProvider> data_; 48 scoped_ptr<SocketDataProvider> data_;
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 NULL, 0, 441 NULL, 0,
442 host_resolver.get(), 442 host_resolver.get(),
443 kHostName, 80, 443 kHostName, 80,
444 NULL); 444 NULL);
445 445
446 EXPECT_EQ(ERR_NAME_NOT_RESOLVED, 446 EXPECT_EQ(ERR_NAME_NOT_RESOLVED,
447 callback_.GetResult(user_sock_->Connect(callback_.callback()))); 447 callback_.GetResult(user_sock_->Connect(callback_.callback())));
448 } 448 }
449 449
450 } // namespace net 450 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/socks_client_socket_pool_unittest.cc ('k') | net/socket/ssl_client_socket_nss.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698