diff options
author | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-23 13:23:52 +0000 |
---|---|---|
committer | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-23 13:23:52 +0000 |
commit | b46c506bac40a61d3c990958c680ff290efaaa58 (patch) | |
tree | 69b076d74be0dbaed4938c9ba28a4e31dc2fcb95 /net/base/tcp_client_socket_unittest.cc | |
parent | a449bc69a24a0a455ddfe2e99e398f3fe087c4fa (diff) | |
download | chromium_src-b46c506bac40a61d3c990958c680ff290efaaa58.zip chromium_src-b46c506bac40a61d3c990958c680ff290efaaa58.tar.gz chromium_src-b46c506bac40a61d3c990958c680ff290efaaa58.tar.bz2 |
Add tcp_client_socket_libevent to the project and get the unit tests working correctly with the platform hooks.
Review URL: http://codereview.chromium.org/4020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2481 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/tcp_client_socket_unittest.cc')
-rw-r--r-- | net/base/tcp_client_socket_unittest.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/net/base/tcp_client_socket_unittest.cc b/net/base/tcp_client_socket_unittest.cc index 4d1d83f..062a9b9 100644 --- a/net/base/tcp_client_socket_unittest.cc +++ b/net/base/tcp_client_socket_unittest.cc @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "base/platform_test.h" #include "net/base/address_list.h" #include "net/base/host_resolver.h" #include "net/base/net_errors.h" @@ -9,16 +10,9 @@ #include "net/base/test_completion_callback.h" #include "testing/gtest/include/gtest/gtest.h" -//----------------------------------------------------------------------------- - -namespace { - -class TCPClientSocketTest : public testing::Test { +class TCPClientSocketTest : public PlatformTest { }; -} // namespace - -//----------------------------------------------------------------------------- TEST_F(TCPClientSocketTest, Connect) { net::AddressList addr; @@ -168,4 +162,3 @@ TEST_F(TCPClientSocketTest, Read_Interrupted) { EXPECT_NE(rv, 0); } - |