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

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

Issue 115870: Reduce header dependencies in net/ (Closed)
Patch Set: Created 11 years, 7 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
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 "net/base/address_list.h" 5 #include "net/base/address_list.h"
6 #include "net/base/client_socket_factory.h" 6 #include "net/base/client_socket_factory.h"
7 #include "net/base/host_resolver.h" 7 #include "net/base/host_resolver.h"
8 #include "net/base/io_buffer.h"
8 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
9 #include "net/base/ssl_client_socket.h" 10 #include "net/base/ssl_client_socket.h"
10 #include "net/base/ssl_config_service.h" 11 #include "net/base/ssl_config_service.h"
11 #include "net/base/ssl_test_util.h" 12 #include "net/base/ssl_test_util.h"
12 #include "net/base/tcp_client_socket.h" 13 #include "net/base/tcp_client_socket.h"
13 #include "net/base/test_completion_callback.h" 14 #include "net/base/test_completion_callback.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 #include "testing/platform_test.h" 16 #include "testing/platform_test.h"
16 17
17 //----------------------------------------------------------------------------- 18 //-----------------------------------------------------------------------------
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 // Do a partial read and then exit. This test should not crash! 348 // Do a partial read and then exit. This test should not crash!
348 scoped_refptr<net::IOBuffer> buf = new net::IOBuffer(512); 349 scoped_refptr<net::IOBuffer> buf = new net::IOBuffer(512);
349 rv = sock->Read(buf, 512, &callback); 350 rv = sock->Read(buf, 512, &callback);
350 EXPECT_TRUE(rv >= 0 || rv == net::ERR_IO_PENDING); 351 EXPECT_TRUE(rv >= 0 || rv == net::ERR_IO_PENDING);
351 352
352 if (rv == net::ERR_IO_PENDING) 353 if (rv == net::ERR_IO_PENDING)
353 rv = callback.WaitForResult(); 354 rv = callback.WaitForResult();
354 355
355 EXPECT_NE(rv, 0); 356 EXPECT_NE(rv, 0);
356 } 357 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698