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

Side by Side Diff: net/base/ssl_client_socket_unittest.cc

Issue 48105: Remove unneeded uses of base/ref_counted.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/views/widget/root_view.h ('k') | net/base/ssl_test_util.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/ref_counted.h"
6 #include "net/base/address_list.h" 5 #include "net/base/address_list.h"
7 #include "net/base/client_socket_factory.h" 6 #include "net/base/client_socket_factory.h"
8 #include "net/base/host_resolver.h" 7 #include "net/base/host_resolver.h"
9 #include "net/base/host_resolver_unittest.h" 8 #include "net/base/host_resolver_unittest.h"
10 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
11 #include "net/base/ssl_client_socket.h" 10 #include "net/base/ssl_client_socket.h"
12 #include "net/base/ssl_config_service.h" 11 #include "net/base/ssl_config_service.h"
13 #include "net/base/ssl_test_util.h" 12 #include "net/base/ssl_test_util.h"
14 #include "net/base/tcp_client_socket.h" 13 #include "net/base/tcp_client_socket.h"
15 #include "net/base/test_completion_callback.h" 14 #include "net/base/test_completion_callback.h"
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 // Do a partial read and then exit. This test should not crash! 302 // Do a partial read and then exit. This test should not crash!
304 char buf[512]; 303 char buf[512];
305 rv = sock->Read(buf, sizeof(buf), &callback); 304 rv = sock->Read(buf, sizeof(buf), &callback);
306 EXPECT_TRUE(rv >= 0 || rv == net::ERR_IO_PENDING); 305 EXPECT_TRUE(rv >= 0 || rv == net::ERR_IO_PENDING);
307 306
308 if (rv == net::ERR_IO_PENDING) 307 if (rv == net::ERR_IO_PENDING)
309 rv = callback.WaitForResult(); 308 rv = callback.WaitForResult();
310 309
311 EXPECT_NE(rv, 0); 310 EXPECT_NE(rv, 0);
312 } 311 }
OLDNEW
« no previous file with comments | « chrome/views/widget/root_view.h ('k') | net/base/ssl_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698